public interface SimonManagerMXBean extends Serializable
Manager
.
It provides general management tasks over all Simons for a single Manager (hierarchy of Simons)
plus some useful util functions.Modifier and Type | Method and Description |
---|---|
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.
|
List<CounterSample> |
getCounterSamples()
Sample all Counters
|
List<CounterSample> |
getCounterSamples(String namePattern)
Sample all Counters whose name matches given pattern
|
CounterSample |
getIncrementCounterSample(String name,
String key)
Samples increment in Counter values since the previous call of this method with the
same key.
|
List<CounterSample> |
getIncrementCounterSamples(String key)
Increment sample all Counters.
|
List<CounterSample> |
getIncrementCounterSamples(String namePattern,
String key)
Incremental sample for all Counters whose name matches given pattern.
|
StopwatchSample |
getIncrementStopwatchSample(String name,
String key)
Samples increment in Stopwatch values since the previous call of this method with the
same key.
|
List<StopwatchSample> |
getIncrementStopwatchSamples(String key)
Increment sample all Stopwatches.
|
List<StopwatchSample> |
getIncrementStopwatchSamples(String namePattern,
String key)
Increment sample all Stopwatches 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.
|
List<StopwatchSample> |
getStopwatchSamples()
Sample all Stopwatches.
|
List<StopwatchSample> |
getStopwatchSamples(String namePattern)
Sample all Stopwatches 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 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 SimonSimonInfo[] 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 SimonCounterSample
StopwatchSample getStopwatchSample(String name)
name
- name of the SimonStopwatchSample
CounterSample getIncrementCounterSample(String name, String key)
getCounterSample(String)
}. Any subsequent calls with the key
provide increments.
Clients should use a unique key (GUID, host name, etc.), to avoid interference
with other clients.name
- name of the stopwatchkey
- name of an incremental sampleStopwatchSample getIncrementStopwatchSample(String name, String key)
getCounterSample(String)
}. Any subsequent calls with the key
provide increments.
Clients should use a unique key (GUID, host name, etc.), to avoid interference
with other clients.name
- name of the stopwatchkey
- name of an incremental samplevoid printSimonTree()
List<CounterSample> getCounterSamples()
List<CounterSample> getIncrementCounterSamples(String key)
key
- name of an incremental samplegetIncrementCounterSample(String, String)
List<CounterSample> getCounterSamples(String namePattern)
namePattern
- Name pattern, null means all CountersList<CounterSample> getIncrementCounterSamples(String namePattern, String key)
namePattern
- name pattern (SimonPattern
), null
means all Counterskey
- name of an incremental samplegetIncrementCounterSample(String, String)
List<StopwatchSample> getStopwatchSamples(String namePattern)
namePattern
- name pattern (SimonPattern
), null
means all StopwatchesList<StopwatchSample> getIncrementStopwatchSamples(String namePattern, String key)
namePattern
- name pattern (SimonPattern
), null
means all Stopwatcheskey
- name of an incremental samplegetIncrementStopwatchSample(String, String)
List<StopwatchSample> getStopwatchSamples()
List<StopwatchSample> getIncrementStopwatchSamples(String key)
key
- name of an incremental samplegetIncrementStopwatchSample(String, String)
Copyright © 2019. All rights reserved.