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
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
serialize
d form.
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 nodebp_guid
- the guid of the node to which the backpointer pointstag
- the associated tagstate
- 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