boolean
|
create(String path, T data, int options)
This will always attempt to create the znode, if it exists it will return false.
|
boolean[]
|
createChildren(List<String> paths, List<T> records, int options)
Use it when creating children under a parent node.
|
boolean[]
|
exists(List<String> paths, int options)
checks if the all the paths exists
|
boolean
|
exists(String path, int options)
checks if the path exists in zk
|
List<T>
|
get(List<String> paths, List<Stat> stats, int options)
Get List of T corresponding to the paths using async api
|
T
|
get(String path, Stat stat, int options)
Get the T corresponding to the path
|
List<String>
|
getChildNames(String parentPath, int options)
Returns the child names given a parent path
|
List<T>
|
getChildren(String parentPath, List<Stat> stats, int options)
Get the children under a parent path using async api
|
Stat
|
getStat(String path, int options)
Get the stats of a single path
|
Stat[]
|
getStats(List<String> paths, int options)
Get the stats of all the paths
|
boolean[]
|
remove(List<String> paths, int options)
remove multiple paths using async api.
|
boolean
|
remove(String path, int options)
This will remove the ZNode and all its descendants if any
|
void
|
reset()
TODO refactor this.
|
boolean
|
set(String path, T data, int options)
This will always attempt to set the data on existing node.
|
boolean
|
set(String path, T data, int expectVersion, int options)
This will attempt to set the data on existing node only if version matches.
|
boolean[]
|
setChildren(List<String> paths, List<T> records, int options)
can set multiple children under a parent node.
|
void
|
start()
Perform resource allocation when property store starts
Resource allocation includes: - start an internal thread for fire callbacks
|
void
|
stop()
Perform clean up when property store stops
Cleanup includes: - stop the internal thread for fire callbacks
|
void
|
subscribe(String parentPath, HelixPropertyListener listener)
Register a listener to a parent path.
|
List<String>
|
subscribeChildChanges(String path, IZkChildListener listener)
Subscribe child listener to path
|
void
|
subscribeDataChanges(String path, IZkDataListener listener)
Subscribe data listener to path
|
void
|
unsubscribe(String parentPath, HelixPropertyListener listener)
Remove a listener from a parent path.
|
void
|
unsubscribeChildChanges(String path, IZkChildListener listener)
Unsubscribe child listener to path
|
void
|
unsubscribeDataChanges(String path, IZkDataListener listener)
Unsubscribe data listener to path
|
boolean
|
update(String path, DataUpdater<T> updater, int options)
This will attempt to update the data using the updater.
|
boolean[]
|
updateChildren(List<String> paths, List<DataUpdater<T>> updaters, int options)
Can update multiple nodes using async api for better performance.
|