com.atlassian.confluence.jmx
Class RequestMetrics

java.lang.Object
  extended by com.atlassian.confluence.jmx.RequestMetrics

public class RequestMetrics
extends java.lang.Object

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
RequestMetrics()
           
 
Method Summary
 void beginRequest()
           
 void endRequest()
           
 boolean equals(java.lang.Object o)
           
 int getAverageExecutionTimeForLastTenRequests()
           
 int getCurrentNumberOfRequestsBeingServed()
           
 int getErrorCount()
           
 int getNumberOfRequestsInLastTenSeconds()
           
 int getRequestsBegan()
           
 int getRequestsServed()
           
 int hashCode()
           
static void incrementErrorCount()
           
 void recordRequestTime(long requestTime)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMetrics

public RequestMetrics()
Method Detail

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()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.