Class ConsulServiceInstance
- java.lang.Object
-
- org.springframework.cloud.client.DefaultServiceInstance
-
- org.springframework.cloud.consul.discovery.ConsulServiceInstance
-
- All Implemented Interfaces:
org.springframework.cloud.client.ServiceInstance
public class ConsulServiceInstance extends org.springframework.cloud.client.DefaultServiceInstance
-
-
Constructor Summary
Constructors Constructor Description ConsulServiceInstance()ConsulServiceInstance(com.ecwid.consul.v1.health.model.HealthService healthService, String serviceId)ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure)ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure, Map<String,String> metadata, List<String> tags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ecwid.consul.v1.health.model.HealthServicegetHealthService()List<String>getTags()voidsetHealthService(com.ecwid.consul.v1.health.model.HealthService healthService)StringtoString()-
Methods inherited from class org.springframework.cloud.client.DefaultServiceInstance
equals, getHost, getInstanceId, getMetadata, getPort, getServiceId, getUri, getUri, hashCode, isSecure, setHost, setInstanceId, setPort, setServiceId, setUri
-
-
-
-
Constructor Detail
-
ConsulServiceInstance
public ConsulServiceInstance(com.ecwid.consul.v1.health.model.HealthService healthService, String serviceId)
-
ConsulServiceInstance
public ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure, Map<String,String> metadata, List<String> tags)
-
ConsulServiceInstance
public ConsulServiceInstance(String instanceId, String serviceId, String host, int port, boolean secure)
-
ConsulServiceInstance
public ConsulServiceInstance()
-
-
Method Detail
-
getHealthService
public com.ecwid.consul.v1.health.model.HealthService getHealthService()
-
setHealthService
public void setHealthService(com.ecwid.consul.v1.health.model.HealthService healthService)
-
toString
public String toString()
- Overrides:
toStringin classorg.springframework.cloud.client.DefaultServiceInstance
-
-