public class ServiceContainerMetrics extends Object implements ServiceContainerMetricsMBean
OBJECTNAME_METRICS| Constructor and Description |
|---|
ServiceContainerMetrics(ServiceContainer service_container,
CommandProcessor command_processor)
Creates a new
ServiceContainerMetrics object. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the metrics data, starting all values back to 0 as if starting fresh.
|
long |
getAverageExecutionTimeReceived()
Returns the average execution time (in milliseconds) it took to execute all
successful commands received. |
Map<String,CommandProcessorMetrics.Calltime> |
getCallTimeDataReceived()
Returns a map of individual command types/pojo invocations and their metrics such
as number of times invoked, min/max/avg execution times.
|
long |
getNumberDroppedCommandsReceived()
Returns the total number of commands that were received but were dropped, usually due to a limit reached in the
server that prohibits more commands to be invoked until current invocations finish.
|
long |
getNumberFailedCommandsReceived()
Returns the total number of commands that were received but failed to be processed succesfully.
|
long |
getNumberNotProcessedCommandsReceived()
Returns the total number of commands that were received but were not processed, usually due to global suspension of
command processing.
|
long |
getNumberSuccessfulCommandsReceived()
Returns the total number of commands that were received and processed successfully.
|
long |
getNumberTotalCommandsReceived()
Returns the sum of all commands received, successful or not.
|
public ServiceContainerMetrics(ServiceContainer service_container, CommandProcessor command_processor)
ServiceContainerMetrics object.service_container - the service container that houses the command processorcommand_processor - the actual command process object that receives commands emits the metricspublic void clear()
ServiceContainerMetricsMBeanclear in interface ServiceContainerMetricsMBeanpublic long getNumberSuccessfulCommandsReceived()
ServiceContainerMetricsMBeangetNumberSuccessfulCommandsReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics.getNumberSuccessfulCommands()public long getNumberFailedCommandsReceived()
ServiceContainerMetricsMBeandropped or
unprocessed commands.getNumberFailedCommandsReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics.getNumberFailedCommands()public long getNumberDroppedCommandsReceived()
ServiceContainerMetricsMBeangetNumberDroppedCommandsReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics.getNumberDroppedCommands()public long getNumberNotProcessedCommandsReceived()
ServiceContainerMetricsMBeangetNumberNotProcessedCommandsReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics.getNumberNotProcessedCommands()public long getNumberTotalCommandsReceived()
ServiceContainerMetricsMBeangetNumberTotalCommandsReceived in interface ServiceContainerMetricsMBeanpublic long getAverageExecutionTimeReceived()
ServiceContainerMetricsMBeansuccessful commands received.getAverageExecutionTimeReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics.getAverageExecutionTime()public Map<String,CommandProcessorMetrics.Calltime> getCallTimeDataReceived()
ServiceContainerMetricsMBeangetCallTimeDataReceived in interface ServiceContainerMetricsMBeanCommandProcessorMetrics#getCallTimeDataReceived()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.