| Package | Description |
|---|---|
| at.salzburgresearch.nodekeeper | |
| at.salzburgresearch.nodekeeper.bootstrap | |
| at.salzburgresearch.nodekeeper.eca |
| Modifier and Type | Method and Description |
|---|---|
void |
NodeKeeper.addListener(String pathPattern,
NodeListener listener)
Appends a listener to the pathPattern.
|
<T> void |
NodeKeeper.deleteNode(Node<T> node)
delete the node from ZooKeeper
|
boolean |
NodeKeeper.hasChildren(String path) |
<T> Set<Node<T>> |
NodeKeeper.listChildrenNodes(String path,
Class<T> clazz) |
int |
NodeKeeper.nbOfChildren(String path) |
abstract void |
NodeListener.onNodeCreated(Node<T> node) |
abstract void |
NodeListener.onNodeDeleted(Node<T> node) |
abstract void |
NodeListener.onNodeUpdated(Node<T> node) |
<T> Node<T> |
NodeKeeper.readNode(String path,
Class<T> clazz)
read node to ZooKeeper, return null if it does not exist
|
void |
NodeKeeper.startListeners() |
<T> void |
NodeKeeper.writeNode(Node<T> node,
Class<T> clazz)
write node to ZooKeeper, create parent nodes recursively if they do not exist
|
| Constructor and Description |
|---|
NodeKeeper(String connectionString,
int sessionTimeout,
Properties properties)
NodeKeeper enables a ZooKeeper connection.
|
NodeKeeper(String connectionString,
int sessionTimeout,
Properties properties,
String startNode)
NodeKeeper enables a ZooKeeper connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ZKBootstrapCli.exec() |
void |
ZKBootstrap.load(File file,
boolean clean) |
void |
ZKBootstrap.load(InputStream is,
boolean clean) |
static void |
ZKBootstrapCli.main(String[] args) |
| Modifier and Type | Method and Description |
|---|---|
void |
RuleHandler.addRule(Rule rule) |
void |
Action.execute(NodeKeeper nodeKeeper,
HashMap<String,String> bindings) |
void |
RuleHandler.readRules(InputStream stream) |
Copyright © 2014. All Rights Reserved.