|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The gauge reporting bus is the bus on which a gauge reports events.
Method Summary | |
boolean |
reportConfigured(GaugeID gauge,
StringPairVector configParams)
Called when a gauge has been configured. |
boolean |
reportCreated(GaugeID gauge)
The first event produced by the gauge. |
boolean |
reportDeleted(GaugeID gauge)
This event is sent as the last act of the gauge before it is destroyed. |
boolean |
reportMultipleValues(GaugeID gauge,
GaugeValueVector values)
Called by a gauge when it reports multiple values. |
boolean |
reportValue(GaugeID gauge,
java.lang.String valueName,
java.lang.String propertyName,
java.lang.String value)
Called by a gauge when it reports a value. |
void |
subscribeToGaugeEvent(GaugeEvent event,
Subscriber subscriber)
Called when an interested party is wants reports in some pattern. |
void |
unsubscribeToGaugeEvent(GaugeEvent event,
Subscriber subscriber)
Called to unregister a subscriber's interest in a gauge event pattern. |
Method Detail |
public boolean reportValue(GaugeID gauge, java.lang.String valueName, java.lang.String propertyName, java.lang.String value)
gauge
- The gauge reporting the value.valueName
- The name of the value.propertyName
- The property with which the value is associated (established when the gauge is created)value
- The value being reported.public boolean reportMultipleValues(GaugeID gauge, GaugeValueVector values)
gauge
- The gauge reporting the values.values
- The values being reported - as (valueName, propertyName, value) tuples.public boolean reportConfigured(GaugeID gauge, StringPairVector configParams)
GaugeControl
interface
to let other interested parties know.gauge
- The gauge being configured.configParams
- The new configuration of the gauge - as (name, value) pairs.public boolean reportDeleted(GaugeID gauge)
gauge
- The ID of the gauge being deleted.public boolean reportCreated(GaugeID gauge)
gauge
- The ID of the new gauge.public void subscribeToGaugeEvent(GaugeEvent event, Subscriber subscriber)
event
- The event pattern to subscribe to.subscriber
- The object that contains a callback to call if the event pattern is matched.public void unsubscribeToGaugeEvent(GaugeEvent event, Subscriber subscriber)
event
- The event pattern to unsubscribe from. If this is null, then the
subscriber is unsubscribed from all events.subscriber
- The subscriber to unsubscribe.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |