Package de.xima.fc.cluster.model.msg
Class ClusterControllMessage
java.lang.Object
de.xima.fc.cluster.model.msg.ClusterControllMessage
- All Implemented Interfaces:
IClusterMessage,Serializable
A message is sent to control other nodes, such as when a node should change its state and start or stop performing
work.
- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClusterControllMessage(NodeModel targetNode, EClusterControllMessage msg) Creates a new cluster control message targeted at the given node. -
Method Summary
-
Constructor Details
-
ClusterControllMessage
Creates a new cluster control message targeted at the given node.- Parameters:
targetNode- Node to which a control message should be sent.msg- Command to be sent to the node.
-
-
Method Details
-
getControllMsg
- Returns:
- Control command for the target node.
-
getSourceNode
- Specified by:
getSourceNodein interfaceIClusterMessage- Returns:
- The source node from which the message originates.
-
setSourceNode
- Specified by:
setSourceNodein interfaceIClusterMessage- Parameters:
sourceNode- The source node from which the message originates.
-
getTargetNode
- Specified by:
getTargetNodein interfaceIClusterMessage- Returns:
- The node to which the message should be sent.
-
getMessageData
- Specified by:
getMessageDatain interfaceIClusterMessage- Returns:
- The payload with the message details.
-