demo.repair
Class RepairDirectoryTest

java.lang.Object
  |
  +--ostore.util.StandardStage
        |
        +--demo.repair.RepairDirectoryTest
All Implemented Interfaces:
EventHandlerIF, SingleThreadedEventHandlerIF

public class RepairDirectoryTest
extends StandardStage
implements SingleThreadedEventHandlerIF

TODO

Version:
$Id: RepairDirectoryTest.java,v 1.22 2004/06/07 01:59:17 hweather Exp $
Author:
Hakim Weatherspoon

Nested Class Summary
static class RepairDirectoryTest.CreateReplicaReq
          CreateReplicaReq is a request to disseminate a replica on a set of storage servers.
static class RepairDirectoryTest.CreateReplicaResp
          CreateReplicaResp is a response confirming that replicas have been disseminated to a set of storage servers.
static class RepairDirectoryTest.LocateLocalReq
          The request to retrieve the queried object from the local storage stage.
static class RepairDirectoryTest.LocateLocalResp
          The response from the local storage stage containing the request object.
static class RepairDirectoryTest.LocateMsg
          Message of type simulating DDLocateMsg by using a DDPrefixRouteMsg to route to the root of an object guid, test if the root has an object pointer, than the root node responds with a ResponseMsg that contains success or failure.
static class RepairDirectoryTest.QSData
          QSData is a quick serializable data class.
static class RepairDirectoryTest.Query
          Query is a DDQuery used in a DDLocateMsg of type LocateMsg to locate generic objects.
static class RepairDirectoryTest.QueryState
          QueryState is a wrapper class for the state passed along with the Query of type DDQuery used in a DDLocateMsg used to find generic objects.
static class RepairDirectoryTest.Response
          Response is the roots response to a LocateMsg.
static class RepairDirectoryTest.Tag
          Tag is the DDThresholdTag for generic objects.
 
Field Summary
protected  boolean _start
           
protected  long _startTime
           
 
Fields inherited from class ostore.util.StandardStage
classifier, DEBUG, event_types, inb_msg_types, logger, my_node_id, my_sink, outb_msg_types, resender, resender_tokens, serializable_types, sim_running, tag
 
Constructor Summary
RepairDirectoryTest()
          Constructor: Creates a new RepairDHTTest stage.
 
Method Summary
 void handleEvent(QueueElementIF item)
          Specified by seda.sandStorm.api.EventHandlerIF
 void init(ConfigDataIF config)
          Specified by seda.sandStorm.api.EventHandlerIF
protected  void initPublish()
          initPublish initializes the node(test) by publishing objects that other nodes will route to.
 
Methods inherited from class ostore.util.StandardStage
BUG, BUG, BUG, destroy, dispatch, enqueue, handleEvents, now_ms, now_us
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_start

protected boolean _start

_startTime

protected long _startTime
Constructor Detail

RepairDirectoryTest

public RepairDirectoryTest()
                    throws Exception
Constructor: Creates a new RepairDHTTest stage.

Method Detail

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
handleEvent in interface EventHandlerIF
EventHandlerException

init

public void init(ConfigDataIF config)
          throws Exception
Specified by seda.sandStorm.api.EventHandlerIF

Specified by:
init in interface EventHandlerIF
Overrides:
init in class StandardStage
Exception

initPublish

protected void initPublish()
initPublish initializes the node(test) by publishing objects that other nodes will route to.