ostore.bloom
Class SimulatedReplica

java.lang.Object
  |
  +--ostore.bloom.SimulatedReplica
All Implemented Interfaces:
EventHandlerIF

public class SimulatedReplica
extends Object
implements EventHandlerIF

The probabilistic location stage.

Version:
$Id: SimulatedReplica.java,v 1.3 2002/02/09 01:22:45 srhea Exp $
Author:
Sean C. Rhea

Inner Class Summary
 class SimulatedReplica.DiskReadFinished
           
 
Constructor Summary
SimulatedReplica()
           
 
Method Summary
 long closest_replica_lat_ms(SecureHash guid)
           
 long closest_replica_xfer_ms(SecureHash guid)
           
 void destroy()
           
 void handle_disk_read_finished(SimulatedReplica.DiskReadFinished fin)
           
 void handle_init(StagesInitializedSignal signal)
           
 void handle_simulated_read_resp(SimulatedReadResp read)
           
 void handle_simulated_read(SimulatedRead read)
           
 void handleEvent(QueueElementIF item)
           
 void handleEvents(QueueElementIF[] items)
           
 void init(ConfigDataIF config)
           
static SimulatedReplica instance(NodeId node_id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulatedReplica

public SimulatedReplica()
Method Detail

instance

public static SimulatedReplica instance(NodeId node_id)

closest_replica_lat_ms

public long closest_replica_lat_ms(SecureHash guid)

closest_replica_xfer_ms

public long closest_replica_xfer_ms(SecureHash guid)

init

public void init(ConfigDataIF config)
          throws Exception
Specified by:
init in interface EventHandlerIF

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface EventHandlerIF

handleEvent

public void handleEvent(QueueElementIF item)
                 throws EventHandlerException
Specified by:
handleEvent in interface EventHandlerIF

handleEvents

public void handleEvents(QueueElementIF[] items)
                  throws EventHandlerException
Specified by:
handleEvents in interface EventHandlerIF

handle_init

public void handle_init(StagesInitializedSignal signal)

handle_simulated_read_resp

public void handle_simulated_read_resp(SimulatedReadResp read)

handle_simulated_read

public void handle_simulated_read(SimulatedRead read)

handle_disk_read_finished

public void handle_disk_read_finished(SimulatedReplica.DiskReadFinished fin)