Package de.xima.fc.cluster.model.msg
Class ClusterPluginSyncMessage
- java.lang.Object
-
- de.xima.fc.cluster.model.msg.ClusterPluginSyncMessage
-
- All Implemented Interfaces:
IClusterMessage
,Serializable
public class ClusterPluginSyncMessage extends Object implements IClusterMessage
A message that is sent when a plugin was activated or deactivated. Informs other nodes that they should sync the state of that plugin.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterPluginSyncMessage(PluginSyncData pluginSyncData)
Creates a new message that tells another node to sync a plugin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginSyncData
getMessageData()
NodeModel
getSourceNode()
NodeModel
getTargetNode()
void
setSourceNode(NodeModel sender)
-
-
-
Constructor Detail
-
ClusterPluginSyncMessage
public ClusterPluginSyncMessage(PluginSyncData pluginSyncData)
Creates a new message that tells another node to sync a plugin.- Parameters:
pluginSyncData
- Details about the plugin to be synced.
-
-
Method Detail
-
getTargetNode
public NodeModel getTargetNode()
- Specified by:
getTargetNode
in interfaceIClusterMessage
- Returns:
- The node to which the message should be sent.
-
setSourceNode
public void setSourceNode(NodeModel sender)
- Specified by:
setSourceNode
in interfaceIClusterMessage
- Parameters:
sender
- The source node from which the message originates.
-
getSourceNode
public NodeModel getSourceNode()
- Specified by:
getSourceNode
in interfaceIClusterMessage
- Returns:
- The source node from which the message originates.
-
getMessageData
public PluginSyncData getMessageData()
- Specified by:
getMessageData
in interfaceIClusterMessage
- Returns:
- The payload with the message details.
-
-