public class ConfigurationMessage extends Object implements BrokerMessage
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationMessage.ConfigurationMessageType |
BrokerMessage.BrokerMessageTypes
Constructor and Description |
---|
ConfigurationMessage() |
ConfigurationMessage(ConfigurationMessage.ConfigurationMessageType mType,
PeerCard sender,
String propagateSerialized)
Create a new Configuration Message.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationMessage |
createResoponse(String serializedParam) |
ConfigurationMessage.ConfigurationMessageType |
getMessageType() |
BrokerMessage.BrokerMessageTypes |
getMType() |
String |
getPayload() |
PeerCard[] |
getReceivers() |
boolean |
isRequest() |
boolean |
isSentFrom(PeerCard sender) |
String |
toString() |
static ConfigurationMessage |
unmarshall(String message) |
public ConfigurationMessage()
public ConfigurationMessage(ConfigurationMessage.ConfigurationMessageType mType, PeerCard sender, String propagateSerialized)
mType
- the type of the message to sentsender
- the sender of this messagepropagateSerialized
- public ConfigurationMessage.ConfigurationMessageType getMessageType()
public String getPayload()
public BrokerMessage.BrokerMessageTypes getMType()
getMType
in interface BrokerMessage
public PeerCard[] getReceivers()
getReceivers
in interface BrokerMessage
public boolean isRequest()
public ConfigurationMessage createResoponse(String serializedParam)
public String toString()
toString
in interface BrokerMessage
toString
in class Object
public static ConfigurationMessage unmarshall(String message) throws Exception
Exception
public boolean isSentFrom(PeerCard sender)
Copyright © 2015 universAAL Consortium. All Rights Reserved.