ostore.replica
Class ReplicaQuery

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

public class ReplicaQuery
extends Object
implements TapestryQuery

The Tapestry query sent to find object replicas.

Version:
$Id: ReplicaQuery.java,v 1.18 2003/02/23 23:11:41 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
 TapestryQueryResult query(SecureHash node_guid, SecureHash bp_guid, TapestryTag tag, TapestryQueryState state)
          Perform the query on the given backpointer and tag, possibly modifying the supplied 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
Following copied from interface: ostore.util.QuickSerializable
Parameters:
buffer - the output buffer to add the object to

query

public TapestryQueryResult query(SecureHash node_guid,
                                 SecureHash bp_guid,
                                 TapestryTag tag,
                                 TapestryQueryState state)
Description copied from interface: TapestryQuery
Perform the query on the given backpointer and tag, possibly modifying the supplied state.
Specified by:
query in interface TapestryQuery
Following copied from interface: ostore.tapestry.api.TapestryQuery
Parameters:
node_guid - the guid of the current node
bp_guid - the guid of the node to which the backpointer points
tag - the associated tag
state - the state, passed in and (possibly) modified
Returns:
the query result

toString

public String toString()
Specified by java.lang.Object
Overrides:
toString in class Object