ostore.archive
Class RequestFragQuery

java.lang.Object
  |
  +--ostore.archive.RequestFragQuery
All Implemented Interfaces:
DDQuery, QuickSerializable

public class RequestFragQuery
extends Object
implements DDQuery

RequestFragQuery is a DDQuery used in a RequestFragMsg DDLocateMsg used to find a Fragments that can be reconstructed into a block.

USAGE

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

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

Constructor Summary
RequestFragQuery()
          Creates a new RequestFragQuery.
RequestFragQuery(InputBuffer buffer)
          Constructs a RequestFragQuery from its serialized form.
 
Method Summary
 DDQueryResult query(SecureHash node_guid, bamboo.vivaldi.VirtualCoordinate node_coordinates, SecureHash bp_guid, HostInfo bp_hinfo, DDTag tag, DDQueryState state)
           
 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

RequestFragQuery

public RequestFragQuery()
Creates a new RequestFragQuery.


RequestFragQuery

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

query

public DDQueryResult query(SecureHash node_guid,
                           bamboo.vivaldi.VirtualCoordinate node_coordinates,
                           SecureHash bp_guid,
                           HostInfo bp_hinfo,
                           DDTag tag,
                           DDQueryState state)
Specified by:
query in interface DDQuery

toString

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

Overrides:
toString in class Object