java.lang.Object | ||
↳ | org.apache.helix.api.accessor.ClusterAccessor | |
↳ | org.apache.helix.api.accessor.AtomicClusterAccessor |
An atomic version of the ClusterAccessor. If atomic operations are required, use instances of
this class. Atomicity is not guaranteed when using instances of ClusterAccessor alongside
instances of this class. Furthermore, depending on the semantics of the lock, lock acquisition
may fail, in which case users should handle the return value of each function if necessary.
Using this class is quite expensive; it should thus be used sparingly and only in systems where
contention on these operations is expected. For most systems running Helix, this is typically not
the case.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate the accessor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
add a participant to cluster
| |||||||||||
add a resource to cluster
| |||||||||||
create a new cluster, fail if it already exists
| |||||||||||
drop a cluster
| |||||||||||
drop a participant from cluster
| |||||||||||
drop a resource from cluster
| |||||||||||
Create empty persistent properties to ensure that there is a valid cluster structure
| |||||||||||
read entire cluster data
| |||||||||||
Read participants atomically.
| |||||||||||
Read resources atomically.
| |||||||||||
Update the cluster configuration
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.api.accessor.ClusterAccessor
| |||||||||||
From class
java.lang.Object
|
Instantiate the accessor
clusterId | the cluster to access |
---|---|
accessor | a HelixDataAccessor for the physical properties |
lockProvider | a lock provider |
add a participant to cluster
add a resource to cluster
create a new cluster, fail if it already exists
drop a cluster
drop a participant from cluster
drop a resource from cluster
Create empty persistent properties to ensure that there is a valid cluster structure
Read participants atomically. This is participant-atomic, not cluster-atomic
Read resources atomically. This is resource-atomic, not cluster-atomic
Update the cluster configuration
clusterDelta | change to the cluster configuration |
---|