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)
Deprecated.
|
protected |
AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry,
AutoServiceRegistrationProperties properties) |
| 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 |
protected boolean |
shouldRegisterManagement() |
void |
stop() |
destroy, getAppName, getConfiguration, getConfiguredPort, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, isAutoStartup, isEnabled, isRunning, onApplicationEvent, setApplicationContext, setConfiguredPort, start, stop@Deprecated protected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry)
protected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry, AutoServiceRegistrationProperties properties)
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 AbstractDiscoveryLifecycleprotected boolean shouldRegisterManagement()
shouldRegisterManagement in class AbstractDiscoveryLifecycleServiceRegistryCopyright © 2018 Pivotal Software, Inc.. All rights reserved.