| java.lang.Object | ||
| ↳ | org.apache.helix.HelixProperty | |
| ↳ | org.apache.helix.model.Message | |
Messages sent internally among nodes in the system to respond to changes in state.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Message.Attributes | Properties attached to Messages | ||||||||||
| Message.MessageState | The current processed state of the message | ||||||||||
| Message.MessageType | The major categories of messages that are sent | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATE_TIME_COMPARATOR | Compares the creation time of two Messages | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.HelixProperty
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a message
| |||||||||||
Instantiate a message
| |||||||||||
Instantiate a message
| |||||||||||
Instantiate a message
| |||||||||||
Instantiate a message with a new id
| |||||||||||
Instantiate a message with a new id
| |||||||||||
Instantiate a message
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a partition to a collection of partitions associated with this message
| |||||||||||
Create a reply based on an incoming message
| |||||||||||
Get the value of an attribute
| |||||||||||
Get the size of buckets defined
| |||||||||||
Get the cluster event name generating this message
| |||||||||||
Get controller message id, used for scheduler-task-queue state model only
| |||||||||||
Get the unique identifier attached to this message for reply matching
| |||||||||||
Get the time that this message was created
| |||||||||||
Check for debug mode
| |||||||||||
Get the time that execution occurred as a result of this message
| |||||||||||
Get the session identifier of the node that executes the message
| |||||||||||
Get the time to wait before stopping execution of this message
| |||||||||||
Get the "from-state" for transition-related messages
| |||||||||||
Get the generation that this message corresponds to
| |||||||||||
Get the
PropertyKey for this message | |||||||||||
Get the unique identifier of this message
| |||||||||||
Get the unique identifier of this message
| |||||||||||
Get the instance from which the message originated
| |||||||||||
Get the current state of the message
| |||||||||||
Get the subtype of the message
| |||||||||||
Get the type of this message
| |||||||||||
Get the resource partition associated with this message
| |||||||||||
Get a list of partitions associated with this message
| |||||||||||
Get the resource partition associated with this message
| |||||||||||
Get a list of partitions associated with this message
| |||||||||||
Get the time that this message was read
| |||||||||||
Get the resource associated with this message
| |||||||||||
Get the resource associated with this message
| |||||||||||
Get the results of message execution
| |||||||||||
Get the number of times to retry message handling on timeouts
| |||||||||||
Get the type of instance that the source is
| |||||||||||
Get the session identifier of the source node
| |||||||||||
Get the state model definition name
| |||||||||||
Get the state model definition id
| |||||||||||
Get the state model factory associated with this message
| |||||||||||
Get the name of the target instance
| |||||||||||
Get the session identifier of the destination node
| |||||||||||
Get timeout
| |||||||||||
Get the "to state" for transition-related messages
| |||||||||||
Get the session identifier of the node that executes the message
| |||||||||||
Get the "from-state" for transition-related messages
| |||||||||||
Get the session identifier of the source node
| |||||||||||
Get the session identifier of the destination node
| |||||||||||
Get the "to state" for transition-related messages
| |||||||||||
Check if this message is targetted for a controller
| |||||||||||
Get property validity
| |||||||||||
Add or change a message attribute
| |||||||||||
Set the size of buckets defined
| |||||||||||
Set the cluster event generating this message
| |||||||||||
Set a unique identifier that others can use to refer to this message in replies
| |||||||||||
Set the time that the message was created
| |||||||||||
Set the session identifier of the node that executes the message
| |||||||||||
Set the session identifier of the node that executes the message
| |||||||||||
Set the time that the instance executes tasks as instructed by this message
| |||||||||||
Set the time to wait before stopping execution of this message
| |||||||||||
Set the "from state" for transition-related messages
| |||||||||||
Set the "from state" for transition-related messages
| |||||||||||
Set an inner message
| |||||||||||
Set the unique identifier of this message
| |||||||||||
Set the unique identifier of this message
| |||||||||||
Set the current state of the message
| |||||||||||
Set a subtype of the message
| |||||||||||
Set the id of the partition this message concerns
| |||||||||||
Set the id of the partition this message concerns
| |||||||||||
Set the time that this message was read
| |||||||||||
Set the resource associated with this message
| |||||||||||
Set the resource associated with this message
| |||||||||||
Set the results of message execution
| |||||||||||
Set the number of times to retry message handling on timeouts
| |||||||||||
Set the type of instance that the source node is
| |||||||||||
Set the name of the source instance
| |||||||||||
Set the session identifier of the source node
| |||||||||||
Set the session identifier of the source node
| |||||||||||
Set the state model definition
| |||||||||||
Set the state model definition
| |||||||||||
Set the state model factory associated with this message
| |||||||||||
Set the state model factory associated with this message
| |||||||||||
Set the instance for which this message is targeted
| |||||||||||
Set the session identifier of the destination node
| |||||||||||
Set the session identifier of the destination node
| |||||||||||
Set the "to state" for transition-related messages
| |||||||||||
Set the "to state" for transition-related messages
| |||||||||||
Convert a string map to a message
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.helix.HelixProperty
| |||||||||||
From class
java.lang.Object
| |||||||||||
Compares the creation time of two Messages
Instantiate a message
| type | the message category |
|---|---|
| msgId | unique message identifier |
Instantiate a message
| type | the message category |
|---|---|
| msgId | unique message identifier |
Instantiate a message
| type | Message.MessageType as a string or a custom message type |
|---|---|
| msgId | unique message identifier |
Instantiate a message
| type | Message.MessageType as a string or a custom message type |
|---|---|
| msgId | unique message identifier |
Instantiate a message with a new id
| record | a ZNRecord corresponding to a message |
|---|---|
| id | unique message identifier |
Instantiate a message with a new id
| record | a ZNRecord corresponding to a message |
|---|---|
| id | unique message identifier |
Instantiate a message
| record | a ZNRecord corresponding to a message |
|---|
Add a partition to a collection of partitions associated with this message
| partitionName | the partition name to add |
|---|
Create a reply based on an incoming message
| srcMessage | the incoming message |
|---|---|
| instanceName | the instance that is the source of the reply |
| taskResultMap | the result of executing the incoming message |
Get the value of an attribute
| attr | Attribute |
|---|
Get the size of buckets defined
Get controller message id, used for scheduler-task-queue state model only
Get the unique identifier attached to this message for reply matching
Get the time that this message was created
Get the time that execution occurred as a result of this message
Get the session identifier of the node that executes the message
Get the time to wait before stopping execution of this message
Get the "from-state" for transition-related messages
Get the generation that this message corresponds to
Get the PropertyKey for this message
| keyBuilder | PropertyKey Builder |
|---|---|
| instanceName | target instance |
Get the unique identifier of this message
Get the instance from which the message originated
Get the type of this message
Message.MessageType or a custom message type
Get the resource partition associated with this message
Get a list of partitions associated with this message
Get the resource partition associated with this message
Get a list of partitions associated with this message
Get the time that this message was read
Get the resource associated with this message
Get the resource associated with this message
Get the results of message execution
Get the number of times to retry message handling on timeouts
Get the session identifier of the source node
Get the state model definition name
Get the state model definition id
Get the state model factory associated with this message
Get the session identifier of the destination node
Get timeout
Get the "to state" for transition-related messages
Get the session identifier of the node that executes the message
Get the "from-state" for transition-related messages
Get the session identifier of the source node
Get the session identifier of the destination node
Get the "to state" for transition-related messages
Check if this message is targetted for a controller
Get property validity
Add or change a message attribute
| attr | Message.Attributes attribute name |
|---|---|
| val | attribute value |
Set the size of buckets defined
| bucketSize | the bucket size (will default to 0 if negative) |
|---|
Set the cluster event generating this message
| event | cluster event |
|---|
Set a unique identifier that others can use to refer to this message in replies
| correlationId | a unique identifier, usually randomly generated |
|---|
Set the time that the message was created
| timestamp | a UNIX timestamp |
|---|
Set the session identifier of the node that executes the message
| exeSessionId | session identifier |
|---|
Set the session identifier of the node that executes the message
| exeSessionId | session identifier |
|---|
Set the time that the instance executes tasks as instructed by this message
| time | UNIX timestamp |
|---|
Set the time to wait before stopping execution of this message
| timeout | the timeout in ms, or -1 indicating no timeout |
|---|
Set the "from state" for transition-related messages
| state | the state |
|---|
Set the "from state" for transition-related messages
| state | the state |
|---|
Set the unique identifier of this message
| msgId | message identifier |
|---|
Set the unique identifier of this message
| msgId | message identifier |
|---|
Set the current state of the message
| msgState | Message.MessageState
|
|---|
Set a subtype of the message
| subType | name of the subtype |
|---|
Set the id of the partition this message concerns
Set the id of the partition this message concerns
Set the time that this message was read
| time | UNIX timestamp |
|---|
Set the resource associated with this message
| resourceId | resource name to set |
|---|
Set the resource associated with this message
| resourceName | resource name to set |
|---|
Set the results of message execution
| resultMap | map of result property and value pairs |
|---|
Set the number of times to retry message handling on timeouts
| retryCount | maximum number of retries |
|---|
Set the type of instance that the source node is
| type | InstanceType
|
|---|
Set the name of the source instance
| msgSrc | instance name |
|---|
Set the session identifier of the source node
| srcSessionId | session identifier |
|---|
Set the session identifier of the source node
| srcSessionId | session identifier |
|---|
Set the state model factory associated with this message
Set the state model factory associated with this message
| factoryName | the name of the factory |
|---|
Set the instance for which this message is targeted
| msgTgt | instance name |
|---|
Set the session identifier of the destination node
| tgtSessionId | session identifier |
|---|
Set the session identifier of the destination node
| tgtSessionId | session identifier |
|---|
Set the "to state" for transition-related messages
| state | the state |
|---|
Set the "to state" for transition-related messages
| state | the state |
|---|
Convert a string map to a message