|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimonSuperMXBean
Interface with common methods for JMX beans for a signle Simon that corresponds to AbstractSimon in the core package.
| Method Summary | |
|---|---|
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. |
List<String> |
getChildrenNames()
Returns list of children names. |
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. |
void |
reset()
Resets the Simon, its usages and stat processor - concrete values depend on the type and the implementation. |
Sample |
sample()
Samples Simon values and returns them in a Java Bean derived from Sample interface. |
Sample |
sampleAndReset()
Samples Simon values and returns them in a Java Bean derived from Sample interface and resets the Simon. |
void |
setNote(String note)
Sets note for the Simon. |
void |
setState(String state,
boolean overrule)
Sets the state of the Simon. |
| Method Detail |
|---|
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()
void reset()
String getNote()
void setNote(String note)
note - note for the Simon.long getFirstUsage()
String getFirstUsageAsString()
long getLastUsage()
String getLastUsageAsString()
Sample sample()
Sample sampleAndReset()
String getType()
ObjectName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||