ostore.replica
Class ReplicaQuery

java.lang.Object
  |
  +--ostore.replica.ReplicaQuery
All Implemented Interfaces:
DDQuery, QuickSerializable

public class ReplicaQuery
extends Object
implements DDQuery

The DD query sent to find object replicas.

Version:
$Id: ReplicaQuery.java,v 1.19 2004/05/13 20:16:27 hweather Exp $
Author:
Dennis Geels

Constructor Summary
ReplicaQuery()
          Creates a new ReplicaQuery.
ReplicaQuery(InputBuffer buffer)
          Constructs a ReplicaQuery from its serialized form.
ReplicaQuery(QSInt max_depth, Double max_distance)
          Creates a new ReplicaQuery with an upper bound on the depth of replicas in the tree.
 
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)
          Add the object to the buffer.
 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

ReplicaQuery

public ReplicaQuery()
Creates a new ReplicaQuery.


ReplicaQuery

public ReplicaQuery(QSInt max_depth,
                    Double max_distance)
Creates a new ReplicaQuery with an upper bound on the depth of replicas in the tree.


ReplicaQuery

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

Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

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