org.nuiton.web.jmx
Interface ServletStatisticsServiceMBean

All Known Implementing Classes:
ServletStatisticsService

public interface ServletStatisticsServiceMBean

Contract exposed to JMX exposing statistics gathered while the application was used. It follows the convention imposed by JMX spec, objects used as parameters or returned as value are Serializable. Contract name ends with "MBean" while implementation not.


Method Summary
 Map<String,RequestStatistics> getPerRequestStatistics()
          The statistics gathered while the application was in use.
 void reset()
          Reset statistics for all request.
 String toCsv()
          Get the statistics under the form of a CSV file suitable for post-processing and use in a spreadsheet.
 

Method Detail

getPerRequestStatistics

Map<String,RequestStatistics> getPerRequestStatistics()
The statistics gathered while the application was in use.

Returns:
a map with as key, the request Url, as value the statistics gathered for this Url.

reset

void reset()
Reset statistics for all request. Statistics will acts like if the monitored application was never used (0 request processed).


toCsv

String toCsv()
Get the statistics under the form of a CSV file suitable for post-processing and use in a spreadsheet.

Returns:
the csv content. Seperator is ','. One line per entries returned by getPerRequestStatistics(). One column per attribute of RequestStatistics.


Copyright © 2011-2012 CodeLutin. All Rights Reserved.