@InterfaceAudience.Private public class ZKVisibilityLabelWatcher extends ZooKeeperListener
watcher| Constructor and Description |
|---|
ZKVisibilityLabelWatcher(ZooKeeperWatcher watcher,
VisibilityLabelsCache labelsCache,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
nodeChildrenChanged(String path) |
void |
nodeCreated(String path) |
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
void |
start() |
void |
writeToZookeeper(byte[] data,
boolean labelsOrUserAuths)
Write a labels mirror or user auths mirror into zookeeper
|
getWatcherpublic ZKVisibilityLabelWatcher(ZooKeeperWatcher watcher, VisibilityLabelsCache labelsCache, org.apache.hadoop.conf.Configuration conf)
public void start()
throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionpublic void nodeCreated(String path)
nodeCreated in class ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted in class ZooKeeperListenerpublic void nodeDataChanged(String path)
nodeDataChanged in class ZooKeeperListenerpublic void nodeChildrenChanged(String path)
nodeChildrenChanged in class ZooKeeperListenerpublic void writeToZookeeper(byte[] data,
boolean labelsOrUserAuths)
data - labelsOrUserAuths - true for writing labels and false for user auths.Copyright © 2015 The Apache Software Foundation. All Rights Reserved.