public class ZookeeperServiceRegistry extends Object implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>, org.springframework.beans.factory.SmartInitializingSingleton, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.curator.framework.CuratorFramework |
curator |
protected org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> |
instanceSerializer |
protected ZookeeperDiscoveryProperties |
properties |
| Constructor and Description |
|---|
ZookeeperServiceRegistry(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery) |
ZookeeperServiceRegistry(ZookeeperServiceDiscovery zookeeperServiceDiscovery,
org.apache.curator.framework.CuratorFramework curator,
ZookeeperDiscoveryProperties properties,
org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> instanceSerializer)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
void |
close() |
void |
deregister(ZookeeperRegistration registration) |
org.apache.curator.framework.CuratorFramework |
getCurator()
Deprecated.
for backwards compatibility. Visibility will be tightened when ZookeeperServiceDiscovery is removed.
|
AtomicReference<org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance>> |
getServiceDiscoveryRef()
Deprecated.
for backwards compatibility. Visibility will be tightened when ZookeeperServiceDiscovery is removed.
|
Object |
getStatus(ZookeeperRegistration registration) |
void |
register(ZookeeperRegistration registration) |
void |
setStatus(ZookeeperRegistration registration,
String status) |
protected org.apache.curator.framework.CuratorFramework curator
protected ZookeeperDiscoveryProperties properties
protected org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> instanceSerializer
@Deprecated public ZookeeperServiceRegistry(ZookeeperServiceDiscovery zookeeperServiceDiscovery, org.apache.curator.framework.CuratorFramework curator, ZookeeperDiscoveryProperties properties, org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> instanceSerializer)
public ZookeeperServiceRegistry(org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance> serviceDiscovery)
public void register(ZookeeperRegistration registration)
register in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>public void deregister(ZookeeperRegistration registration)
deregister in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>public void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>public void setStatus(ZookeeperRegistration registration, String status)
setStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>public Object getStatus(ZookeeperRegistration registration)
getStatus in interface org.springframework.cloud.client.serviceregistry.ServiceRegistry<ZookeeperRegistration>@Deprecated public org.apache.curator.framework.CuratorFramework getCurator()
@Deprecated public AtomicReference<org.apache.curator.x.discovery.ServiceDiscovery<ZookeeperInstance>> getServiceDiscoveryRef()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.