ostore.archive.events
Class RecoalesceBlkReq

java.lang.Object
  |
  +--ostore.archive.events.RecoalesceBlkReq
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class RecoalesceBlkReq
extends Object
implements QueueElementIF, QuickSerializable

RecoalesceBlkReq is an event class that requests a block be recoalesced from its Fragments stored in the cache.

USAGE

The required field is blockID (GUID of block to recoalesce).

Version:
$Id: RecoalesceBlkReq.java,v 1.18 2004/03/23 03:02:30 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
ReconstructBlkReq, ReconstructBlkResp, RequestorStage, RecoalesceBlkStage

Field Summary
 CacheableIdentity blockId
          blockId == GUID of block to recoalesce.
 DisseminatableBucket db
          db is the set DisseminatableBucket of all Disseminatables (i.e.
 SinkIF sink
          Requestor sink to use to return the response.
 Object userData
          Requestor defined object to be returned in the response.
 
Constructor Summary
RecoalesceBlkReq()
          Constructor: Initializes instance variables to null.
RecoalesceBlkReq(CacheableIdentity newBlockId, DisseminatableBucket bucket, Object userData, SinkIF sink)
          Constructor.
RecoalesceBlkReq(InputBuffer buffer)
          Constructs a RecoalesceBlkReq from its serialized form.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by ostore.util.QuickSerializable
 String toString()
          Specified by java.lang.Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

blockId

public CacheableIdentity blockId
blockId == GUID of block to recoalesce.


db

public DisseminatableBucket db
db is the set DisseminatableBucket of all Disseminatables (i.e. Fragments) bucket guids of modified blocks for vguid.


userData

public Object userData
Requestor defined object to be returned in the response.


sink

public SinkIF sink
Requestor sink to use to return the response.

Constructor Detail

RecoalesceBlkReq

public RecoalesceBlkReq()
Constructor: Initializes instance variables to null.


RecoalesceBlkReq

public RecoalesceBlkReq(CacheableIdentity newBlockId,
                        DisseminatableBucket bucket,
                        Object userData,
                        SinkIF sink)
Constructor. Initializes the data in this RecoalesceBlkReq.

Parameters:
newBlockId - guid of block to recoalesce.
bucket - DisseminatableBucket that holds Ddisseminatables.
userData - Requestor defined object to be returned with response.
sink - Requestor sink to return resp.

RecoalesceBlkReq

public RecoalesceBlkReq(InputBuffer buffer)
                 throws QSException
Constructs a RecoalesceBlkReq from its serialized form.

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object