R - registration type passed to the ServiceRegistry.public abstract class AbstractAutoServiceRegistration<R extends Registration> extends AbstractDiscoveryLifecycle implements AutoServiceRegistration
ServiceRegistry implementations.
TODO: document the lifecycle| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deregister()
De-register the local service with the
ServiceRegistry |
protected void |
deregisterManagement()
De-register the local management service with the
ServiceRegistry |
protected abstract R |
getManagementRegistration() |
protected abstract R |
getRegistration() |
protected ServiceRegistry<R> |
getServiceRegistry() |
protected void |
register()
Register the local service with the
ServiceRegistry |
protected void |
registerManagement()
Register the local management service with the
ServiceRegistry |
void |
stop() |
destroy, getAppName, getConfiguration, getConfiguredPort, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, isAutoStartup, isEnabled, isRunning, onApplicationEvent, setApplicationContext, setConfiguredPort, shouldRegisterManagement, start, stopprotected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry)
protected ServiceRegistry<R> getServiceRegistry()
protected abstract R getRegistration()
protected abstract R getManagementRegistration()
protected void register()
ServiceRegistryregister in class AbstractDiscoveryLifecycleprotected void registerManagement()
ServiceRegistryregisterManagement in class AbstractDiscoveryLifecycleprotected void deregister()
ServiceRegistryderegister in class AbstractDiscoveryLifecycleprotected void deregisterManagement()
ServiceRegistryderegisterManagement in class AbstractDiscoveryLifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclestop in class AbstractDiscoveryLifecycleCopyright © 2017 Pivotal Software, Inc.. All rights reserved.