demo.dynamic
Class NullTagQuery

java.lang.Object
  |
  +--demo.dynamic.NullTagQuery
All Implemented Interfaces:
DDQuery, QuickSerializable

public class NullTagQuery
extends Object
implements DDQuery

NullTagQuery is a DDQuery used in a DDLocateMsg used to find objects identified by a NullTag.

USAGE

To receive an object identified by a NullTag, dispatch a DDLocateMsg that contains a NullTagQuery.

Version:
$Id: NullTagQuery.java,v 1.3 2004/05/19 06:33:43 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
NullTag, DDTag, DDQuery, DDLocateMsg

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

NullTagQuery

public NullTagQuery()
Creates a new NullTagQuery.


NullTagQuery

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