demo.helloworld.step3.api
Class HelloWorldQuery

java.lang.Object
  |
  +--demo.helloworld.step3.api.HelloWorldQuery
All Implemented Interfaces:
DDQuery, QuickSerializable

public class HelloWorldQuery
extends Object
implements DDQuery

HelloWorldQuery is a DDQuery used in a HelloWorldLocateMsg used to gather information of some number of servers which are identified by a HelloWorldTag.

Version:
$Id: HelloWorldQuery.java,v 1.1 2004/06/14 06:31:45 kelvinso Exp $
Author:
Chiu Wah Kelvin So

Constructor Summary
HelloWorldQuery()
          Creates a new HelloWorldQuery.
HelloWorldQuery(InputBuffer buffer)
          Constructs a HelloWorldQuery 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 s)
          Specified by dd.api.DDQuery
 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

HelloWorldQuery

public HelloWorldQuery()
Creates a new HelloWorldQuery.


HelloWorldQuery

public HelloWorldQuery(InputBuffer buffer)
Constructs a HelloWorldQuery 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 s)
Specified by dd.api.DDQuery

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.
s - 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