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

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

public class RMIGauge
extends java.lang.Object
implements GaugeControl, java.io.Serializable

RMIGauge.java

Since:
JDK1.3.1
See Also:
Serialized Form

Field Summary
protected static java.lang.String busHost
           
 StringPairVector configParams
           
protected  java.lang.String creatorID
           
protected  RMIGaugeReportingBus gaugeBus
           
protected  GaugeID gaugeID
           
protected  java.lang.String gaugeType
           
protected  StringPairVector mappings
           
 StringPairVector setupParams
           
 
Constructor Summary
RMIGauge(GaugeID gaugeID)
          Creates new RMIGauge
RMIGauge(GaugeID gaugeID, java.lang.String creatorID, StringPairVector setupParams, StringPairVector mappings)
          Creates new RMIGauge
RMIGauge(java.lang.String modelName, java.lang.String modelType, java.lang.String gaugeName, java.lang.String creatorID)
          Creates new RMIGauge
 
Method Summary
 boolean configure(StringPairVector configParams)
          Configures the gauge.
 void delete()
          Deletes the RMIGauge
 StringPairVector getConfigParams()
          Returns the configuration parameters of this gauge.
 int getConfigParamsSize()
           
 GaugeID getGaugeID()
          Returns the gauge ID of this gauge.
 StringPairVector getSetupParams()
          Returns the setup parameters of this gauge.
 int getSetupParamsSize()
           
 void init()
          Initializes the RMIGauge
 boolean queryAllValues(GaugeValueVector values)
          Returns all the values that this gauge reports.
 boolean queryState(StringPairVector setupParams, StringPairVector configParams, StringPairVector mappings)
          Returns the state of this gauge.
 java.lang.String queryValue(java.lang.String valueName)
          Returns the value of a particular value name
 void register()
          Register the RMIGauge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gaugeBus

protected RMIGaugeReportingBus gaugeBus

gaugeType

protected java.lang.String gaugeType

creatorID

protected java.lang.String creatorID

setupParams

public StringPairVector setupParams

configParams

public StringPairVector configParams

mappings

protected StringPairVector mappings

gaugeID

protected GaugeID gaugeID

busHost

protected static java.lang.String busHost
Constructor Detail

RMIGauge

public RMIGauge(GaugeID gaugeID)
Creates new RMIGauge

RMIGauge

public RMIGauge(java.lang.String modelName,
                java.lang.String modelType,
                java.lang.String gaugeName,
                java.lang.String creatorID)
Creates new RMIGauge

RMIGauge

public RMIGauge(GaugeID gaugeID,
                java.lang.String creatorID,
                StringPairVector setupParams,
                StringPairVector mappings)
Creates new RMIGauge
Method Detail

init

public void init()
Initializes the RMIGauge

register

public void register()
Register the RMIGauge

delete

public void delete()
Deletes the RMIGauge

getGaugeID

public GaugeID getGaugeID()
Returns the gauge ID of this gauge.
Specified by:
getGaugeID in interface GaugeControl
Returns:
 

getConfigParams

public StringPairVector getConfigParams()
Returns the configuration parameters of this gauge.
Returns:
 

getSetupParams

public StringPairVector getSetupParams()
Returns the setup parameters of this gauge.
Returns:
 

getConfigParamsSize

public int getConfigParamsSize()

getSetupParamsSize

public int getSetupParamsSize()

configure

public boolean configure(StringPairVector configParams)
Configures the gauge.
Specified by:
configure in interface GaugeControl
Parameters:
configParams - The configuration parameters for this gauge.
Returns:
 

queryAllValues

public boolean queryAllValues(GaugeValueVector values)
Returns all the values that this gauge reports.
Specified by:
queryAllValues in interface GaugeControl
Parameters:
values -  
Returns:
 

queryState

public boolean queryState(StringPairVector setupParams,
                          StringPairVector configParams,
                          StringPairVector mappings)
Returns the state of this gauge.
Specified by:
queryState in interface GaugeControl
Parameters:
setupParams -  
configParams -  
mappings -  
Returns:
 

queryValue

public java.lang.String queryValue(java.lang.String valueName)
Returns the value of a particular value name
Specified by:
queryValue in interface GaugeControl
Parameters:
valueName -  
Returns: