Package com.atlassian.confluence.jmx
Class RequestMetrics
java.lang.Object
com.atlassian.confluence.jmx.RequestMetrics
Bean intended to be exposed via JMX to represent various system health metrics. This should be extended in the
future as requirements dictate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintintintintintintstatic voidvoidrecordRequestTime(long requestTime)
-
Constructor Details
-
RequestMetrics
public RequestMetrics()
-
-
Method Details
-
getRequestsServed
public int getRequestsServed() -
getRequestsBegan
public int getRequestsBegan() -
beginRequest
public void beginRequest() -
endRequest
public void endRequest() -
getCurrentNumberOfRequestsBeingServed
public int getCurrentNumberOfRequestsBeingServed() -
getAverageExecutionTimeForLastTenRequests
public int getAverageExecutionTimeForLastTenRequests() -
getNumberOfRequestsInLastTenSeconds
public int getNumberOfRequestsInLastTenSeconds() -
recordRequestTime
public void recordRequestTime(long requestTime) -
incrementErrorCount
public static void incrementErrorCount() -
getErrorCount
public int getErrorCount()
-