java.lang.Object | ||
↳ | org.apache.helix.HelixProperty | |
↳ | org.apache.helix.model.ExternalView |
External view is an aggregation (across all instances) of current states for the partitions in a resource
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.HelixProperty
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate an external view with the resource it corresponds to
| |||||||||||
Instantiate an external view with the resource it corresponds to
| |||||||||||
Instantiate an external view with a pre-populated record
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get all the partitions of the resource
| |||||||||||
Get all the partitions of the resource
| |||||||||||
Get the resource represented by this view
| |||||||||||
Get the resource represented by this view
| |||||||||||
Get the participant and the state for each partition replica
| |||||||||||
Get the instance and the state for each partition replica
| |||||||||||
Get property validity
| |||||||||||
For a given replica, specify which partition it corresponds to, where it is served, and its
current state
| |||||||||||
For a given replica, specify which partition it corresponds to, where it is served, and its
current state
| |||||||||||
For a given partition, indicate where and in what state each of its replicas is in
| |||||||||||
For a given partition, indicate where and in what state each of its replicas is in
| |||||||||||
Convert a partition mapping as strings into a participant state map
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.HelixProperty
| |||||||||||
From class
java.lang.Object
|
Instantiate an external view with the resource it corresponds to
resource | the name of the resource |
---|
Instantiate an external view with the resource it corresponds to
resource | the id of the resource |
---|
Instantiate an external view with a pre-populated record
record | ZNRecord corresponding to an external view |
---|
Get all the partitions of the resource
Get all the partitions of the resource
Get the resource represented by this view
Get the participant and the state for each partition replica
partitionId | the partition to look up |
---|
Get the instance and the state for each partition replica
partitionName | the partition to look up |
---|
Get property validity
For a given replica, specify which partition it corresponds to, where it is served, and its current state
partition | the partition of the replica being served |
---|---|
instance | the instance serving the replica |
state | the state the replica is in |
For a given replica, specify which partition it corresponds to, where it is served, and its current state
partitionId | the partition of the replica being served |
---|---|
participantId | the instance serving the replica |
state | the state the replica is in |
For a given partition, indicate where and in what state each of its replicas is in
partitionName | the partition to set |
---|---|
currentStateMap | (instance, state) pairs |
For a given partition, indicate where and in what state each of its replicas is in
partitionId | the partition to set |
---|---|
currentStateMap | (participant, state) pairs |
Convert a partition mapping as strings into a participant state map
rawMap | the map of participant name to state |
---|