|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.jmx.AbstractSimonMXBeanImpl
public abstract class AbstractSimonMXBeanImpl
Common functionality for JMX bean for a signle Simon that corresponds to AbstractSimon in the core package.
| Constructor Summary | |
|---|---|
AbstractSimonMXBeanImpl()
|
|
| 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. |
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. |
void |
setNote(String note)
Sets note for the Simon. |
void |
setState(String state,
boolean overrule)
Sets the state of the Simon. |
protected abstract Simon |
simon()
Returns the wrapped Simon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.javasimon.jmx.SimonSuperMXBean |
|---|
getType, sample, sampleAndReset |
| Constructor Detail |
|---|
public AbstractSimonMXBeanImpl()
| Method Detail |
|---|
public final String getName()
SimonSuperMXBeannull for anonymous
Simons, such Simons are never registered hence this method never returns
null.
getName in interface SimonSuperMXBeanpublic final String getParentName()
SimonSuperMXBean
getParentName in interface SimonSuperMXBeanpublic final List<String> getChildrenNames()
SimonSuperMXBean
getChildrenNames in interface SimonSuperMXBeanpublic final String getState()
SimonSuperMXBeanSimonState enumeration.
getState in interface SimonSuperMXBean
public final void setState(String state,
boolean overrule)
SimonSuperMXBean
setState in interface SimonSuperMXBeanstate - a new state as a valid String for SimonState.valueOf(String)overrule - specifies whether this change is forced to the whole subtree.public final boolean isEnabled()
SimonSuperMXBean
isEnabled in interface SimonSuperMXBeanpublic final void reset()
SimonSuperMXBean
reset in interface SimonSuperMXBeanpublic final String getNote()
SimonSuperMXBean
getNote in interface SimonSuperMXBeanpublic final void setNote(String note)
SimonSuperMXBean
setNote in interface SimonSuperMXBeannote - note for the Simon.public final long getFirstUsage()
SimonSuperMXBean
getFirstUsage in interface SimonSuperMXBeanpublic String getFirstUsageAsString()
SimonSuperMXBean
getFirstUsageAsString in interface SimonSuperMXBeanpublic final long getLastUsage()
SimonSuperMXBean
getLastUsage in interface SimonSuperMXBeanpublic final String getLastUsageAsString()
SimonSuperMXBean
getLastUsageAsString in interface SimonSuperMXBeanprotected abstract Simon simon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||