ostore.tapestry.patchwork
Class PatchworkNodeStatusMsg
java.lang.Object
|
+--ostore.tapestry.patchwork.PatchworkNodeStatusMsg
- All Implemented Interfaces:
- QueueElementIF
- public class PatchworkNodeStatusMsg
- extends Object
- implements QueueElementIF
This event lets any other listening stage know that
the status of a particluar node has changed
(i.e. it is has been tagged as hibernating or dead).
NORMAL
public static final int NORMAL
HIBERNATING
public static final int HIBERNATING
DEAD
public static final int DEAD
type
public int type
node
public SecureHash node
node_id
public NodeId node_id
hops
public int hops
PatchworkNodeStatusMsg
public PatchworkNodeStatusMsg(NodeId node_id,
SecureHash node,
int type,
int hops)
- Constructor.
- Parameters:
node
- the id of the node whose status has changednode
- the guid of the node whose status has changedtype
- the new status, either NORMAL, HIBERNATING, or DEADhops
- Number of
tapestry
between node
and self.
NOTE: this also can be the level in the
RoutingTable
between
other node
and self.
PatchworkNodeStatusMsg
public PatchworkNodeStatusMsg(SecureHash node,
int type,
int hops)
- Constructor.
- Parameters:
node
- the guid of the node whose status has changedtype
- the new status, either NORMAL, HIBERNATING, or DEADhops
- Number of
tapestry
between node
and self.
NOTE: this also can be the level in the
RoutingTable
between
other node
and self.
toString
public String toString()
- Overrides:
toString
in class Object