public class ZookeeperRegisterServiceImpl extends Object implements RegistryService<org.I0Itec.zkclient.IZkChildListener>
CONFIG_SPLIT_CHAR, CURRENT_ADDRESS_MAP, PREFIX_SERVICE_MAPPING, PREFIX_SERVICE_ROOT, SERVICE_GROUP_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<InetSocketAddress> |
lookup(String key) |
void |
register(InetSocketAddress address) |
void |
subscribe(String cluster,
org.I0Itec.zkclient.IZkChildListener listener) |
void |
unregister(InetSocketAddress address) |
void |
unsubscribe(String cluster,
org.I0Itec.zkclient.IZkChildListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaliveLookup, getServiceGroup, refreshAliveLookup, removeOfflineAddressesIfNecessarypublic void register(InetSocketAddress address) throws Exception
register in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>Exceptionpublic void unregister(InetSocketAddress address) throws Exception
unregister in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>Exceptionpublic void subscribe(String cluster, org.I0Itec.zkclient.IZkChildListener listener) throws Exception
subscribe in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>Exceptionpublic void unsubscribe(String cluster, org.I0Itec.zkclient.IZkChildListener listener) throws Exception
unsubscribe in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>Exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
lookup in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>key - the keyException - the exceptionpublic void close()
throws Exception
close in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>ExceptionCopyright © 2024 Apache. All rights reserved.