ostore.archive
Class GenerateFragsRespMsg

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--ostore.archive.GenerateFragsRespMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class GenerateFragsRespMsg
extends DDRouteMsg

GenerateFragsRespMsg is an event class that generates Fragments for a version of an object or checkpoints the version.

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: GenerateFragsRespMsg.java,v 1.14 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
GenerateFragsChkptResp, GenerateFragsRespMsg, Fragment, Erasure

Field Summary
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
GenerateFragsRespMsg()
          Constructor: Initializes instance variables to null.
GenerateFragsRespMsg(InputBuffer buffer)
          Constructs a GenerateFragsRespMsg from its serialized form.
GenerateFragsRespMsg(SecureHash requestorGuid, GenerateFragsChkptResp resp, SecureHash identifier, SecureHash aguid, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop)
          Constructor.
 
Method Summary
 SecureHash getAguid()
          getAguid returns the A-GUID of the object.
 SecureHash getIdentifier()
          getIdentifier returns the unique id of node (i.e. nodeGuid) or app (e.g.
 GenerateFragsChkptResp getResp()
          getResp returns the GenerateFragsChkptResp
 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
 

Constructor Detail

GenerateFragsRespMsg

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


GenerateFragsRespMsg

public GenerateFragsRespMsg(SecureHash requestorGuid,
                            GenerateFragsChkptResp resp,
                            SecureHash identifier,
                            SecureHash aguid,
                            boolean recursive,
                            boolean dd_intermediate_upcall,
                            boolean one_hop)
Constructor. Initializes the data in this GenerateFragsRespMsg.

Parameters:
requestorGuid - The requestors GUID.
resp - GenerateFragsChkptResp
identifier - unique id of node (i.e. nodeGuid) or app (e.g. SHA1Hash(AppId + nodeGuid) requesting service from the ArchiverStage.
aguid - A-GUID of object.

GenerateFragsRespMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

getResp

public GenerateFragsChkptResp getResp()
getResp returns the GenerateFragsChkptResp

Returns:
GenerateFragsChkptResp

getIdentifier

public SecureHash getIdentifier()
getIdentifier returns the unique id of node (i.e. nodeGuid) or app (e.g. SHA1Hash(AppId + nodeGuid) requesting service from the ArchiverStage.

Returns:
the unique id of node (i.e. nodeGuid) or app (e.g. SHA1Hash(AppId + nodeGuid) requesting service from the ArchiverStage.

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
Overrides:
serialize in class DDRouteMsg
Parameters:
buffer - the output buffer to add the object to

toString

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

Overrides:
toString in class Object