ostore.archive
Class ArchiverLocateReqMsg

java.lang.Object
  |
  +--dd.api.DDLocateMsg
        |
        +--ostore.archive.ArchiverLocateReqMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class ArchiverLocateReqMsg
extends DDLocateMsg

ArchiverLocateReqMsg is used to request that a SetCreator generate Fragments for the requesting node or app in the furture. That is, this is a registration.

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: ArchiverLocateReqMsg.java,v 1.11 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
ArchiverStage, ArchiverTag, ArchiverLocateQuery, ArchiverLocateRespMsg, DDLocateMsg

Field Summary
 
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
ArchiverLocateReqMsg(InputBuffer buffer)
          Constructs a ArchiverLocateReqMsg from its serialized form.
ArchiverLocateReqMsg(SecureHash guid, SecureHash identifier, boolean forward, boolean recursive_route, boolean one_hop, byte intermediate_upcall_policy, byte vc_policy, bamboo.vivaldi.VirtualCoordinate vc)
          Construct according to the given fields.
 
Method Summary
 SecureHash getIdentifier()
          getIdentifier returns the identifier.
 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

ArchiverLocateReqMsg

public ArchiverLocateReqMsg(SecureHash guid,
                            SecureHash identifier,
                            boolean forward,
                            boolean recursive_route,
                            boolean one_hop,
                            byte intermediate_upcall_policy,
                            byte vc_policy,
                            bamboo.vivaldi.VirtualCoordinate vc)
Construct according to the given fields.


ArchiverLocateReqMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

getIdentifier

public final SecureHash getIdentifier()
getIdentifier returns the identifier.

Returns:
the identifier.

serialize

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

Parameters:
buffer - the output buffer to add the object to

toString

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

Overrides:
toString in class Object