public class RemoteSafeInvocationHandlerMetrics extends Object implements RemoteSafeInvocationHandlerMetricsMBean
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteSafeInvocationHandlerMetrics.Calltime
Used to store the minimum, maximum and average times (in milliseconds)
for invocations to a particular invocation.
|
OBJECTNAME_METRICS| Constructor and Description |
|---|
RemoteSafeInvocationHandlerMetrics() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void clear()
RemoteSafeInvocationHandlerMetricsMBeanclear in interface RemoteSafeInvocationHandlerMetricsMBeanpublic Map<String,RemoteSafeInvocationHandlerMetrics.Calltime> getCallTimeData()
RemoteSafeInvocationHandlerMetricsMBeangetCallTimeData 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()
RemoteSafeInvocationHandlerMetricsMBeangetNumberFailedInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getNumberSuccessfulInvocations()
RemoteSafeInvocationHandlerMetricsMBeangetNumberSuccessfulInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getNumberTotalInvocations()
RemoteSafeInvocationHandlerMetricsMBeangetNumberTotalInvocations in interface RemoteSafeInvocationHandlerMetricsMBeanpublic long getAverageExecutionTime()
RemoteSafeInvocationHandlerMetricsMBeansuccessful invocations received.getAverageExecutionTime in interface RemoteSafeInvocationHandlerMetricsMBeanCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.