Appia Documentation

net.sf.appia.protocols.tcpcomplete
Class Benchmark

java.lang.Object
  extended by net.sf.appia.protocols.tcpcomplete.Benchmark

Deprecated.

public class Benchmark
extends java.lang.Object

Author:
jmartins Benchmarking class. All of the methods accumulate successive benchmarks, and the total running time, average running time and number of times executed for each benchmark is printed on standard output when the JVM shuts down.

Field Summary
static boolean ON
          Deprecated.  
 
Method Summary
static Benchmark getInstance(TimeProvider tp, java.util.concurrent.ThreadFactory thf)
          Deprecated. Obtains the singleton instance of the benchmarking class.
 void indepBench(java.lang.String s, long time)
          Deprecated. Inserts an independent benchmark time.
 void startBench(java.lang.String s)
          Deprecated. Starts a measure.
 void startTagged(java.lang.String s, java.lang.String tag)
          Deprecated.  
 void stopBench(java.lang.String s)
          Deprecated. Stops a measure.
 void stopTagged(java.lang.String s, java.lang.String tag)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON

public static final boolean ON
Deprecated. 
See Also:
Constant Field Values
Method Detail

getInstance

public static Benchmark getInstance(TimeProvider tp,
                                    java.util.concurrent.ThreadFactory thf)
Deprecated. 
Obtains the singleton instance of the benchmarking class.

Returns:
the benchmark class.

startTagged

public void startTagged(java.lang.String s,
                        java.lang.String tag)
Deprecated. 

stopTagged

public void stopTagged(java.lang.String s,
                       java.lang.String tag)
Deprecated. 

startBench

public void startBench(java.lang.String s)
Deprecated. 
Starts a measure.

Parameters:
s - measure to start.

stopBench

public void stopBench(java.lang.String s)
Deprecated. 
Stops a measure. This method assumes the measure was started !! If it was not a NullPointerException might occur.

Parameters:
s - measure to stop.

indepBench

public void indepBench(java.lang.String s,
                       long time)
Deprecated. 
Inserts an independent benchmark time. Useful for accumulating benchmarks measured outside this class, like message timestamps.

Parameters:
s - the name of the benchmark.
time - the time measured for this benchmark.

Appia Documentation

COPYRIGHT 2006-2009, University of Lisbon and INESC-ID
For updates and related information please see Appia Home Page
Send questions, sugestions or remarks to the appia-users mailing list