org.objectweb.speedo.workingset.lib
Class WorkingSetStatistic
java.lang.Object
org.objectweb.speedo.workingset.lib.WorkingSetStatistic
- All Implemented Interfaces:
- TransactionListener
- public class WorkingSetStatistic
- extends java.lang.Object
- implements TransactionListener
This class is a simple implementation of the TransactionListener interface
permitting to listen events concerning the transaction life cycle.
- Author:
- S.Chassande-Barrioz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_LEVEL
public static int LOG_LEVEL
instance
public static WorkingSetStatistic instance
maxWSSize
public int maxWSSize
minWSSize
public int minWSSize
nbWS
public int nbWS
averageWSSize
public int averageWSSize
averageWSduration
public long averageWSduration
committedWS
public int committedWS
logger
public Logger logger
currentCtx
public java.util.Map currentCtx
WorkingSetStatistic
public WorkingSetStatistic()
init
public void init()
printStatistic
public void printStatistic()
printStatistic
public void printStatistic(Logger logger)
transactionEnded
public void transactionEnded(java.lang.Object tx,
int s,
boolean validate)
transactionBegun
public void transactionBegun(java.lang.Object tx)
- Specified by:
transactionBegun
in interface TransactionListener
transactionCommitted
public void transactionCommitted(java.lang.Object tx,
int s)
- Specified by:
transactionCommitted
in interface TransactionListener
transactionAborted
public void transactionAborted(java.lang.Object tx,
int s)
- Specified by:
transactionAborted
in interface TransactionListener
getLogger
public Logger getLogger()
setLogger
public void setLogger(Logger logger)
getLoggerFactory
public LoggerFactory getLoggerFactory()
setLoggerFactory
public void setLoggerFactory(LoggerFactory loggerFactory)