demo.repair
Class RepairDirectoryTest.Query

java.lang.Object
  |
  +--demo.repair.RepairDirectoryTest.Query
All Implemented Interfaces:
DDQuery, QuickSerializable
Enclosing class:
RepairDirectoryTest

public static class RepairDirectoryTest.Query
extends Object
implements DDQuery

Query is a DDQuery used in a DDLocateMsg of type LocateMsg to locate generic objects.


Constructor Summary
RepairDirectoryTest.Query()
          Creates a new Query.
RepairDirectoryTest.Query(InputBuffer buffer)
          Constructs a Query 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)
          Perform the query on the given object pointer and tag, possibly modifying the supplied 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

RepairDirectoryTest.Query

public RepairDirectoryTest.Query()
Creates a new Query.


RepairDirectoryTest.Query

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

query

public DDQueryResult query(SecureHash node_guid,
                           bamboo.vivaldi.VirtualCoordinate node_coordinates,
                           SecureHash bp_guid,
                           HostInfo bp_hinfo,
                           DDTag tag,
                           DDQueryState state)
Description copied from interface: DDQuery
Perform the query on the given object pointer and tag, possibly modifying the supplied state.

Specified by:
query in interface DDQuery
Parameters:
node_guid - The guid of the current node.
node_coordinates - The VirtualCoordinate of the current node. (possibly null).
bp_guid - The guid of the node to which the object pointer points.
bp_hinfo - The HostInfo of the node to which the object pointer points. (possibly null).
tag - The object's associated tag.
state - The state, passed in and (possibly) modified
Returns:
A query result of type DDQueryResultMatch or DDQueryResultNoMatch.

toString

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

Overrides:
toString in class Object