@InterfaceAudience.Private public class ZKSecretWatcher extends ZooKeeperListener
watcher| Constructor and Description |
|---|
ZKSecretWatcher(Configuration conf,
ZooKeeperWatcher watcher,
AuthenticationTokenSecretManager secretManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKeyToZK(AuthenticationKey key) |
java.lang.String |
getRootKeyZNode() |
void |
nodeChildrenChanged(java.lang.String path)
Called when an existing node has a child node added or removed.
|
void |
nodeCreated(java.lang.String path)
Called when a new node has been created.
|
void |
nodeDataChanged(java.lang.String path)
Called when an existing node has changed data.
|
void |
nodeDeleted(java.lang.String path)
Called when a node has been deleted
|
void |
removeKeyFromZK(AuthenticationKey key) |
void |
start() |
void |
updateKeyInZK(AuthenticationKey key) |
getWatcherpublic ZKSecretWatcher(Configuration conf,
ZooKeeperWatcher watcher,
AuthenticationTokenSecretManager secretManager)
public void start()
throws KeeperException
KeeperExceptionpublic void nodeCreated(java.lang.String path)
ZooKeeperListenernodeCreated in class ZooKeeperListenerpath - full path of the new nodepublic void nodeDeleted(java.lang.String path)
ZooKeeperListenernodeDeleted in class ZooKeeperListenerpath - full path of the deleted nodepublic void nodeDataChanged(java.lang.String path)
ZooKeeperListenernodeDataChanged in class ZooKeeperListenerpath - full path of the updated nodepublic void nodeChildrenChanged(java.lang.String path)
ZooKeeperListenernodeChildrenChanged in class ZooKeeperListenerpath - full path of the node whose children have changedpublic java.lang.String getRootKeyZNode()
public void removeKeyFromZK(AuthenticationKey key)
public void addKeyToZK(AuthenticationKey key)
public void updateKeyInZK(AuthenticationKey key)