edu.cmu.cs.able.gaugeInfrastructure.RMI
Class RMIGaugeConsumer

java.lang.Object
  |
  +--edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeConsumer
All Implemented Interfaces:
GaugeConsumer, java.io.Serializable

public class RMIGaugeConsumer
extends java.lang.Object
implements GaugeConsumer, java.io.Serializable

A stub implementation of the a gauge consumer that listens to rmi gauges.

Since:
JDK1.3.1
See Also:
Serialized Form

Field Summary
 java.lang.String busHost
           
protected  RMIGaugeReportingBus gaugeBus
          The reporting bus that gauges report through.
 java.lang.String gaugeConsumerHost
           
 java.lang.String gaugeConsumerUID
           
protected  RMIGaugeManagerHandle gaugeMgr
           
 
Constructor Summary
RMIGaugeConsumer(java.lang.String host)
          Constructor of RMIGaugeConsumer
 
Method Summary
 void onReportConfigured(GaugeControl gauge, StringPairVector configParams)
          Called when a configured event is reported
 void onReportCreated(GaugeControl gauge)
          Called when a created event is reported
 void onReportDeleted(GaugeControl gauge)
          Called when a deleted event is reported
 void onReportMultipleValues(GaugeControl gauge, GaugeValueVector values)
          Called when multiple values are reported
 void onReportValue(GaugeControl gauge, java.lang.String valueName, java.lang.String propertyName, java.lang.String value)
          Called when a value is reported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gaugeBus

protected RMIGaugeReportingBus gaugeBus
The reporting bus that gauges report through.

gaugeMgr

protected RMIGaugeManagerHandle gaugeMgr

gaugeConsumerUID

public java.lang.String gaugeConsumerUID

gaugeConsumerHost

public java.lang.String gaugeConsumerHost

busHost

public java.lang.String busHost
Constructor Detail

RMIGaugeConsumer

public RMIGaugeConsumer(java.lang.String host)
Constructor of RMIGaugeConsumer
Method Detail

onReportValue

public void onReportValue(GaugeControl gauge,
                          java.lang.String valueName,
                          java.lang.String propertyName,
                          java.lang.String value)
Called when a value is reported
Specified by:
onReportValue in interface GaugeConsumer
Parameters:
gauge - The gauge reporting the value
valueName - The name of the value
propertyName - The property name of the value
value - The content of the value

onReportMultipleValues

public void onReportMultipleValues(GaugeControl gauge,
                                   GaugeValueVector values)
Called when multiple values are reported
Specified by:
onReportMultipleValues in interface GaugeConsumer
Parameters:
gauge - The gauge reporting the values
values - The values

onReportConfigured

public void onReportConfigured(GaugeControl gauge,
                               StringPairVector configParams)
Called when a configured event is reported
Specified by:
onReportConfigured in interface GaugeConsumer
Parameters:
gauge - The gauge reporting the event
configParams - The configuration parameters

onReportDeleted

public void onReportDeleted(GaugeControl gauge)
Called when a deleted event is reported
Specified by:
onReportDeleted in interface GaugeConsumer
Parameters:
gauge - The gauge reporting the event

onReportCreated

public void onReportCreated(GaugeControl gauge)
Called when a created event is reported
Specified by:
onReportCreated in interface GaugeConsumer
Parameters:
gauge - The gauge reporting the event