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)
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()
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
protected boolean shouldRegisterManagement()
shouldRegisterManagement
in class AbstractDiscoveryLifecycle
ServiceRegistry
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.