public class ZookeeperRegisterServiceImpl extends Object implements RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>
CONFIG_SPLIT_CHAR, CURRENT_ADDRESS_MAP, PREFIX_SERVICE_MAPPING, PREFIX_SERVICE_ROOT, SERVICE_GROUP_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
createEphemeral(String path,
String data) |
protected void |
createPersistent(String path) |
protected void |
createPersistent(String path,
String data) |
protected boolean |
deletePath(String path) |
List<InetSocketAddress> |
lookup(String key) |
void |
register(InetSocketAddress address) |
void |
subscribe(String cluster,
org.apache.curator.framework.recipes.cache.CuratorCacheListener listener) |
void |
unregister(InetSocketAddress address) |
void |
unsubscribe(String cluster,
org.apache.curator.framework.recipes.cache.CuratorCacheListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaliveLookup, getServiceGroup, refreshAliveLookup, register, removeOfflineAddressesIfNecessary, unregisterpublic void register(InetSocketAddress address) throws Exception
register in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>Exceptionpublic void unregister(InetSocketAddress address) throws Exception
unregister in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>Exceptionpublic void subscribe(String cluster, org.apache.curator.framework.recipes.cache.CuratorCacheListener listener) throws Exception
subscribe in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>Exceptionpublic void unsubscribe(String cluster, org.apache.curator.framework.recipes.cache.CuratorCacheListener listener) throws Exception
unsubscribe in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>Exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
lookup in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>key - the keyException - the exceptionpublic void close()
throws Exception
close in interface RegistryService<org.apache.curator.framework.recipes.cache.CuratorCacheListener>Exceptionprotected void createPersistent(String path)
protected boolean deletePath(String path)
Copyright © 2025 Apache. All rights reserved.