java.lang.Object | ||
↳ | org.apache.helix.api.accessor.ParticipantAccessor | |
↳ | org.apache.helix.api.accessor.AtomicParticipantAccessor |
An atomic version of the ParticipantAccessor. If atomic operations are required, use instances of
this class. Atomicity is not guaranteed when using instances of ParticipantAccessor 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
delete messages from participant
| |||||||||||
Create empty persistent properties to ensure that there is a valid participant structure
| |||||||||||
create messages for participant
| |||||||||||
read participant related data
| |||||||||||
Set the configuration of an existing participant
| |||||||||||
set messages of participant
| |||||||||||
Update a participant configuration
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get a ResourceAccessor instance
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Instantiate the accessor
clusterId | the cluster to access |
---|---|
accessor | a HelixDataAccessor for the physical properties |
lockProvider | a lock provider |
delete messages from participant
Create empty persistent properties to ensure that there is a valid participant structure
create messages for participant
msgMap | map of message-id to message |
---|
read participant related data
Set the configuration of an existing participant
participantConfig | participant configuration |
---|
set messages of participant
msgMap | map of message-id to message |
---|
Update a participant configuration
participantId | the participant to update |
---|---|
participantDelta | changes to the participant |
Get a ResourceAccessor instance