AbstractAutoServiceRegistration instead. This class will be removed in the next release train.@Deprecated public abstract class AbstractDiscoveryLifecycle extends Object implements DiscoveryLifecycle, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent>
| Constructor and Description |
|---|
AbstractDiscoveryLifecycle()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
deregister()
Deprecated.
De-register the local service with the DiscoveryClient
|
protected void |
deregisterManagement()
Deprecated.
De-register the local management service with the DiscoveryClient
|
void |
destroy()
Deprecated.
|
protected String |
getAppName()
Deprecated.
|
protected abstract Object |
getConfiguration()
Deprecated.
|
protected abstract int |
getConfiguredPort()
Deprecated.
|
protected org.springframework.context.ApplicationContext |
getContext()
Deprecated.
|
protected org.springframework.core.env.Environment |
getEnvironment()
Deprecated.
|
protected Integer |
getManagementPort()
Deprecated.
|
protected String |
getManagementServiceId()
Deprecated.
|
protected String |
getManagementServiceName()
Deprecated.
|
int |
getOrder()
Deprecated.
|
int |
getPhase()
Deprecated.
|
protected AtomicInteger |
getPort()
Deprecated.
|
protected AtomicBoolean |
getRunning()
Deprecated.
|
boolean |
isAutoStartup()
Deprecated.
|
protected abstract boolean |
isEnabled()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
void |
onApplicationEvent(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event)
Deprecated.
|
protected abstract void |
register()
Deprecated.
Register the local service with the DiscoveryClient
|
protected void |
registerManagement()
Deprecated.
Register the local management service with the DiscoveryClient
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
protected abstract void |
setConfiguredPort(int port)
Deprecated.
|
protected boolean |
shouldRegisterManagement()
Deprecated.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
void |
stop(Runnable callback)
Deprecated.
|
protected org.springframework.context.ApplicationContext getContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException@Deprecated protected org.springframework.core.env.Environment getEnvironment()
@Deprecated protected AtomicInteger getPort()
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecycle@Deprecated protected abstract int getConfiguredPort()
@Deprecated protected abstract void setConfiguredPort(int port)
protected boolean shouldRegisterManagement()
ServiceRegistry@Deprecated protected abstract Object getConfiguration()
protected abstract void register()
protected void registerManagement()
protected abstract void deregister()
protected void deregisterManagement()
protected abstract boolean isEnabled()
DiscoveryLifecycle is enabled@Deprecated protected String getManagementServiceId()
@Deprecated protected String getManagementServiceName()
@Deprecated protected Integer getManagementPort()
@Deprecated protected String getAppName()
public void stop()
stop in interface org.springframework.context.Lifecycle@PreDestroy public void destroy()
public boolean isRunning()
isRunning in interface org.springframework.context.Lifecycleprotected AtomicBoolean getRunning()
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic int getPhase()
getPhase in interface org.springframework.context.Phased@Deprecated public void onApplicationEvent(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent>Copyright © 2018 Pivotal Software, Inc.. All rights reserved.