ostore.archive
Class RequestFragMsg

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

public class RequestFragMsg
extends DDLocateMsg

RequestDisseminationSetMsg is used to request that a SetCreator send a dissemination set. RequestFragMSg is used to request that StorageServers return Fragments that can be used to recolease the named block.

USAGE

To receive Fragments, dispatch a RequestFragMsg that contains a guid of the block to be recoalesced.

Version:
$Id: RequestFragMsg.java,v 1.18 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
ArchivalStorageStage, RequestorStage, RecoalesceBlkStage, RequestFragMsg, RequestFragResponseMsg, DDLocateMsg

Field Summary
 
Fields inherited from class dd.api.DDLocateMsg
forward, guid, hopCount, id, inbound, INTERMEDIATE_NONE, INTERMEDIATE_PTRS_CACHE_ONLY, INTERMEDIATE_PTRS_DISK, INTERMEDIATE_STRING, INTERMEDIATE_UPCALL_ONLY, intermediate_upcall_policy, one_hop, peer, query, query_state, recursive_route, TTL, vc, VC_NONE, vc_policy, VC_ROOT, VC_SRC, VC_STRING, VC_SUPPLIED
 
Constructor Summary
RequestFragMsg(InputBuffer buffer)
          Constructs a RequestFragMsg from its serialized form.
RequestFragMsg(SecureHash guid, SecureHash aguid, DDQuery query, DDQueryState query_state, SecureHash identifier, boolean forward, boolean recursive_route, boolean one_hop, byte intermediate_upcall_policy, byte vc_policy, bamboo.vivaldi.VirtualCoordinate vc)
          Construct according to the given fields.
 
Method Summary
 SecureHash getAguid()
          getAguid returns the aguid associated with the request.
 SecureHash getIdentifier()
          getIdentifier returns the identifier; a unique id of node (i.e. nodeGuid) or app (e.g.
 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

RequestFragMsg

public RequestFragMsg(SecureHash guid,
                      SecureHash aguid,
                      DDQuery query,
                      DDQueryState query_state,
                      SecureHash identifier,
                      boolean forward,
                      boolean recursive_route,
                      boolean one_hop,
                      byte intermediate_upcall_policy,
                      byte vc_policy,
                      bamboo.vivaldi.VirtualCoordinate vc)
Construct according to the given fields.


RequestFragMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

getAguid

public final SecureHash getAguid()
getAguid returns the aguid associated with the request.

Returns:
the aguid.

getIdentifier

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

Returns:
the identifier.

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.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