public class CommandStatusReporter extends Object implements org.apache.curator.framework.api.BackgroundCallback, org.apache.zookeeper.Watcher
BackgroundCallback functionality of curator API| Constructor and Description |
|---|
CommandStatusReporter(org.apache.curator.framework.CuratorFramework client,
String reportPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
processResult(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.api.CuratorEvent event) |
void |
report()
creates a ZNode in background in the
|
public CommandStatusReporter(org.apache.curator.framework.CuratorFramework client,
String reportPath)
public void report()
throws Exception
reportPathwith the name
nodeName
Exception - zookeeper errors etc...public void processResult(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.api.CuratorEvent event)
throws Exception
processResult in interface org.apache.curator.framework.api.BackgroundCallbackExceptionpublic void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.WatcherCopyright © 2016–2019 AdroitLogic. All rights reserved.