public class ConsulAutoServiceRegistration extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
Constructor and Description |
---|
ConsulAutoServiceRegistration(ConsulServiceRegistry serviceRegistry,
ConsulDiscoveryProperties properties,
ConsulAutoRegistration registration) |
Modifier and Type | Method and Description |
---|---|
protected void |
deregister() |
protected void |
deregisterManagement() |
protected String |
getAppName() |
protected Object |
getConfiguration() |
protected int |
getConfiguredPort() |
protected ConsulAutoRegistration |
getManagementRegistration() |
protected ConsulAutoRegistration |
getRegistration() |
protected boolean |
isEnabled() |
protected void |
register() |
protected void |
registerManagement() |
protected void |
setConfiguredPort(int port) |
void |
setPort(int port) |
void |
start() |
getServiceRegistry, stop
destroy, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, isAutoStartup, isRunning, onApplicationEvent, setApplicationContext, shouldRegisterManagement, stop
public ConsulAutoServiceRegistration(ConsulServiceRegistry serviceRegistry, ConsulDiscoveryProperties properties, ConsulAutoRegistration registration)
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)
protected ConsulAutoRegistration getRegistration()
getRegistration
in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
protected ConsulAutoRegistration getManagementRegistration()
getManagementRegistration
in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
@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.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
protected void registerManagement()
registerManagement
in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
protected Object getConfiguration()
getConfiguration
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected void deregister()
deregister
in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
protected void deregisterManagement()
deregisterManagement
in class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ConsulRegistration>
protected boolean isEnabled()
isEnabled
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
protected String getAppName()
getAppName
in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.