public interface SimonSuperMXBean extends Serializable
Modifier and Type | Method and Description |
---|---|
List<String> |
getChildrenNames()
Returns list of children names.
|
long |
getFirstUsage()
Returns ms timestamp of the first usage of this Simon.
|
String |
getFirstUsageAsString()
Returns nicely formatted timestamp of the first usage of this Simon.
|
long |
getLastUsage()
Returns ms timestamp of the last usage of this Simon.
|
String |
getLastUsageAsString()
Returns nicely formatted timestamp of the last usage of this Simon.
|
String |
getName()
Returns Simon name.
|
String |
getNote()
Returns note for the Simon.
|
String |
getParentName()
Returns name of the parent Simon.
|
String |
getState()
Returns state of the Simon that can be ENABLED, DISABLED or INHERITED.
|
String |
getType()
Returns Simon type used as a property in the
ObjectName . |
boolean |
isEnabled()
Returns true, if the Simon is enabled or if the enabled state is inherited.
|
Sample |
sample()
Samples Simon values and returns them in a Java Bean derived from Sample interface.
|
Sample |
sampleIncrement(String key)
Samples increment in Simon values since the previous call of this method with the
same key.
|
void |
setNote(String note)
Sets note for the Simon.
|
void |
setState(String state,
boolean overrule)
Sets the state of the Simon.
|
boolean |
stopIncrementalSampling(String key)
Stops incremental sampling for the key, removing any internal information for the key.
|
String getName()
null
for anonymous
Simons, such Simons are never registered hence this method never returns
null
.String getParentName()
List<String> getChildrenNames()
String getState()
SimonState
enumeration.void setState(String state, boolean overrule)
state
- a new state as a valid String for SimonState.valueOf(String)
overrule
- specifies whether this change is forced to the whole subtree.boolean isEnabled()
String getNote()
void setNote(String note)
note
- note for the Simon.long getFirstUsage()
String getFirstUsageAsString()
long getLastUsage()
String getLastUsageAsString()
Sample sample()
Sample sampleIncrement(String key)
sample()
. Any subsequent calls with the key
provide increments.
Clients should use a unique key (GUID, host name, etc.), to avoid interference
with other clients.key
- key used to access incremental sampleSample
with value incrementsString getType()
ObjectName
.boolean stopIncrementalSampling(String key)
sampleIncrement(String)
for the key will be considered the first
call for the key.key
- key used to access incremental sampleCopyright © 2019. All rights reserved.