net.sf.jperfprobe
Class Result

java.lang.Object
  extended by net.sf.jperfprobe.Result
All Implemented Interfaces:
Serializable

public class Result
extends Object
implements Serializable

Class Result. A Result contains the statistics. All calculations are done in this class. There can be multiple probes in a Result identified by the Probes threadname.

Author:
Tor-Erik Larsen Date: 01.feb.2007 Time: 10:48:56
See Also:
Serialized Form

Method Summary
 void addSample(long time)
          Add a sample to the probe, and recalculate the average & min/max values.
 void clear()
          Clear the map of probes and all values (max, min, samples, average...) all the probes will be removed
 void disable()
           
 void enable()
           
 double getAverage()
           
 long getLastSample()
          Get the last sample from the probe
 double getMax()
           
 double getMin()
           
 String getName()
           
 int getNSamples()
           
 long[] getSamples()
           
 Probe getSingleProbe()
          Get the singleprobe, there is then only one instance of a probe
 double getStdev()
          Get the sample standard deviation
 long getTotal()
           
 void setSingleProbe(Probe singleProbe)
           
 String toString()
          Get all info from result to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSamples

public long[] getSamples()

getNSamples

public int getNSamples()

getMax

public double getMax()

getMin

public double getMin()

getAverage

public double getAverage()

getStdev

public double getStdev()
Get the sample standard deviation

Returns:

clear

public void clear()
Clear the map of probes and all values (max, min, samples, average...) all the probes will be removed


disable

public void disable()

enable

public void enable()

getName

public String getName()

addSample

public void addSample(long time)
Add a sample to the probe, and recalculate the average & min/max values.

Parameters:
time - sample to add

getSingleProbe

public Probe getSingleProbe()
Get the singleprobe, there is then only one instance of a probe

Returns:

setSingleProbe

public void setSingleProbe(Probe singleProbe)

getLastSample

public long getLastSample()
Get the last sample from the probe

Returns:

getTotal

public long getTotal()

toString

public String toString()
Get all info from result to string

Overrides:
toString in class Object
Returns:
string with all result info


Copyright © 2004-2011. All Rights Reserved.