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).


Field Summary
static int DEAD
           
static int HIBERNATING
           
 int hops
           
 SecureHash node
           
 NodeId node_id
           
static int NORMAL
           
 int type
           
 
Constructor Summary
PatchworkNodeStatusMsg(NodeId node_id, SecureHash node, int type, int hops)
          Constructor.
PatchworkNodeStatusMsg(SecureHash node, int type, int hops)
          Constructor.
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PatchworkNodeStatusMsg

public PatchworkNodeStatusMsg(NodeId node_id,
                              SecureHash node,
                              int type,
                              int hops)
Constructor.
Parameters:
node - the id of the node whose status has changed
node - the guid of the node whose status has changed
type - the new status, either NORMAL, HIBERNATING, or DEAD
hops - 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 changed
type - the new status, either NORMAL, HIBERNATING, or DEAD
hops - Number of tapestry between node and self. NOTE: this also can be the level in the RoutingTable between other node and self.
Method Detail

toString

public String toString()
Overrides:
toString in class Object