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

Field Summary
 boolean[] failures
          Set to true if Patchwork got no response from the corresponding node during the recalculation period
 NodeId[] peers
           
 PatchworkStats[] stats
          Stats for the corresponding nodes in peers.
 byte type
           
 Object userData
           
 
Constructor Summary
QuickStatResp(NodeId[] peers, byte type, PatchworkStats[] stats, Object userData)
           
 
Method Summary
 Object clone()
           
 byte getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.
Constructor Detail

QuickStatResp

public QuickStatResp(NodeId[] peers,
                     byte type,
                     PatchworkStats[] stats,
                     Object userData)
Method Detail

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