public abstract class AbstractSimonMXBeanImpl extends Object implements SimonSuperMXBean
| Constructor and Description |
|---|
AbstractSimonMXBeanImpl() |
| 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.
|
boolean |
isEnabled()
Returns true, if the Simon is enabled or if the enabled state is inherited.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetType, sample, sampleIncrement, stopIncrementalSamplingpublic AbstractSimonMXBeanImpl()
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()
SimonSuperMXBeangetParentName in interface SimonSuperMXBeanpublic final List<String> getChildrenNames()
SimonSuperMXBeangetChildrenNames in interface SimonSuperMXBeanpublic final String getState()
SimonSuperMXBeanSimonState enumeration.getState in interface SimonSuperMXBeanpublic final void setState(String state, boolean overrule)
SimonSuperMXBeansetState 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()
SimonSuperMXBeanisEnabled in interface SimonSuperMXBeanpublic final String getNote()
SimonSuperMXBeangetNote in interface SimonSuperMXBeanpublic final void setNote(String note)
SimonSuperMXBeansetNote in interface SimonSuperMXBeannote - note for the Simon.public final long getFirstUsage()
SimonSuperMXBeangetFirstUsage in interface SimonSuperMXBeanpublic String getFirstUsageAsString()
SimonSuperMXBeangetFirstUsageAsString in interface SimonSuperMXBeanpublic final long getLastUsage()
SimonSuperMXBeangetLastUsage in interface SimonSuperMXBeanpublic final String getLastUsageAsString()
SimonSuperMXBeangetLastUsageAsString in interface SimonSuperMXBeanCopyright © 2019. All rights reserved.