public class KubernetesDiscoveryLifecycle
extends org.springframework.cloud.client.discovery.AbstractDiscoveryLifecycle
| Constructor and Description |
|---|
KubernetesDiscoveryLifecycle(io.fabric8.kubernetes.client.KubernetesClient client,
KubernetesDiscoveryProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deregister() |
protected Object |
getConfiguration() |
protected int |
getConfiguredPort() |
protected boolean |
isEnabled() |
boolean |
isRunning() |
protected void |
register() |
protected void |
setConfiguredPort(int port) |
void |
start() |
deregisterManagement, destroy, getAppName, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, isAutoStartup, onApplicationEvent, registerManagement, setApplicationContext, shouldRegisterManagement, stop, stoppublic KubernetesDiscoveryLifecycle(io.fabric8.kubernetes.client.KubernetesClient client,
KubernetesDiscoveryProperties properties)
public void start()
start in interface org.springframework.context.Lifecyclestart in class org.springframework.cloud.client.discovery.AbstractDiscoveryLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.LifecycleisRunning 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.AbstractDiscoveryLifecycleprotected 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.AbstractDiscoveryLifecycleCopyright © 2016 Red Hat. All rights reserved.