seda.sandStorm.test.bench.simple_sa
Class ClientStageMulticlass

java.lang.Object
  extended by seda.sandStorm.test.bench.simple_sa.ClientStage
      extended by seda.sandStorm.test.bench.simple_sa.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 seda.sandStorm.test.bench.simple_sa.ClientStage
ClientStage.MessageSendEvent, ClientStage.MessageTimer
 
Field Summary
private static double[] CLASS_DEADLINES
           
private static double[] CLASS_PROBS
           
protected  seda.util.StatsGatherer[] continuousRespStats
           
private static boolean DEBUG
           
protected  seda.util.StatsGatherer[] rejectedRespStats
           
protected  seda.util.StatsGatherer[] respStats
           
protected  seda.util.StatsGatherer[] timeoutStats
           
private static boolean VERBOSE
           
 
Fields inherited from class seda.sandStorm.test.bench.simple_sa.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 seda.sandStorm.test.bench.simple_sa.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 seda.sandStorm.test.bench.simple_sa.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

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
See Also:
Constant Field Values

CLASS_PROBS

private static final double[] CLASS_PROBS

CLASS_DEADLINES

private static final double[] CLASS_DEADLINES

respStats

protected seda.util.StatsGatherer[] respStats

timeoutStats

protected seda.util.StatsGatherer[] timeoutStats

continuousRespStats

protected seda.util.StatsGatherer[] continuousRespStats

rejectedRespStats

protected seda.util.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