Class ZookeeperAutoServiceRegistration
java.lang.Object
org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
org.springframework.cloud.zookeeper.serviceregistry.ZookeeperAutoServiceRegistration
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.cloud.client.serviceregistry.AutoServiceRegistration,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
public class ZookeeperAutoServiceRegistration
extends org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
Zookeeper
AbstractAutoServiceRegistration that uses
ZookeeperServiceRegistry to register and de-register instances.- Since:
- 1.0.0
- Author:
- Spencer Gibb
-
Constructor Summary
ConstructorsConstructorDescriptionZookeeperAutoServiceRegistration(ZookeeperServiceRegistry registry, ZookeeperRegistration registration, ZookeeperDiscoveryProperties properties) ZookeeperAutoServiceRegistration(ZookeeperServiceRegistry registry, ZookeeperRegistration registration, ZookeeperDiscoveryProperties properties, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties arProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Objectprotected ZookeeperRegistrationprotected ZookeeperRegistrationprotected booleanprotected voidregister()Methods inherited from class org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration
addRegistrationLifecycle, addRegistrationManagementLifecycle, deregisterManagement, destroy, getAppName, getContext, getEnvironment, getManagementPort, getManagementServiceId, getManagementServiceName, getOrder, getPhase, getPort, getRunning, getServiceRegistry, isAutoStartup, isRunning, onApplicationEvent, registerManagement, setApplicationContext, shouldRegisterManagement, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
ZookeeperAutoServiceRegistration
public ZookeeperAutoServiceRegistration(ZookeeperServiceRegistry registry, ZookeeperRegistration registration, ZookeeperDiscoveryProperties properties) -
ZookeeperAutoServiceRegistration
public ZookeeperAutoServiceRegistration(ZookeeperServiceRegistry registry, ZookeeperRegistration registration, ZookeeperDiscoveryProperties properties, org.springframework.cloud.client.serviceregistry.AutoServiceRegistrationProperties arProperties)
-
-
Method Details
-
getRegistration
- Specified by:
getRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-
getManagementRegistration
- Specified by:
getManagementRegistrationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-
register
protected void register()- Overrides:
registerin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-
deregister
protected void deregister()- Overrides:
deregisterin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-
isEnabled
protected boolean isEnabled()- Specified by:
isEnabledin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-
getConfiguration
- Specified by:
getConfigurationin classorg.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration<ZookeeperRegistration>
-