tapestry.patchwork
Class PatchworkTable.Observation

java.lang.Object
  |
  +--tapestry.patchwork.PatchworkTable.Observation
Enclosing class:
PatchworkTable

public static class PatchworkTable.Observation
extends Object

A Patchwork.Observation object contains an observation recorded by the patchwork stage.

Version:
$Id: PatchworkTable.java,v 1.2 2004/05/06 22:34:27 hweather Exp $
Author:
Jeremy Stribling

Field Summary
protected  NodeId peer
           
protected  byte type
           
protected  long value
           
 
Constructor Summary
PatchworkTable.Observation(NodeId observed_peer, long value, byte type)
          Record the observed double value of type type for the specified node id peer.
 
Method Summary
 String toString()
          Returns a string representation of this Observation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer

protected NodeId peer

value

protected long value

type

protected byte type
Constructor Detail

PatchworkTable.Observation

public PatchworkTable.Observation(NodeId observed_peer,
                                  long value,
                                  byte type)
Record the observed double value of type type for the specified node id peer.

Parameters:
observed_peer - the node to which the statistic belongs
value - the value of the observed statistic
type - the type of statistic (i.e. LATENCY, etc)
Method Detail

toString

public String toString()
Returns a string representation of this Observation

Overrides:
toString in class Object