|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.remote.RemoteSafeInvocationHandlerMetrics
public class RemoteSafeInvocationHandlerMetrics
Provides metrics for remote invocations from things like the remote CLI.
| Nested Class Summary | |
|---|---|
class |
RemoteSafeInvocationHandlerMetrics.Calltime
Used to store the minimum, maximum and average times (in milliseconds) for invocations to a particular invocation. |
| Field Summary |
|---|
| Fields inherited from interface org.rhq.enterprise.server.remote.RemoteSafeInvocationHandlerMetricsMBean |
|---|
OBJECTNAME_METRICS |
| Constructor Summary | |
|---|---|
RemoteSafeInvocationHandlerMetrics()
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the metrics data, starting all values back to 0 as if starting fresh. |
long |
getAverageExecutionTime()
Returns the average execution time (in milliseconds) it took to execute all successful invocations received. |
Map<String,RemoteSafeInvocationHandlerMetrics.Calltime> |
getCallTimeData()
Returns a map of individual invocations and their metrics such as number of times invoked, min/max/avg execution times. |
Map<String,long[]> |
getCallTimeDataAsPrimitives()
This obtains the same calltime data as RemoteSafeInvocationHandlerMetricsMBean.getCallTimeData() except the
map that is returned contains only primitive objects so remote clients do not have
to have this MBean class definition in their classloaders. |
long |
getNumberFailedInvocations()
Returns the total number of invocations that were received but failed to be processed succesfully. |
long |
getNumberSuccessfulInvocations()
Returns the total number of invocations that were received and processed successfully. |
long |
getNumberTotalInvocations()
Returns the sum of all invocations received, successful or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteSafeInvocationHandlerMetrics()
| Method Detail |
|---|
public void clear()
RemoteSafeInvocationHandlerMetricsMBean
clear in interface RemoteSafeInvocationHandlerMetricsMBeanpublic Map<String,RemoteSafeInvocationHandlerMetrics.Calltime> getCallTimeData()
RemoteSafeInvocationHandlerMetricsMBean
getCallTimeData in interface RemoteSafeInvocationHandlerMetricsMBeanpublic Map<String,long[]> getCallTimeDataAsPrimitives()
RemoteSafeInvocationHandlerMetricsMBeanRemoteSafeInvocationHandlerMetricsMBean.getCallTimeData() except the
map that is returned contains only primitive objects so remote clients do not have
to have this MBean class definition in their classloaders. The order of the map
values is important - each element in the array is as follows:
getCallTimeDataAsPrimitives in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getNumberFailedInvocations()
RemoteSafeInvocationHandlerMetricsMBean
getNumberFailedInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getNumberSuccessfulInvocations()
RemoteSafeInvocationHandlerMetricsMBean
getNumberSuccessfulInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getNumberTotalInvocations()
RemoteSafeInvocationHandlerMetricsMBean
getNumberTotalInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getAverageExecutionTime()
RemoteSafeInvocationHandlerMetricsMBeansuccessful invocations received.
getAverageExecutionTime in interface RemoteSafeInvocationHandlerMetricsMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||