planet.results
Class NodeFlowStatus

java.lang.Object
  extended byplanet.results.NodeFlowStatus
All Implemented Interfaces:
java.io.Serializable

public class NodeFlowStatus
extends java.lang.Object
implements java.io.Serializable

NodeFlowStaus is a class designed to keep track of flow on each node on the overlay. Hence, a flow involves to count incoming, outcoming and dropped messages by the node. The dropped messages are messages dropped by the node which not belong to him.

Author:
Marc Sanchez
See Also:
Serialized Form

Constructor Summary
NodeFlowStatus(Id node)
           
 
Method Summary
 int getDropped()
           
 Id getId()
           
 int getIncoming()
           
 int getOutcoming()
           
 void updateDropped()
          Updates the number of dropped messages by this node.
 void updateIncoming()
          Updates the number incoming messages by this node.
 void updateOutcoming()
          Updates the number outcoming messages by this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFlowStatus

public NodeFlowStatus(Id node)
Method Detail

updateIncoming

public void updateIncoming()
Updates the number incoming messages by this node.


updateOutcoming

public void updateOutcoming()
Updates the number outcoming messages by this node.


updateDropped

public void updateDropped()
Updates the number of dropped messages by this node.


getId

public Id getId()
Returns:
Returns the node's Id.

getIncoming

public int getIncoming()
Returns:
Returns the number of incoming messages.

getOutcoming

public int getOutcoming()
Returns:
Returns the number of outcoming messages.

getDropped

public int getDropped()
Returns:
Returns the number of dropped messages.


AVBAR ======= -->