|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.sim.PmBase<V,E>
bcds.phison.sim.PmTraceProgress<V,E>
public class PmTraceProgress<V,E>
The module PmTraceProgress prints information about connections acceptance and rejection at regular intervals of connection requests. Specifically, the following is printed:
An example of the output produced by this module is (the interval is 5):
... # received=20 blocked=0 (0.00000) active=20 curtime=5 # received=25 blocked=1 (0.04000) active=23 curtime=6 # received=30 blocked=2 (0.06667) active=26 curtime=8 # received=35 blocked=4 (0.11429) active=28 curtime=9 ...
Constructor Summary | |
---|---|
PmTraceProgress()
|
Method Summary | |
---|---|
java.lang.Object[] |
getEnvParams()
Returns the environment parameters of this class; the prefix is "PmTraceProgress.. |
void |
run(SimEvents evtype,
ConnectionInfo<V,E> rq)
Keeps a count of the number of connections accepted and rejected. |
Methods inherited from class bcds.phison.sim.PmBase |
---|
ctx, env, getEnviron, getId, getName, opt, setup, shutdown, sim, stats |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PmTraceProgress()
Method Detail |
---|
public void run(SimEvents evtype, ConnectionInfo<V,E> rq)
This method counts the number of received connections
by itself and does not rely on sim().conn_received on purpose:
the events passed to this module might be "filtered" (not all traffic
is being exposed to all modules, as happens when
PmDTypeReplicator
is used).
This module does not cache the values of the environment parameters; they are re-evaluated each time they are needed.
run
in interface ProcessingModule<V,E>
run
in class PmBase<V,E>
public java.lang.Object[] getEnvParams()
getEnvParams
in interface WithEnvParams
getEnvParams
in class PmBase<V,E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |