|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeReportingBus
RMIGaugeReportingBus is bus used to by the gauges, gauge managers and gauge consumers to report value or broadcast events.
Constructor Summary | |
RMIGaugeReportingBus(java.lang.String host)
Creates new RMIGaugeReportingBus |
Method Summary | |
void |
configureGauge(GaugeID theGaugeID,
StringPairVector configParams)
|
void |
createGauge(GaugeID theGaugeID,
StringPairVector setupParams,
StringPairVector mappings)
|
void |
deleteGauge(GaugeID theGaugeID)
|
java.lang.String |
getGaugeHost(GaugeID gid)
|
java.lang.String |
getGaugeMgr(java.lang.String gaugeMgrType)
|
void |
queryMetaInfo(java.lang.String gaugeType,
StringPairVector configParamsMeta,
StringPairVector valuesMeta)
|
void |
registerGauge(GaugeID theGaugeID,
StringPairVector setupParams,
java.lang.String host)
|
void |
registerGaugeConsumer(java.lang.String gaugeConsumerUID,
int port)
|
void |
registerGaugeMgr(java.lang.String gaugeMgrUID,
java.lang.String gaugeMgrType,
java.lang.String gaugeMgrHost)
|
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 |
subscribeInterest(java.lang.String gaugeConsumerUID,
GaugeID theGaugeID,
GaugeEventType gaugeEvent)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RMIGaugeReportingBus(java.lang.String host) throws java.rmi.RemoteException
Method Detail |
public boolean reportValue(GaugeID gauge, java.lang.String valueName, java.lang.String propertyName, java.lang.String value)
GaugeReportingBus
reportValue
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
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)
GaugeReportingBus
reportMultipleValues
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
gauge
- The gauge reporting the values.values
- The values being reported - as (valueName, propertyName, value) tuples.public boolean reportConfigured(GaugeID gauge, StringPairVector configParams)
GaugeReportingBus
GaugeControl
interface
to let other interested parties know.reportConfigured
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
gauge
- The gauge being configured.configParams
- The new configuration of the gauge - as (name, value) pairs.public boolean reportDeleted(GaugeID gauge)
GaugeReportingBus
reportDeleted
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
gauge
- The ID of the gauge being deleted.public boolean reportCreated(GaugeID gauge)
GaugeReportingBus
reportCreated
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
gauge
- The ID of the new gauge.public void subscribeToGaugeEvent(GaugeEvent event, Subscriber subscriber)
GaugeReportingBus
subscribeToGaugeEvent
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
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)
GaugeReportingBus
unsubscribeToGaugeEvent
in interface GaugeReportingBus
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus
event
- The event pattern to unsubscribe from. If this is null, then the
subscriber is unsubscribed from all events.subscriber
- The subscriber to unsubscribe.public java.lang.String getGaugeHost(GaugeID gid)
public void subscribeInterest(java.lang.String gaugeConsumerUID, GaugeID theGaugeID, GaugeEventType gaugeEvent)
public void registerGauge(GaugeID theGaugeID, StringPairVector setupParams, java.lang.String host)
public void registerGaugeMgr(java.lang.String gaugeMgrUID, java.lang.String gaugeMgrType, java.lang.String gaugeMgrHost)
public void configureGauge(GaugeID theGaugeID, StringPairVector configParams)
public void createGauge(GaugeID theGaugeID, StringPairVector setupParams, StringPairVector mappings)
public void deleteGauge(GaugeID theGaugeID)
public void registerGaugeConsumer(java.lang.String gaugeConsumerUID, int port) throws java.rmi.RemoteException
public java.lang.String getGaugeMgr(java.lang.String gaugeMgrType)
public void queryMetaInfo(java.lang.String gaugeType, StringPairVector configParamsMeta, StringPairVector valuesMeta)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |