@InterfaceAudience.Private public class ZKVisibilityLabelWatcher extends ZooKeeperListener
watcher| 构造器和说明 |
|---|
ZKVisibilityLabelWatcher(ZooKeeperWatcher watcher,
VisibilityLabelsCache labelsCache,
org.apache.hadoop.conf.Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 ZooKeeperListenerpublic void nodeDeleted(String path)
nodeDeleted 在类中 ZooKeeperListenerpublic void nodeDataChanged(String path)
nodeDataChanged 在类中 ZooKeeperListenerpublic void nodeChildrenChanged(String path)
nodeChildrenChanged 在类中 ZooKeeperListenerpublic void writeToZookeeper(byte[] data,
boolean labelsOrUserAuths)
data - labelsOrUserAuths - true for writing labels and false for user auths.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.