ostore.archive.events
Class GenerateFragsBlkResp

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

public class GenerateFragsBlkResp
extends Object
implements QueueElementIF, QuickSerializable

GenerateFragsBlkResp is an event class that responds to a GenerateFragsBlkReq with the CacheableIdentity of the block that has been fragmented.

USAGE

The required field are block_id (CacheableIdentity of block), guid (Resulting guid for fragmentation of block).

Version:
$Id: GenerateFragsBlkResp.java,v 1.20 2004/03/23 03:01:14 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
GenerateFragsBlkReq, GenerateFragsChkptReq, Fragment, Erasure

Field Summary
 CacheableIdentity blockId
          blockId == CacheableIdentity of block.
 SecureHash guid
          guid == Resulting guid for fragmentation of block.
 GuidResult guidResult
          guidResult == Resulting statistics of the guid fragmentation process of the block.
 Object userData
          Requestor defined object, defined in the request, to be returned in this response.
 
Constructor Summary
GenerateFragsBlkResp()
          Constructor: Initializes instance variables to null.
GenerateFragsBlkResp(CacheableIdentity id, SecureHash newGuid)
          Constructor.
GenerateFragsBlkResp(CacheableIdentity id, SecureHash newGuid, GuidResult result)
          Constructor.
GenerateFragsBlkResp(InputBuffer buffer)
          Constructs a GenerateFragsBlkResp 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 == CacheableIdentity of block.


guid

public SecureHash guid
guid == Resulting guid for fragmentation of block.


guidResult

public GuidResult guidResult
guidResult == Resulting statistics of the guid fragmentation process of the block.


userData

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

Constructor Detail

GenerateFragsBlkResp

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


GenerateFragsBlkResp

public GenerateFragsBlkResp(CacheableIdentity id,
                            SecureHash newGuid)
Constructor. Initializes the data in this GenerateFragsBlkResp.

Parameters:
id - = cacheable identity of block.
newGuid - = resulting guid fro fragmentation of block.

GenerateFragsBlkResp

public GenerateFragsBlkResp(CacheableIdentity id,
                            SecureHash newGuid,
                            GuidResult result)
Constructor. Initializes the data in this GenerateFragsBlkResp.

Parameters:
id - cacheable identity of block.
newGuid - resulting guid fro fragmentation of block.
result - Resulting statistics of the guid fragmentation process of the block.

GenerateFragsBlkResp

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