com.sun.grizzly.test.cachetest
Class TestAndResult

java.lang.Object
  extended by com.sun.grizzly.test.cachetest.TestAndResult

public class TestAndResult
extends Object

Contains the configuration parameters and the result

Author:
Gustav Trede

Field Summary
protected  double actualRunningTimeSec
           
protected  Queue cacheimpl
           
protected  long iterationsPerformed
           
protected  int minutesTorun
           
protected  InstanceFactory objfactory
           
protected  boolean systemErrprintCalibration
           
protected  int threadcount
           
protected  double threadpoolStartStopOverhead
           
 
Constructor Summary
TestAndResult(Queue cacheimpl, InstanceFactory objfactory, int threadcount, int minutesTorun)
           
TestAndResult(Queue cacheimpl, InstanceFactory objfactory, int threadcount, int minutesTorun, boolean systemErrprintCalibration)
           
 
Method Summary
 double getActualRunningTimeSec()
           
 Queue getCacheimpl()
          null if no cache is used
 long getIterationsPerformed()
          number of actual iterations performed during the test.
 long getKiloThroughput()
          Kilo instances/sec
 int getMinutesTorun()
          configured running time in minutes
 InstanceFactory getObjfactory()
           
 String getResultInText()
           
 int getThreadcount()
           
 double getThreadpoolStartStopOverhead()
          the overhead in seconds for the start to wait for an empty test.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cacheimpl

protected final Queue cacheimpl

objfactory

protected final InstanceFactory objfactory

threadcount

protected final int threadcount

minutesTorun

protected final int minutesTorun

systemErrprintCalibration

protected final boolean systemErrprintCalibration

threadpoolStartStopOverhead

protected double threadpoolStartStopOverhead

actualRunningTimeSec

protected double actualRunningTimeSec

iterationsPerformed

protected long iterationsPerformed
Constructor Detail

TestAndResult

public TestAndResult(Queue cacheimpl,
                     InstanceFactory objfactory,
                     int threadcount,
                     int minutesTorun)
Parameters:
cacheimpl - Queue null if no cache is to be used
objfactory - InstanceFactory
threadcount -
minutesTorun - no smaller time unit then minutes is allowed, we want as valid results as possible

TestAndResult

public TestAndResult(Queue cacheimpl,
                     InstanceFactory objfactory,
                     int threadcount,
                     int minutesTorun,
                     boolean systemErrprintCalibration)
Parameters:
cacheimpl - null if no cache is to be used
objfactory - InstanceFactory
threadcount -
minutesTorun - no smaller time unit then minutes is allowed, we want as valid results as possible
printCalibration -
Method Detail

getKiloThroughput

public long getKiloThroughput()
Kilo instances/sec

Returns:

getResultInText

public String getResultInText()
Returns:

toString

public String toString()
Overrides:
toString in class Object

getThreadpoolStartStopOverhead

public double getThreadpoolStartStopOverhead()
the overhead in seconds for the start to wait for an empty test.

Returns:

getActualRunningTimeSec

public double getActualRunningTimeSec()
Returns:

getCacheimpl

public Queue getCacheimpl()
null if no cache is used

Returns:

getIterationsPerformed

public long getIterationsPerformed()
number of actual iterations performed during the test. (allocate/fetc, init, recycly, release)

Returns:

getMinutesTorun

public int getMinutesTorun()
configured running time in minutes

Returns:

getObjfactory

public InstanceFactory getObjfactory()
Returns:
InstanceFactory

getThreadcount

public int getThreadcount()
Returns:


Copyright © 2013 Oracle Corporation. All Rights Reserved.