ostore.network.patchwork
Class NodeStatusMsg

java.lang.Object
  |
  +--ostore.network.patchwork.NodeStatusMsg
All Implemented Interfaces:
QueueElementIF

public class NodeStatusMsg
extends Object
implements QueueElementIF

Sent by Patchwork to other stages who care if nodes fail or come back. Contains a status field, which denotes how the status of the node being monitored has changed.

Version:
$Id: NodeStatusMsg.java,v 1.2 2003/02/25 23:21:24 strib Exp $
Author:
Jeremy Stribling

Field Summary
 NodeId peer
           
 int status
           
static int STATUS_ALIVE
           
static int STATUS_DEAD
           
 Object userData
           
 
Constructor Summary
NodeStatusMsg(NodeId peer, int status, Object userData)
           
 
Method Summary
 Object clone()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer

public NodeId peer

status

public int status

userData

public Object userData

STATUS_DEAD

public static final int STATUS_DEAD

STATUS_ALIVE

public static final int STATUS_ALIVE
Constructor Detail

NodeStatusMsg

public NodeStatusMsg(NodeId peer,
                     int status,
                     Object userData)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object