java.lang.Object | |
↳ | org.apache.helix.manager.zk.ZkCacheBaseDataAccessor<T> |
Known Direct Subclasses |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
_wtCache | |||||||||||
_zkCache |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This will always attempt to create the znode, if it exists it will return false.
| |||||||||||
Use it when creating children under a parent node.
| |||||||||||
checks if the all the paths exists
| |||||||||||
checks if the path exists in zk
| |||||||||||
Get List of T corresponding to the paths using async api
| |||||||||||
Get the T corresponding to the path
| |||||||||||
Returns the child names given a parent path
| |||||||||||
Get the children under a parent path using async api
| |||||||||||
Get the stats of a single path
| |||||||||||
Get the stats of all the paths
| |||||||||||
remove multiple paths using async api.
| |||||||||||
This will remove the ZNode and all its descendants if any
| |||||||||||
TODO refactor this.
| |||||||||||
This will always attempt to set the data on existing node.
| |||||||||||
This will attempt to set the data on existing node only if version matches.
| |||||||||||
can set multiple children under a parent node.
| |||||||||||
Perform resource allocation when property store starts
Resource allocation includes: - start an internal thread for fire callbacks
| |||||||||||
Perform clean up when property store stops
Cleanup includes: - stop the internal thread for fire callbacks
| |||||||||||
Register a listener to a parent path.
| |||||||||||
Subscribe child listener to path
| |||||||||||
Subscribe data listener to path
| |||||||||||
Remove a listener from a parent path.
| |||||||||||
Unsubscribe child listener to path
| |||||||||||
Unsubscribe data listener to path
| |||||||||||
This will attempt to update the data using the updater.
| |||||||||||
Can update multiple nodes using async api for better performance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.helix.BaseDataAccessor
| |||||||||||
From interface
org.apache.helix.store.HelixPropertyStore
|
This will always attempt to create the znode, if it exists it will return false. Will create parents if they do not exist. For performance reasons, it may try to create child first and only if it fails it will try to create parents
path | path to the ZNode to create |
---|---|
data | the data to write to the ZNode |
options | Set the type of ZNode see the valid values in AccessOption |
Use it when creating children under a parent node. This will use async api for better performance. If the child already exists it will return false.
paths | the paths to the children ZNodes |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
checks if the all the paths exists
paths | paths to the ZNodes to test |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
checks if the path exists in zk
path | path to the ZNode to test |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
Get List of T corresponding to the paths using async api
paths | paths to the ZNodes |
---|---|
stats | retrieve a list of stats for the ZNodes |
options | Set the type of ZNode see the valid values in AccessOption |
Get the T corresponding to the path
path | path to the ZNode |
---|---|
stat | retrieve the stat of the ZNode |
options | Set the type of ZNode see the valid values in AccessOption |
Returns the child names given a parent path
parentPath | path to the immediate parent ZNode |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
Get the children under a parent path using async api
stats | Zookeeper Stat objects corresponding to each child |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
Get the stats of a single path
path | path of the ZNode to query |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
Get the stats of all the paths
paths | paths of the ZNodes to query |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
remove multiple paths using async api. will remove any child nodes if any
paths | paths to the ZNodes to remove |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
This will remove the ZNode and all its descendants if any
path | path to the root ZNode to remove |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
TODO refactor this. reset() should not be in data accessor reset the cache if any, when session expiry happens
This will always attempt to set the data on existing node. If the ZNode does not exist it will create it and all its parents ZNodes if necessary
path | path to the ZNode to set |
---|---|
data | the data to write to the ZNode |
options | Set the type of ZNode see the valid values in AccessOption |
This will attempt to set the data on existing node only if version matches. If the ZNode does not exist it will create it and all its parent ZNodes only if expected version is -1
path | path to the ZNode to set |
---|---|
data | the data to write to the ZNode |
expectVersion | the expected version of the data to be overwritten, -1 means match any version |
options | Set the type of ZNode see the valid values in AccessOption |
can set multiple children under a parent node. This will use async api for better performance. If this child does not exist it will create it.
paths | the paths to the children ZNodes |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |
Perform resource allocation when property store starts Resource allocation includes: - start an internal thread for fire callbacks
Perform clean up when property store stops Cleanup includes: - stop the internal thread for fire callbacks
Register a listener to a parent path. Subscribing to a parent path means any changes happening under the parent path will notify the listener
Subscribe child listener to path
path | path to the immediate parent ZNode |
---|---|
listener | the listener to register for changes |
Subscribe data listener to path
path | path to the ZNode to listen to |
---|---|
listener | the listener to register for changes |
Remove a listener from a parent path. This will remove the listener from receiving any notifications happening under the parent path
Unsubscribe child listener to path
path | path to the immediate parent ZNode |
---|---|
listener | the listener currently subscribed to the children |
Unsubscribe data listener to path
path | path to the ZNode to stop listening to |
---|---|
listener | the listener currently subscribed to the ZNode |
This will attempt to update the data using the updater. If the ZNode does not exist it will create it and all its parent ZNodes. Updater will be invoked with null value if node does not exist.
path | path to the ZNode to update |
---|---|
updater | an update routine for the data to merge in |
options | Set the type of ZNode see the valid values in AccessOption |
Can update multiple nodes using async api for better performance. If a child does not exist it will create it.
updaters | List of update routines for records to update |
---|---|
options | Set the type of ZNode see the valid values in AccessOption |