java.lang.Object | ||
↳ | org.apache.helix.HelixProperty | |
↳ | org.apache.helix.model.CurrentState |
Current states of partitions in a resource for an instance.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CurrentState.CurrentStateProperty | Lookup keys for the current state |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a current state with a resource
| |||||||||||
Instantiate a current state with a resource
| |||||||||||
Instantiate a current state with a pre-populated ZNRecord
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the partitions on this instance and the state that each partition is currently in.
| |||||||||||
Get the resource id
| |||||||||||
Get the name of the resource
| |||||||||||
Get the session that this current state corresponds to
| |||||||||||
Get the state of a partition on this instance
| |||||||||||
Get the state of a partition on this instance
| |||||||||||
Get the state model that the resource follows
| |||||||||||
Get the state model that the resource follows
| |||||||||||
Get the state model factory
| |||||||||||
Get the partitions on this instance and the state that each partition is currently in
| |||||||||||
Get the session that this current state corresponds to
| |||||||||||
Get property validity
| |||||||||||
Convert a string map to a concrete partition map
| |||||||||||
Set the session that this current state corresponds to
| |||||||||||
Set the session that this current state corresponds to
| |||||||||||
Set the state that a partition is currently in on this instance
| |||||||||||
Set the state that a partition is currently in on this instance
| |||||||||||
Set the state model that the resource follows
| |||||||||||
Set the state model that the resource follows
| |||||||||||
Set the state model factory
| |||||||||||
Convert a partition map to a string map
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Instantiate a current state with a resource
resourceName | name identifying the resource |
---|
Instantiate a current state with a resource
resourceId | identifier for the resource |
---|
Instantiate a current state with a pre-populated ZNRecord
record | a ZNRecord corresponding to the current state |
---|
Get the partitions on this instance and the state that each partition is currently in.
Get the session that this current state corresponds to
Get the state of a partition on this instance
partitionName | the name of the partition |
---|
Get the state of a partition on this instance
partitionId | partition id |
---|
Get the state model that the resource follows
Get the state model that the resource follows
Get the state model factory
Get the partitions on this instance and the state that each partition is currently in
Get the session that this current state corresponds to
Get property validity
Convert a string map to a concrete partition map
rawMap | map of partition name to state name |
---|
Set the session that this current state corresponds to
sessionId | session identifier |
---|
Set the session that this current state corresponds to
sessionId | session identifier |
---|
Set the state that a partition is currently in on this instance
partitionId | the id of the partition |
---|---|
state | the state of the partition |
Set the state that a partition is currently in on this instance
partitionName | the name of the partition |
---|---|
state | the state of the partition |
Set the state model that the resource follows
Set the state model that the resource follows
stateModelName | an identifier of the state model |
---|
Set the state model factory
factoryName | the name of the factory |
---|
Convert a partition map to a string map
partitionStateMap | map of partition id to state |
---|