@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(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(javax.servlet.ServletContext servletContext)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleorg.springframework.beans.BeansExceptionprotected int getConfiguredPort()
getConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void setConfiguredPort(int port)
setConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecyclepublic void setPort(int port)
@Retryable(interceptor="consulRetryInterceptor") public void start()
start in interface org.springframework.context.Lifecyclestart in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected 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.AbstractDiscoveryLifecycleprotected void register(com.ecwid.consul.v1.agent.model.NewService newService)
protected Object getConfiguration()
getConfiguration in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void deregister()
deregister in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void deregisterManagement()
deregisterManagement in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected boolean isEnabled()
isEnabled in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected String getAppName()
getAppName in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecyclepublic String getManagementServiceId()
getManagementServiceId in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecyclepublic String getManagementServiceName()
getManagementServiceName in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected 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.