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()
Close.
|
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
void |
register(InetSocketAddress address)
Register.
|
void |
subscribe(String cluster,
org.I0Itec.zkclient.IZkChildListener listener)
Subscribe.
|
void |
unregister(InetSocketAddress address)
Unregister.
|
void |
unsubscribe(String cluster,
org.I0Itec.zkclient.IZkChildListener listener)
Unsubscribe.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaliveLookup, getServiceGroup, refreshAliveLookuppublic void register(InetSocketAddress address) throws Exception
RegistryServiceregister in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>address - the addressException - the exceptionpublic void unregister(InetSocketAddress address) throws Exception
RegistryServiceunregister in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>address - the addressException - the exceptionpublic void subscribe(String cluster, org.I0Itec.zkclient.IZkChildListener listener) throws Exception
RegistryServicesubscribe in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>cluster - the clusterlistener - the listenerException - the exceptionpublic void unsubscribe(String cluster, org.I0Itec.zkclient.IZkChildListener listener) throws Exception
RegistryServiceunsubscribe in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>cluster - the clusterlistener - the listenerException - the exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
RegistryServicelookup in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>key - the keyException - the exceptionpublic void close()
throws Exception
RegistryServiceclose in interface RegistryService<org.I0Itec.zkclient.IZkChildListener>Exception - the exceptionCopyright © 2023 Seata. All rights reserved.