Package patterntesting.runtime.monitor
Interface ProfileStatisticMBean
-
- All Known Implementing Classes:
ProfileStatistic
@Description("Profile statistic for different methods") public interface ProfileStatisticMBean
The Interface ProfileStatisticMBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.File
dumpStatistic()
Dump statistic.void
dumpStatistic(java.lang.String filename)
This operation dumps the statistic to the given file.double
getMaxAvg()
Gets the max avg.java.lang.String
getMaxAvgLabel()
Gets the max avg label.java.lang.String
getMaxAvgStatistic()
Gets the max avg statistic.int
getMaxHits()
Gets the max hits.java.lang.String
getMaxHitsLabel()
Gets the max hits label.java.lang.String
getMaxHitsStatistic()
Gets the max hits statistic.double
getMaxMax()
Gets the max max.java.lang.String
getMaxMaxLabel()
Gets the max max label.java.lang.String
getMaxMaxStatistic()
Gets the max max statistic.int
getMaxSize()
Gets the max size.double
getMaxTotal()
Gets the max total.java.lang.String
getMaxTotalLabel()
Gets the max total label.java.lang.String
getMaxTotalStatistic()
Gets the max total statistic.javax.management.openmbean.TabularData
getStatistics()
Gets the statistics.void
logStatistic()
Log statistic.void
reset()
Reset.void
setMaxSize(int size)
Sets the maximal size of statistic entries.
-
-
-
Method Detail
-
reset
@Description("reset the statistic to be ready for new measurement") void reset()
Reset.
-
getMaxHits
@Description("maximal number how often a method is called") int getMaxHits()
Gets the max hits.- Returns:
- the max hits
-
getMaxHitsLabel
@Description("the name of the method which was called most") java.lang.String getMaxHitsLabel()
Gets the max hits label.- Returns:
- the max hits label
-
getMaxHitsStatistic
@Description("statistic of the most called method") java.lang.String getMaxHitsStatistic()
Gets the max hits statistic.- Returns:
- the max hits statistic
-
getMaxTotal
@Description("maximal total time of a method") @Unit("milliseconds") double getMaxTotal()
Gets the max total.- Returns:
- the max total
-
getMaxTotalLabel
@Description("the name of the method which need most of the time") java.lang.String getMaxTotalLabel()
Gets the max total label.- Returns:
- the max total label
-
getMaxTotalStatistic
@Description("statistic of the method which need most of the time") java.lang.String getMaxTotalStatistic()
Gets the max total statistic.- Returns:
- the max total statistic
-
getMaxAvg
@Description("maximal average time") @Unit("milliseconds") double getMaxAvg()
Gets the max avg.- Returns:
- the max avg
-
getMaxAvgLabel
@Description("the name of the method with the maximal average time") java.lang.String getMaxAvgLabel()
Gets the max avg label.- Returns:
- the max avg label
-
getMaxAvgStatistic
@Description("statistic of the method with the maximal average time") java.lang.String getMaxAvgStatistic()
Gets the max avg statistic.- Returns:
- the max avg statistic
-
getMaxMax
@Description("maximal time of a method") @Unit("milliseconds") double getMaxMax()
Gets the max max.- Returns:
- the max max
-
getMaxMaxLabel
@Description("the name of the method with the maximal time of a single run") java.lang.String getMaxMaxLabel()
Gets the max max label.- Returns:
- the max max label
-
getMaxMaxStatistic
@Description("statistic of the method with the maximal time of a single run") java.lang.String getMaxMaxStatistic()
Gets the max max statistic.- Returns:
- the max max statistic
-
setMaxSize
@Description("set maximal number of statistic entries") void setMaxSize(int size)
Sets the maximal size of statistic entries.- Parameters:
size
- the new max size- Since:
- 1.6
-
getMaxSize
@Description("get maximal number of statistic entries") int getMaxSize()
Gets the max size.- Returns:
- the max size
- Since:
- 1.6
-
getStatistics
@Description("the statistic table") javax.management.openmbean.TabularData getStatistics()
Gets the statistics.- Returns:
- the statistics
-
logStatistic
@Description("log the statistic data") void logStatistic()
Log statistic.
-
dumpStatistic
@Description("dump the statistic data to a temporary file") java.io.File dumpStatistic() throws java.io.IOException
Dump statistic.- Returns:
- the name of the dump file
- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.
-
dumpStatistic
@Description("dump the statistic data to a given file") void dumpStatistic(java.lang.String filename) throws java.io.IOException
This operation dumps the statistic to the given file.- Parameters:
filename
- the file name- Throws:
java.io.IOException
- Signals that an I/O exception has occurred.- Since:
- 1.5
-
-