Class ClientStageMulticlass

java.lang.Object
  extended by ClientStage
      extended by ClientStageMulticlass
All Implemented Interfaces:
EventHandlerIF, SimpleP2PConst

public class ClientStageMulticlass
extends ClientStage
implements EventHandlerIF, SimpleP2PConst


Nested Class Summary
(package private)  class ClientStageMulticlass.ClassedMessageSendEvent
           
(package private)  class ClientStageMulticlass.sendThread
           
 
Nested classes/interfaces inherited from class ClientStage
ClientStage.MessageSendEvent, ClientStage.MessageTimer
 
Field Summary
protected  StatsGatherer[] continuousRespStats
           
protected  StatsGatherer[] rejectedRespStats
           
protected  StatsGatherer[] respStats
           
protected  StatsGatherer[] timeoutStats
           
 
Fields inherited from class ClientStage
arrivals, BUCKETSIZE, compQ, CONSTANT_RATE, cur_seqNum, first_mt, injectTimeStats, interArrivalTimeStats, last_inject_time, MIN_DELAY, MS_WAIT, MSGS_PER_SEND, msgTbl, NUM_MSGS, rand, RATE, recvSink, REPORT_SAMPLES, sendEvents, SKIP_SAMPLES, SPIN_SEND_THREAD, t_end, t_last, t_start, timer, total_completed, total_rcv, total_rejected, WARMUP_FRAC, WARMUP_MSGS
 
Fields inherited from interface SimpleP2PConst
MSG_SIZE, PORT
 
Constructor Summary
ClientStageMulticlass()
           
 
Method Summary
protected  ClientStage.MessageSendEvent createMSE(int num_msgs)
           
protected  void doneWithMsg(Message msg, ClientStage.MessageTimer mt, long cur_time)
           
protected  void doReport(long t1, long t2)
           
 void init(ConfigDataIF config)
          Called when an event handler is initialized.
protected  void resetStats()
           
 
Methods inherited from class ClientStage
destroy, doSender, handleEvent, handleEvents, startSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface seda.sandStorm.api.EventHandlerIF
destroy, handleEvent, handleEvents
 

Field Detail

respStats

protected StatsGatherer[] respStats

timeoutStats

protected StatsGatherer[] timeoutStats

continuousRespStats

protected StatsGatherer[] continuousRespStats

rejectedRespStats

protected StatsGatherer[] rejectedRespStats
Constructor Detail

ClientStageMulticlass

public ClientStageMulticlass()
Method Detail

init

public void init(ConfigDataIF config)
          throws java.lang.Exception
Description copied from interface: EventHandlerIF
Called when an event handler is initialized. This method should perform any initialization operations as required by the application.

Specified by:
init in interface EventHandlerIF
Overrides:
init in class ClientStage
Parameters:
config - The set of configuration parameters for the stage.
Throws:
java.lang.Exception - The EventHandler can indicate an error to the runtime during initialization by throwing an Exception.

doneWithMsg

protected void doneWithMsg(Message msg,
                           ClientStage.MessageTimer mt,
                           long cur_time)
Overrides:
doneWithMsg in class ClientStage

resetStats

protected void resetStats()
Overrides:
resetStats in class ClientStage

createMSE

protected ClientStage.MessageSendEvent createMSE(int num_msgs)
Overrides:
createMSE in class ClientStage

doReport

protected void doReport(long t1,
                        long t2)
Overrides:
doReport in class ClientStage