Package org.copperengine.core.monitoring
Class StmtStatistic
- java.lang.Object
-
- org.copperengine.core.monitoring.StmtStatistic
-
public class StmtStatistic extends java.lang.Object
Helper class for collecting SQL statement related runtime statistics. Offers a start and stop method, that encapsulate the measurement of the elapsed time.
-
-
Constructor Summary
Constructors Constructor Description StmtStatistic(java.lang.String measurePointId, RuntimeStatisticsCollector runtimeStatisticsCollector)
creates a new StmtStatistic with a name only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start()
long
stop(int updateCount)
-
-
-
Constructor Detail
-
StmtStatistic
public StmtStatistic(java.lang.String measurePointId, RuntimeStatisticsCollector runtimeStatisticsCollector)
creates a new StmtStatistic with a name only.- Parameters:
measurePointId
- new name of the StmtStatistic. Must not be null.runtimeStatisticsCollector
- statistics collector for this StmtStatistic. Must not be null.
-
-