|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.cluster.communication.Message
public class Message
This class represents a message sent by the cluster communication mechanism.
It can transport an arbitrary serializable object. The type of the message can be set. It is an arbitrary string. Types starting with "_ep_" are reserved for internal use.
| Field Summary | |
|---|---|
static String |
DEFAULT_TYPE
|
| Constructor Summary | |
|---|---|
Message()
Default constructor |
|
Message(Serializable content)
Constructs a message and initializes the content. |
|
| Method Summary | |
|---|---|
Serializable |
getContent()
Return the content of this message. |
String |
getFrom()
Returns the node id of the sender of the message. |
String |
getMsgType()
Return the type of this message. |
void |
setContent(Serializable content)
Set the content of this message. |
void |
setMsgType(String msgType)
Set the type representation of this message. |
String |
toString()
Return a String representation of this message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_TYPE
| Constructor Detail |
|---|
public Message()
public Message(Serializable content)
content - | Method Detail |
|---|
public Serializable getContent()
public void setContent(Serializable content)
content - the new contentpublic String toString()
toString in class Objectpublic String getFrom()
public String getMsgType()
public void setMsgType(String msgType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||