|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.trivialp2p.behaviours.DataBehaviour
This behaviour is available for application level messages. It routes to the successor (in a clockwise proximity) up to the destination node, where the message is delivered.
Constructor Summary | |
DataBehaviour()
|
Method Summary | |
java.lang.String |
getName()
Gets the behaviour name. |
void |
onMessage(RouteMessage msg,
Node node)
This method treat any application level message, the only available ones in this TrivialP2P overlay implementation. |
java.lang.String |
toString()
Returns the behaviour name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataBehaviour()
Method Detail |
public java.lang.String getName()
getName
in interface Behaviour
Behaviour.getName()
public java.lang.String toString()
toString
in interface Behaviour
Object.toString()
public void onMessage(RouteMessage msg, Node node)
onMessage
in interface Behaviour
msg
- A RouteMessage that contains an application level message.node
- The local node.Behaviour.onMessage(planet.commonapi.RouteMessage, planet.commonapi.Node)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |