public static interface DistributedTree.Listener
Modifier and Type | Method and Description |
---|---|
void |
nodeAdded(String node)
Invoked when a new node has been added to the tree.
|
void |
nodeChildAdded(String node,
String child)
Invoked when a new child node of the listener's target node has been created.
|
void |
nodeChildDeleted(String node,
String child)
Invoked when a child node of the listener's target node has been deleted.
|
void |
nodeChildUpdated(String node,
String child)
Invoked when a child node's contents of the listener's target node has been modified.
|
void |
nodeDeleted(String node)
Invoked when a node has been deleted from the tree.
|
void |
nodeUpdated(String node)
Invoked when a node's contents has been modified.
|
void nodeAdded(String node)
node
- The new node's full path.void nodeUpdated(String node)
node
- The updated node's full path.void nodeDeleted(String node)
node
- The deleted node's full path.void nodeChildAdded(String node, String child)
nodeAdded
will be called on a listener listening on the child node, if one exists.node
- The full path of the parent node.child
- The simple name (without the full path) of the newly added child node.void nodeChildUpdated(String node, String child)
nodeUpdated
will be called on a listener listening on the child node, if one exists.node
- The full path of the parent node.child
- The simple name (without the full path) of the updated node.void nodeChildDeleted(String node, String child)
nodeDeleted
will be called on a listener listening on the child node, if one exists.node
- The full path of the parent node.child
- The simple name (without the full path) of the deleted child node.