@Deprecated public class ConsulLifecycle extends org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
Modifier and Type | Field and Description |
---|---|
static char |
SEPARATOR
Deprecated.
|
Constructor and Description |
---|
ConsulLifecycle(com.ecwid.consul.v1.ConsulClient client,
ConsulDiscoveryProperties properties,
HeartbeatProperties ttlConfig)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deregister()
Deprecated.
|
protected void |
deregisterManagement()
Deprecated.
|
protected String |
getAppName()
Deprecated.
|
protected Object |
getConfiguration()
Deprecated.
|
protected int |
getConfiguredPort()
Deprecated.
|
String |
getInstanceId()
Deprecated.
|
protected Integer |
getManagementPort()
Deprecated.
|
String |
getManagementServiceId()
Deprecated.
|
String |
getManagementServiceName()
Deprecated.
|
String |
getServiceId()
Deprecated.
|
protected boolean |
isEnabled()
Deprecated.
|
static String |
normalizeForDns(String s)
Deprecated.
|
protected void |
register()
Deprecated.
|
protected void |
register(com.ecwid.consul.v1.agent.model.NewService newService)
Deprecated.
|
protected void |
registerManagement()
Deprecated.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
protected void |
setConfiguredPort(int port)
Deprecated.
|
void |
setPort(int port)
Deprecated.
|
void |
setServletContext(org.springframework.beans.factory.ObjectProvider<javax.servlet.ServletContext> servletContext)
Deprecated.
|
void |
setTtlScheduler(TtlScheduler ttlScheduler)
Deprecated.
|
void |
start()
Deprecated.
|
public static final char SEPARATOR
public ConsulLifecycle(com.ecwid.consul.v1.ConsulClient client, ConsulDiscoveryProperties properties, HeartbeatProperties ttlConfig)
public void setTtlScheduler(TtlScheduler ttlScheduler)
public void setServletContext(org.springframework.beans.factory.ObjectProvider<javax.servlet.ServletContext> servletContext)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
org.springframework.beans.BeansException
protected int getConfiguredPort()
getConfiguredPort
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void setConfiguredPort(int port)
setConfiguredPort
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
public void setPort(int port)
@Retryable(interceptor="consulRetryInterceptor") public void start()
start
in interface org.springframework.context.Lifecycle
start
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void register()
register
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
@Deprecated public String getServiceId()
public String getInstanceId()
protected void registerManagement()
registerManagement
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void register(com.ecwid.consul.v1.agent.model.NewService newService)
protected Object getConfiguration()
getConfiguration
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void deregister()
deregister
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void deregisterManagement()
deregisterManagement
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected boolean isEnabled()
isEnabled
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected String getAppName()
getAppName
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
public String getManagementServiceId()
getManagementServiceId
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
public String getManagementServiceName()
getManagementServiceName
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected Integer getManagementPort()
getManagementPort
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
@Deprecated public static String normalizeForDns(String s)
ConsulAutoRegistration.normalizeForDns(String)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.