public class ZookeeperServiceDiscovery
extends java.lang.Object
| Constructor and Description |
|---|
ZookeeperServiceDiscovery(ZookeeperConfiguration configuration) |
ZookeeperServiceDiscovery(ZookeeperConfiguration configuration,
org.apache.curator.framework.CuratorFramework curator) |
ZookeeperServiceDiscovery(ZookeeperConfiguration configuration,
org.apache.curator.framework.CuratorFramework curator,
org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.util.Optional<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> |
queryByExample(ZookeeperInstance zookeeperInstance) |
java.util.Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> |
queryForInstances(java.lang.String serviceName) |
void |
register(ZookeeperInstance zookeeperInstance) |
void |
unregister(ZookeeperInstance zookeeperInstance) |
public ZookeeperServiceDiscovery(ZookeeperConfiguration configuration)
public ZookeeperServiceDiscovery(ZookeeperConfiguration configuration, org.apache.curator.framework.CuratorFramework curator)
public ZookeeperServiceDiscovery(ZookeeperConfiguration configuration, org.apache.curator.framework.CuratorFramework curator, org.apache.curator.x.discovery.details.InstanceSerializer<ZookeeperInstance> serializer)
public java.util.Collection<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> queryForInstances(java.lang.String serviceName)
public void register(ZookeeperInstance zookeeperInstance)
public void unregister(ZookeeperInstance zookeeperInstance)
public java.util.Optional<org.apache.curator.x.discovery.ServiceInstance<ZookeeperInstance>> queryByExample(ZookeeperInstance zookeeperInstance)
public void close()
Copyright © 2017. All Rights Reserved.