public class ZookeeperLifecycle
extends org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
DiscoveryLifecycle
that uses ZookeeperServiceDiscovery to register and de-register instances.| Constructor and Description |
|---|
ZookeeperLifecycle(ZookeeperDiscoveryProperties properties,
ZookeeperServiceDiscovery serviceDiscovery) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deregister() |
protected Object |
getConfiguration() |
protected int |
getConfiguredPort() |
protected boolean |
isEnabled() |
protected void |
register() |
protected void |
setConfiguredPort(int port) |
deregisterManagement, destroy, getAppName, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, isAutoStartup, isRunning, onApplicationEvent, registerManagement, setApplicationContext, shouldRegisterManagement, start, stop, stoppublic ZookeeperLifecycle(ZookeeperDiscoveryProperties properties, ZookeeperServiceDiscovery serviceDiscovery)
protected void register()
register in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void deregister()
deregister in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected boolean isEnabled()
isEnabled in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected int getConfiguredPort()
getConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected void setConfiguredPort(int port)
setConfiguredPort in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleprotected Object getConfiguration()
getConfiguration in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycleCopyright © 2016 Pivotal Software, Inc.. All rights reserved.