public class DefaultServiceInstance extends Object implements ServiceInstance
ServiceInstance
.Constructor and Description |
---|
DefaultServiceInstance(String serviceId,
String host,
int port,
boolean secure) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getMetadata() |
URI |
getUri() |
static URI |
getUri(ServiceInstance instance)
Create a uri from the given ServiceInstance's host:port
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHost, getPort, getServiceId, isSecure
public URI getUri()
getUri
in interface ServiceInstance
public Map<String,String> getMetadata()
getMetadata
in interface ServiceInstance
public static URI getUri(ServiceInstance instance)
instance
- Copyright © 2017 Pivotal Software, Inc.. All rights reserved.