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
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 belongsvalue
- the value of the observed statistictype
- the type of statistic (i.e. LATENCY, etc)
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