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
ConstructorsConstructorDescriptionConsulServiceInstance(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
Modifier and TypeMethodDescriptioncom.ecwid.consul.v1.health.model.HealthServicegetTags()voidsetHealthService(com.ecwid.consul.v1.health.model.HealthService healthService) toString()Methods inherited from class org.springframework.cloud.client.DefaultServiceInstance
equals, getHost, getInstanceId, getMetadata, getPort, getServiceId, getUri, getUri, hashCode, isSecure, setHost, setInstanceId, setPort, setSecure, setServiceId, setUriMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.client.ServiceInstance
getScheme
-
Constructor Details
-
ConsulServiceInstance
public ConsulServiceInstance(com.ecwid.consul.v1.health.model.HealthService healthService, String serviceId) -
ConsulServiceInstance
-
ConsulServiceInstance
-
ConsulServiceInstance
public ConsulServiceInstance()
-
-
Method Details
-
getHealthService
public com.ecwid.consul.v1.health.model.HealthService getHealthService() -
setHealthService
public void setHealthService(com.ecwid.consul.v1.health.model.HealthService healthService) -
getTags
-
toString
- Overrides:
toStringin classorg.springframework.cloud.client.DefaultServiceInstance
-