|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmonit.monitors.AbstractMonitor
org.jmonit.monitors.DefaultMonitor
public class DefaultMonitor
Default Monitor implementation. Uses the FeatureManager to
automatically register features when the monitor is tagged.
| Field Summary |
|---|
| Fields inherited from class org.jmonit.monitors.AbstractMonitor |
|---|
components, name, tags |
| Constructor Summary | |
|---|---|
DefaultMonitor(java.lang.String name,
Repository repository)
|
|
| Method Summary | ||
|---|---|---|
|
getFeature(java.lang.Class<T> role)
To acces internal optional features or plugable extensions, application asks the monitor for the extension plublic API class. |
|
protected void |
onMonitorTaggedEvent(java.lang.String tag)
|
|
void |
setPluginManager(PluginManager manager)
Inject the active plugin manager |
|
| Methods inherited from class org.jmonit.monitors.AbstractMonitor |
|---|
add, addListener, clear, fireMonitoringEvent, get, getFeatures, getName, getTags, hasFeatures, hasListener, isFeatureSupported, isTagged, register, remove, removeListener, tag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMonitor(java.lang.String name,
Repository repository)
| Method Detail |
|---|
public void setPluginManager(PluginManager manager)
setPluginManager in interface PluginManagerAwaremanager - the active plugin managerPluginManagerAware.setPluginManager(org.jmonit.spi.PluginManager)public <T> T getFeature(java.lang.Class<T> role)
The monitor is expected to "do its best" to return the expected feature,
including register new features on-demand. To check for a feature to be
supported, use Monitor.isFeatureSupported(java.lang.Class).
Add the ability to automagically register new features on-demand using
factories provided by the FeatureManager
getFeature in interface MonitorgetFeature in class AbstractMonitorMonitor.getFeature(java.lang.Class)protected void onMonitorTaggedEvent(java.lang.String tag)
onMonitorTaggedEvent in class AbstractMonitorAbstractMonitor.onMonitorTaggedEvent(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||