demo.helloworld.step2.api
Class HelloWorldLocateMsg

java.lang.Object
  |
  +--dd.api.DDLocateMsg
        |
        +--demo.helloworld.step2.api.HelloWorldLocateMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class HelloWorldLocateMsg
extends DDLocateMsg

HelloWorldLocateMsg is a DDLocateMsg to look for HelloWorld Server

Version:
$Id: HelloWorldLocateMsg.java,v 1.2 2004/06/15 20:43:18 hweather Exp $
Author:
Chiu Wah Kelvin So

Field Summary
 String msg
          msg that HelloWorld Client wants to comminucate with HelloWorld Server
 SecureHash msgID
          A msgID unique ID for this message, in order that a DDLocateFailure can be matched to the location request; set to null if you do not want failure notification.
 
Fields inherited from class dd.api.DDLocateMsg
forward, guid, hopCount, id, inbound, INTERMEDIATE_NONE, INTERMEDIATE_PTRS_CACHE_ONLY, INTERMEDIATE_PTRS_DISK, INTERMEDIATE_STRING, INTERMEDIATE_UPCALL_ONLY, intermediate_upcall_policy, one_hop, peer, query, query_state, recursive_route, TTL, vc, VC_NONE, vc_policy, VC_ROOT, VC_SRC, VC_STRING, VC_SUPPLIED
 
Constructor Summary
HelloWorldLocateMsg(InputBuffer buffer)
          Constructs a HelloWorldLocateMsg from its serialized form.
HelloWorldLocateMsg(SecureHash guid, HelloWorldQuery query, DDQueryState query_state, SecureHash id, String msg)
          Constructor: Creates a new HelloWorldLocateMsg.
 
Method Summary
 void serialize(OutputBuffer buffer)
          Specified by 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
 

Field Detail

msgID

public SecureHash msgID
A msgID unique ID for this message, in order that a DDLocateFailure can be matched to the location request; set to null if you do not want failure notification.


msg

public String msg
msg that HelloWorld Client wants to comminucate with HelloWorld Server

Constructor Detail

HelloWorldLocateMsg

public HelloWorldLocateMsg(SecureHash guid,
                           HelloWorldQuery query,
                           DDQueryState query_state,
                           SecureHash id,
                           String msg)
Constructor: Creates a new HelloWorldLocateMsg.


HelloWorldLocateMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Specified by QuickSerializable


toString

public String toString()
Specified by java.lang.Object

Overrides:
toString in class Object