|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jmonit.features.AbstractFeature<F>
public abstract class AbstractFeature<F>
Abstract support class for Plugins. Stores the MonitoringEventBus and
provides a delegate method to publish events. Automatically register the
plugin as a MonitoringEventListener.
| Constructor Summary | |
|---|---|
AbstractFeature()
|
|
| Method Summary | ||
|---|---|---|
void |
fireMonitoringEvent(MonitoringEvent event)
|
|
|
getFeature(java.lang.Class<T> feature)
|
|
void |
setMonitor(Monitor monitor)
Set the monitor this plugin extends. |
|
void |
setMonitoringEventBus(MonitoringEventBus bus)
Set the event bus used to dispatch monitoring events between the monitor and it's features. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jmonit.spi.Plugin |
|---|
getFeature |
| Methods inherited from interface org.jmonit.events.MonitoringEventListener |
|---|
onMonitoringEvent |
| Constructor Detail |
|---|
public AbstractFeature()
| Method Detail |
|---|
public void setMonitoringEventBus(MonitoringEventBus bus)
setMonitoringEventBus in interface Plugin<F>bus - the event busPlugin.setMonitoringEventBus(org.jmonit.events.MonitoringEventBus)public void setMonitor(Monitor monitor)
setMonitor in interface Plugin<F>monitor - the extended monitorPlugin.setMonitor(org.jmonit.Monitor)public void fireMonitoringEvent(MonitoringEvent event)
public <T> T getFeature(java.lang.Class<T> feature)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||