org.jmonit.spi
Interface Plugin<F>

All Known Implementing Classes:
AbstractFeature, Concurrency, HttpStatus, LastValues, LocalStopwatch, Statistics

public interface Plugin<F>

A feature enhances jMonit API and computation capabilities by providing new features. It can communicate with other features via the monitoring event bus, either by listening to events, or by emitting custom ones.

A feature is identified by the feature class it exposes to application.

Author:
Nicolas De Loof

Method Summary
 F getFeature()
          A feature is identified by the class it exposes to the monitored application.
 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.
 

Method Detail

setMonitoringEventBus

void setMonitoringEventBus(MonitoringEventBus bus)
Set the event bus used to dispatch monitoring events between the monitor and it's features.

Parameters:
bus - the event bus

setMonitor

void setMonitor(Monitor monitor)
Set the monitor this plugin extends. Can be used for direct acces to other features.

Parameters:
monitor - the extended monitor

getFeature

F getFeature()
A feature is identified by the class it exposes to the monitored application.

Returns:
the public API of this feature


Copyright © 2007 Nicolas De Loof. All Rights Reserved.