ostore.archive
Class ArchiverLocateRespMsg

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--dd.api.DDMacRouteMsg
              |
              +--ostore.archive.ArchiverLocateRespMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class ArchiverLocateRespMsg
extends DDMacRouteMsg

ArchiverLocateRespMsg is the ArchiverStage's response to an ArchiverLocateReqMsg and containing the identifier of the node or app.

USAGE

To register node or app, dispatch a ArchiverLocateReqMsg. When the ArchiverStage receives the message, it will respond with a ArchiverLocateRespMsg that is MAC'd (i.e. Message Authentication Certificate).

Version:
$Id: ArchiverLocateRespMsg.java,v 1.10 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
ArchiverStage, ArchiverLocateReqMsg, DDMacRouteMsg

Field Summary
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
ArchiverLocateRespMsg(InputBuffer buffer)
          Constructs a ArchiverLocateRespMsg from its serialized form.
ArchiverLocateRespMsg(SecureHash requestorGuid, SecureHash identifier, QuickSerializable resp, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop)
          Construct according to the given fields.
 
Method Summary
 SecureHash getIdentifier()
          getIdentifier returns the identifier.
 QuickSerializable getResponse()
          getResponse returns the response from the ArchiverStage.
 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

ArchiverLocateRespMsg

public ArchiverLocateRespMsg(SecureHash requestorGuid,
                             SecureHash identifier,
                             QuickSerializable resp,
                             boolean recursive,
                             boolean dd_intermediate_upcall,
                             boolean one_hop)
Construct according to the given fields.


ArchiverLocateRespMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

getIdentifier

public final SecureHash getIdentifier()
getIdentifier returns the identifier.

Returns:
the identifier.

getResponse

public final QuickSerializable getResponse()
getResponse returns the response from the ArchiverStage.

Returns:
the response.

serialize

public void serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class DDRouteMsg
Parameters:
buffer - the output buffer to add the object to

toString

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

Overrides:
toString in class Object