public interface ZooKeeperRegistrar
| Modifier and Type | Method and Description |
|---|---|
void |
shutDown()
Called upon shutdown
|
void |
startUp()
Called upon startup
|
boolean |
tryToRegister(ZooKeeperClient client)
Called when ZK client connects.
|
void startUp()
throws Exception
Exception - If an unexpected error occurs.void shutDown()
throws Exception
Exception - If an unexpected error occurs.boolean tryToRegister(ZooKeeperClient client) throws org.apache.zookeeper.KeeperException, HostNotFoundException
client - The zookeeper client.org.apache.zookeeper.KeeperException - If an unexpected zookeeper error occurs.HostNotFoundException - If the hostname we are trying to re-register as doesn't exist.Copyright © 2017. All rights reserved.