ostore.archive.events
Class UpdateVerifiableBlocksResp

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

public class UpdateVerifiableBlocksResp
extends Object
implements QueueElementIF, QuickSerializable

UpdateVerifiableBlocksResp is an event class that request that a version of an object or be updated with FHASH's or the top of the VHashTree for each modified block.

USAGE

The required field are thisRootBlock (CacheableIdentity of root block), numFragments (number of Fragments generated for block), inverseRate (inverse rate of encoding), erasureType (code for the type of erasure code to use).

NOTE: for copy-on-write only the blocks with null GUID's will be fragmented (archived).

Version:
$Id: UpdateVerifiableBlocksResp.java,v 1.13 2003/11/17 23:52:43 emilong Exp $
Author:
Hakim Weatherspoon
See Also:
GenerateFragsChkptResp, UpdateVerifiableBlocksResp, Fragment, Erasure

Field Summary
 SecureHash _vguid
          vguid is the resulting guid for fragmentation of checkpoint.
 
Constructor Summary
UpdateVerifiableBlocksResp()
          Constructor: Initializes instance variables to null.
UpdateVerifiableBlocksResp(InputBuffer buffer)
          Constructs a UpdateVerifiableBlocksResp from its serialized form.
UpdateVerifiableBlocksResp(VID topBlockId, SecureHash vguid, SecureHash aguid)
          Constructor.
 
Method Summary
 SecureHash getAguid()
          getAguid returns the A-GUID of the object.
 VID getTopBlockId()
          getTopBlockId returns the VID of root block.
 SecureHash getVguid()
          getVguid returns the V-GUID (i.e. version GUID)of the object.
 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

_vguid

public SecureHash _vguid
vguid is the resulting guid for fragmentation of checkpoint.

Constructor Detail

UpdateVerifiableBlocksResp

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


UpdateVerifiableBlocksResp

public UpdateVerifiableBlocksResp(VID topBlockId,
                                  SecureHash vguid,
                                  SecureHash aguid)
Constructor. Initializes the data in this UpdateVerifiableBlocksResp.

Parameters:
topBlockId - VID of the top block.
vguid - V-GUID of DataObject.
aguid - A-GUID of DataObject.

UpdateVerifiableBlocksResp

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

Parameters:
buffer - serialized form of object.
Method Detail

getTopBlockId

public VID getTopBlockId()
getTopBlockId returns the VID of root block.

Returns:
the VID of root block.

getVguid

public SecureHash getVguid()
getVguid returns the V-GUID (i.e. version GUID)of the object.

Returns:
V-GUID of object.

getAguid

public SecureHash getAguid()
getAguid returns the A-GUID of the object.

Returns:
A-GUID of object.

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