ostore.archive.events
Class ReconstructBlkReq

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

public class ReconstructBlkReq
extends Object
implements QueueElementIF, QuickSerializable

ReconstructBlkReq is an event class that requests a block be pulled out of the archive and recoalesced.

USAGE

The required field are blockId (GUID of block to recoalesce), aguid (A-GUID of the object block belongs. Also known as DTreeId).

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

Field Summary
 SecureHash aguid
          aguid == A-GUID of the object block belongs.
 CacheableIdentity blockId
          blockId == GUID of block to recoalesce; includes,type of block recoalescing.
 SinkIF sink
          Requestor sink to use to return the response.
 Object userData
          Requestor defined object to be returned in the response.
 
Constructor Summary
ReconstructBlkReq()
          Constructor: Initializes instance variables to null.
ReconstructBlkReq(CacheableIdentity newBlockId, SecureHash aGuid, Object userData, SinkIF sink)
          Constructor.
ReconstructBlkReq(InputBuffer buffer)
          Constructs a ReconstructBlkReq 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; includes,type of block recoalescing.


aguid

public SecureHash aguid
aguid == A-GUID of the object block belongs. Also known as DTreeId.


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

ReconstructBlkReq

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


ReconstructBlkReq

public ReconstructBlkReq(CacheableIdentity newBlockId,
                         SecureHash aGuid,
                         Object userData,
                         SinkIF sink)
Constructor. Initializes the data in this ReconstructBlkReq.

Parameters:
newBlockId - GUID of block to recoalesce and type of block recoalescing.
aGuid - A-GUID (i.e. DTreeId) of the object block belongs.
userData - Requestor defined object to be returned with response.
sink - Requestor sink to return resp.

ReconstructBlkReq

public ReconstructBlkReq(InputBuffer buffer)
                  throws QSException
Constructs a ReconstructBlkReq 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