|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is a container which represents a message, as it is about to be forwarded to another node.
Method Summary | |
java.lang.String |
getApplicationId()
Returns the application Id for this message |
NodeHandle |
getDestination()
Returns the destination NodeHandle for this message |
java.lang.String |
getKey()
Gets the identification key of this communication. |
Message |
getMessage()
Returns the enclosed message inside of this message |
int |
getMode()
Gets the mode of the actual Message. |
NodeHandle |
getNextHopHandle()
Returns the next hop handle for this message. |
NodeHandle |
getSource()
Returns the source NodeHandle for this message |
int |
getType()
Gets the type of the actual Message. |
void |
setApplicationId(java.lang.String app)
Sets the application name |
void |
setDestination(NodeHandle handle)
Sets the destination NodeHandle for this message |
void |
setKey(java.lang.String key)
Sets the identification key of this communication. |
void |
setMessage(Message message)
Sets the internal message for this message |
void |
setMode(int mode)
Sets the mode of the actual Message. |
void |
setNextHopHandle(NodeHandle nextHop)
Sets the next hop handle for this message |
void |
setSource(NodeHandle handle)
Sets the source NodeHandle for this message |
void |
setType(int type)
Sets the type of the actual Message. |
void |
setValues(java.lang.String key,
NodeHandle from,
NodeHandle to,
NodeHandle nh,
int type,
int mode,
Message msg,
java.lang.String appId)
Sets all values of the actual RouteMessage, before to be sent. |
Method Detail |
public java.lang.String getApplicationId()
public NodeHandle getDestination()
public NodeHandle getSource()
public NodeHandle getNextHopHandle()
public Message getMessage()
public java.lang.String getKey()
public int getType()
public int getMode()
public void setApplicationId(java.lang.String app)
app
- The application namepublic void setDestination(NodeHandle handle)
handle
- The destination NodeHandlepublic void setSource(NodeHandle handle)
handle
- The source NodeHandlepublic void setNextHopHandle(NodeHandle nextHop)
nextHop
- The next hop for this handlepublic void setMessage(Message message)
message
- The internal messagepublic void setKey(java.lang.String key)
key
- key of this communication.public void setMode(int mode)
mode
- The mode of the actual Message.Globals
public void setType(int type)
type
- The type of the actual Message.public void setValues(java.lang.String key, NodeHandle from, NodeHandle to, NodeHandle nh, int type, int mode, Message msg, java.lang.String appId)
key
- Identification key for this communication with the remote node.from
- Source Id of this RouteMessage.to
- Destination Id of this RouteMessage.nh
- NodeHandle for next hop.type
- Type of this message.mode
- Mode of this message.msg
- Message wrapped to this RouteMessage.appId
- Identification of the Application which generate this
message.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |