ostore.tapestry.patchwork
Class PatchworkModel.Observation

java.lang.Object
  |
  +--ostore.tapestry.patchwork.PatchworkModel.Observation
All Implemented Interfaces:
QuickSerializable
Enclosing class:
PatchworkModel

public static class PatchworkModel.Observation
extends Object
implements QuickSerializable

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

Version:
$Id: PatchworkModel.java,v 1.11 2003/02/05 22:49:38 hling Exp $
Author:
Jeremy Stribling

Constructor Summary
PatchworkModel.Observation(InputBuffer buffer)
          Construct a Patchwork.Observation from its QuickSerializable form.
PatchworkModel.Observation(SecureHash observed_peer, double value, int type)
          Record the observed double value of type type for the specified node id peer.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 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
 

Constructor Detail

PatchworkModel.Observation

public PatchworkModel.Observation(InputBuffer buffer)
                           throws QSException
Construct a Patchwork.Observation from its QuickSerializable form.

PatchworkModel.Observation

public PatchworkModel.Observation(SecureHash observed_peer,
                                  double value,
                                  int 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

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable
Specified by:
serialize in interface QuickSerializable
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Returns a string representation of this Observation
Overrides:
toString in class Object