|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimonManagerMXBean
Interface of Simon management bean (MXBean) representing single point of access to a particular Simon
Manager.
| Method Summary | |
|---|---|
void |
clearManager()
Clears the Manager (ignored if manager is disabled). |
void |
disable()
Disables the Simon Manager, disable monitoring application by Simons. |
void |
disableSimon(String name)
Disables particular Simon only. |
void |
enable()
Enables the Simon Manager, enable monitoring application by Simons. |
void |
enableSimon(String name)
Enables particular Simon only. |
CounterSample |
getCounterSample(String name)
Retrieves sample data object for a particular Counter. |
CounterSample |
getCounterSampleAndReset(String name)
Retrieves sample data object for a particular Counter and resets it. |
List<CounterSample> |
getCounterSamples()
Sample all Counters |
List<CounterSample> |
getCounterSamples(String namePattern)
Sample all Counters whose name matches given pattern |
SimonInfo[] |
getSimonInfos()
Returns array containing names and types of all existing Simons ordered naturally by name. |
String[] |
getSimonNames()
Returns array containing full hierarchical names of all existing Simons. |
String[] |
getSimonNamesOrdered()
Returns array containing full hierarchical names of all existing Simons in natural String order. |
StopwatchSample |
getStopwatchSample(String name)
Retrieves sample data object for a particular Stopwatch. |
StopwatchSample |
getStopwatchSampleAndReset(String name)
Retrieves sample data object for a particular Stopwatch and resets it. |
List<StopwatchSample> |
getStopwatchSamples()
Sample all Stopwaches. |
List<StopwatchSample> |
getStopwatchSamples(String namePattern)
Sample all Stopwaches whose name matches given pattern. |
String |
getType(String name)
Returns type of Simon, either COUNTER, STOPWATCH or UNKNOWN. |
void |
inheritState(String name)
Lets the Simon to inherit its enable/disable state from its parent. |
boolean |
isEnabled()
Returns true if the Simon Manager is enabled, if monitoring is enabled. |
void |
printSimonTree()
Prints multi-line string containing Simon tree starting with the specified Simon to standard output. |
void |
reset(String name)
Resets the particular Simon by its name. |
| Method Detail |
|---|
void enable()
Manager.enable()void disable()
Manager.disable()boolean isEnabled()
Manager.isEnabled()String[] getSimonNames()
Manager.getSimonNames()String[] getSimonNamesOrdered()
Manager.getSimonNames()String getType(String name)
name - name of Simon
SimonInfo[] getSimonInfos()
SimonInfo objectsvoid clearManager()
Manager.clear()void enableSimon(String name)
name - name of the SimonSimon.setState(org.javasimon.SimonState, boolean)void disableSimon(String name)
name - name of the SimonSimon.setState(org.javasimon.SimonState, boolean)void inheritState(String name)
name - name of the SimonCounterSample getCounterSample(String name)
name - name of the Simon
CounterSampleStopwatchSample getStopwatchSample(String name)
name - name of the Simon
StopwatchSampleCounterSample getCounterSampleAndReset(String name)
name - name of the Simon
CounterSampleStopwatchSample getStopwatchSampleAndReset(String name)
name - name of the Simon
StopwatchSamplevoid reset(String name)
name - name of the Simonvoid printSimonTree()
SimonUtils.simonTreeString(org.javasimon.Simon)List<CounterSample> getCounterSamples()
List<CounterSample> getCounterSamples(String namePattern)
namePattern - Name pattern, null means all Counters
List<StopwatchSample> getStopwatchSamples(String namePattern)
namePattern - name pattern (SimonPattern), null means all Stopwatches
List<StopwatchSample> getStopwatchSamples()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||