ostore.archive.dissemination
Class TypeRequestMsg

java.lang.Object
  |
  +--dd.api.DDPrefixRouteMsg
        |
        +--ostore.archive.dissemination.TypeRequestMsg
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class TypeRequestMsg
extends DDPrefixRouteMsg

TypeRequestMsg is used too discover if a node is willing to store Disseminatables.

USAGE

To create dissemination sets the SetCreator probes the system collecting information about a sufficiently large set of StorageServers. The SetCreator relies on the properties of dd to discover new servers. dd routes TypeRequestMsgs to the node that most closely matches the requested destination. Thus, even though the dd address space is sparse, the SetCreator can use a scan of the address space to reach a random set of StorageServers. StorageServers that are willing to store Disseminatables respond with a signed (i.e. MAC'd Message Authentication Certificate) statement of their type contained in a TypeResponseMsg.

Version:
$Id: TypeRequestMsg.java,v 1.12 2004/05/13 20:13:06 hweather Exp $
Author:
Hakim Weatherspoon
See Also:
DisseminatorStage, SetCreatorStage, ArchivalStorageStage, TypeResponseMsg, Disseminatable, DDPrefixRouteMsg

Field Summary
 
Fields inherited from class dd.api.DDPrefixRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
TypeRequestMsg(InputBuffer buffer)
          Constructs a TypeRequestMsg from its serialized form.
TypeRequestMsg(SecureHash peer, boolean recursive_route, boolean dd_intermediate_upcall, boolean one_hop)
          Construct according to the given fields.
 
Method Summary
 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

TypeRequestMsg

public TypeRequestMsg(SecureHash peer,
                      boolean recursive_route,
                      boolean dd_intermediate_upcall,
                      boolean one_hop)
Construct according to the given fields.


TypeRequestMsg

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

Parameters:
buffer - serialized form of object.
Method Detail

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