|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface which an application must implement in order to run on top of the EndPoint interface.
Any implementation must include a no argument constructor.
Method Summary | |
void |
byStep()
An upcall to inform this Application for a new step. |
void |
deliver(Id id,
Message message)
This method is called on the application at the destination node for the given id. |
boolean |
forward(Message message)
This method is invoked on applications when the underlying node is about to forward the given message with the provided target to the specified next hop. |
java.lang.String |
getId()
Gets the identification of this application. |
void |
setEndPoint(EndPoint endPoint)
Sets the EndPoint which permits communicate with underlying node. |
void |
setId(java.lang.String appId)
Sets the String identification of this application. |
Application |
setValues(java.lang.String applicationName)
Sets the name for this applicaton. |
void |
update(NodeHandle node,
boolean joined)
Informs to the application that the node has either joined or left the neighbor set of the local node, as that set would be returned by the neighborSet call. |
Method Detail |
public boolean forward(Message message)
message
- The message being sent, containing an internal message
along with a destination key and nodeHandle next hop.
public void deliver(Id id, Message message)
id
- The destination node id of the messagemessage
- The message being sentpublic java.lang.String getId()
public void setId(java.lang.String appId)
appId
- Identification of this application.public void setEndPoint(EndPoint endPoint)
endPoint
- EndPoint to contact that knows how talk with
underlying node.public void update(NodeHandle node, boolean joined)
node
- Node that has joined or left the neighbor set.joined
- If true, the node has joined to the neighbor set.
In other case, the node has left the neighbor set.public void byStep()
public Application setValues(java.lang.String applicationName)
applicationName
- Name for this application.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |