ostore.archive
Class ArchiverLocateQuery

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

public class ArchiverLocateQuery
extends Object
implements DDQuery

ArchiverLocateQuery is a DDQuery used in a ArchiverLocateReqMsg DDLocateMsg used to find an ArchiverStage.

USAGE

To register node or app, dispatch a ArchiverLocateReqMsg. When the ArchiverStage receives the message, it will respond with a ArchiverLocateRespMsg that is MAC'd (i.e. Message Authentication Certificate).

Version:
$Id: ArchiverLocateQuery.java,v 1.12 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
ArchiverStage, ArchiverLocateReqMsg, ArchiverLocateRespMsg, DDLocateMsg

Constructor Summary
ArchiverLocateQuery()
          Creates a new ArchiverLocateQuery.
ArchiverLocateQuery(InputBuffer buffer)
          Constructs a ArchiverLocateQuery 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

ArchiverLocateQuery

public ArchiverLocateQuery()
Creates a new ArchiverLocateQuery.


ArchiverLocateQuery

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