ostore.network.patchwork
Class MonitorMsg

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

public class MonitorMsg
extends Object
implements QueueElementIF

A MonitorMsg is sent from a stage interested in monitoring statistics to certain NodeIds. This message tells the Patchwork stage to begin monitoring this node at a certain level of probing, until further notice. It can also serve to change the level of probing of a node that's already being monitored. Since the specific constructors for details. See Patchwork for a description of what "probing level" means.

Version:
$Id: MonitorMsg.java,v 1.5 2003/05/08 01:55:05 strib Exp $
Author:
Jeremy Stribling
See Also:
Patchwork

Field Summary
 int[] levels
           
 NodeId[] peers
           
 SinkIF sink
           
 byte type
           
 Object userData
           
 long[] values
           
 
Constructor Summary
MonitorMsg(NodeId[] peers, int[] levels, long[] values, byte type, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring some nodes, given values for a statistic as a starting point.
MonitorMsg(NodeId[] peers, int[] levels, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring some nodes at given levels.
MonitorMsg(NodeId[] peers, long[] values, byte type, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring some nodes, given values for a statistic as a starting point.
MonitorMsg(NodeId peer, int level, long value, byte type, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring a node, given a value for a statistic as a starting point.
MonitorMsg(NodeId peer, int level, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring a node at a given level.
MonitorMsg(NodeId peer, long value, byte type, Object userData, SinkIF sink)
          Tell Patchwork to start monitoring a node, given a value for a statistic as a starting point.
 
Method Summary
 Object clone()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peers

public NodeId[] peers

levels

public int[] levels

values

public long[] values

type

public byte type

userData

public Object userData

sink

public SinkIF sink
Constructor Detail

MonitorMsg

public MonitorMsg(NodeId peer,
                  int level,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring a node at a given level.
Parameters:
peer - The node to monitor
level - The specified probing level

MonitorMsg

public MonitorMsg(NodeId peer,
                  long value,
                  byte type,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring a node, given a value for a statistic as a starting point. From this value, Patchwork will determine what the probing level of the node should be.
Parameters:
peer - The node to monitor
value - The given initial value for some statistic (also determines the probing level)
type - The type of the above value (see Patch)
See Also:
Patch

MonitorMsg

public MonitorMsg(NodeId peer,
                  int level,
                  long value,
                  byte type,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring a node, given a value for a statistic as a starting point. Also given is the desired probing level of that node.
Parameters:
peer - The node to monitor
level - The specified probing level
value - The given initial value for some statistic
type - The type of the above value (see Patch)
See Also:
Patch

MonitorMsg

public MonitorMsg(NodeId[] peers,
                  int[] levels,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring some nodes at given levels.
Parameters:
peers - The nodes to monitor
levels - The specified probing levels, corresponding to each node

MonitorMsg

public MonitorMsg(NodeId[] peers,
                  long[] values,
                  byte type,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring some nodes, given values for a statistic as a starting point. From these values, Patchwork will determine what the probing levels of the nodes should be.
Parameters:
peers - The nodes to monitor
values - The given initial values for some statistic (also determines the probing levels)
type - The type of the above values (see Patch)
See Also:
Patch

MonitorMsg

public MonitorMsg(NodeId[] peers,
                  int[] levels,
                  long[] values,
                  byte type,
                  Object userData,
                  SinkIF sink)
Tell Patchwork to start monitoring some nodes, given values for a statistic as a starting point. Also given is the desired probing levels of those nodes.
Parameters:
peers - The nodes to monitor
levels - The specified probing levels, corresponding to each node
values - The given initial values for some statistic
type - The type of the above values (see Patch)
See Also:
Patch
Method Detail

clone

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

toString

public String toString()
Overrides:
toString in class Object