R
- registration type passed to the ServiceRegistry
.public abstract class AbstractAutoServiceRegistration<R extends Registration> extends AbstractDiscoveryLifecycle implements AutoServiceRegistration
ServiceRegistry
implementations.
TODO: document the lifecycleModifier | 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, stop
protected AbstractAutoServiceRegistration(ServiceRegistry<R> serviceRegistry)
protected ServiceRegistry<R> getServiceRegistry()
protected abstract R getRegistration()
protected abstract R getManagementRegistration()
protected void register()
ServiceRegistry
register
in class AbstractDiscoveryLifecycle
protected void registerManagement()
ServiceRegistry
registerManagement
in class AbstractDiscoveryLifecycle
protected void deregister()
ServiceRegistry
deregister
in class AbstractDiscoveryLifecycle
protected void deregisterManagement()
ServiceRegistry
deregisterManagement
in class AbstractDiscoveryLifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
stop
in class AbstractDiscoveryLifecycle
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.