ostore.network.patchwork
Class QuickStatResp
java.lang.Object
|
+--ostore.network.patchwork.QuickStatResp
- All Implemented Interfaces:
- PatchMsg, QueueElementIF
- public final class QuickStatResp
- extends Object
- implements QueueElementIF, PatchMsg
Sent by Patchwork in response to a QuickStatReq
. Contains
statistics collected over a short amount of time for a set of nodes.
- Version:
- $Id: QuickStatResp.java,v 1.4 2003/03/24 00:13:14 geels Exp $
- Author:
- Jeremy Stribling
type
public byte type
peers
public NodeId[] peers
userData
public Object userData
failures
public boolean[] failures
- Set to true if Patchwork got no response from the corresponding
node during the recalculation period
stats
public PatchworkStats[] stats
- Stats for the corresponding nodes in
peers
. Note that
the "overall" and "current" stats should be identical.
QuickStatResp
public QuickStatResp(NodeId[] peers,
byte type,
PatchworkStats[] stats,
Object userData)
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
getType
public byte getType()
- Specified by:
getType
in interface PatchMsg
toString
public String toString()
- Overrides:
toString
in class Object