public class SimpleCommandBusStatistics extends Object implements SimpleCommandBusStatisticsMXBean
Statistics object to store information about the internals of the SimpleCommandBus
.
You can request information about the registered handlers but also about the number of received commands.
Next to requesting information it is also possible to reset the counters
Finally, the statistics are only gathered when explicitly enabled. By default they are switched off.
Constructor and Description |
---|
SimpleCommandBusStatistics()
Creates an instance of this statistics MBean.
|
Modifier and Type | Method and Description |
---|---|
long |
getCommandHandlerCount()
Returns the amount of registered handlers.
|
List<String> |
getHandlerTypes()
Returns a list with the names of the types of the registered handlers.
|
long |
getReceivedCommandCount()
Returns the amount of received commands from the beginning of starting up or after the last reset.
|
void |
resetReceivedCommandsCounter()
Resets the received command counter.
|
public SimpleCommandBusStatistics()
public long getCommandHandlerCount()
getCommandHandlerCount
in interface SimpleCommandBusStatisticsMXBean
public long getReceivedCommandCount()
getReceivedCommandCount
in interface SimpleCommandBusStatisticsMXBean
public List<String> getHandlerTypes()
getHandlerTypes
in interface SimpleCommandBusStatisticsMXBean
public void resetReceivedCommandsCounter()
resetReceivedCommandsCounter
in interface SimpleCommandBusStatisticsMXBean
Copyright © 2010-2014. All Rights Reserved.