public class ConsulLifecycle
extends org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
Modifier and Type | Field and Description |
---|---|
static char |
SEPARATOR |
Constructor and Description |
---|
ConsulLifecycle(com.ecwid.consul.v1.ConsulClient client,
ConsulDiscoveryProperties properties,
HeartbeatProperties ttlConfig) |
Modifier and Type | Method and Description |
---|---|
protected void |
deregister() |
protected void |
deregisterManagement() |
protected String |
getAppName() |
protected Object |
getConfiguration() |
protected int |
getConfiguredPort() |
String |
getManagementServiceId() |
String |
getManagementServiceName() |
String |
getServiceId() |
protected boolean |
isEnabled() |
static String |
normalizeForDns(String s) |
protected void |
register() |
protected void |
register(com.ecwid.consul.v1.agent.model.NewService newService) |
protected void |
registerManagement() |
protected void |
setConfiguredPort(int port) |
void |
start() |
public static final char SEPARATOR
public ConsulLifecycle(com.ecwid.consul.v1.ConsulClient client, ConsulDiscoveryProperties properties, HeartbeatProperties ttlConfig)
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
@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
public String getServiceId()
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
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.