edu.cmu.cs.able.gauges.RMI
Class RMITimeGaugeMgr
java.lang.Object
|
+--edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
|
+--edu.cmu.cs.able.gauges.RMI.RMITimeGaugeMgr
- All Implemented Interfaces:
- edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr, java.io.Serializable
- public class RMITimeGaugeMgr
- extends edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
- See Also:
- Serialized Form
Fields inherited from class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr |
busHost, gaugeBus, gaugeMgrType, gaugeMgrUID |
Constructor Summary |
RMITimeGaugeMgr(java.lang.String bushost)
Creates new RMITimeGaugeMgr |
Method Summary |
edu.cmu.cs.able.gaugeInfrastructure.GaugeControl |
createGauge(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeID gauge,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setupParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings)
Creates a new gauge as a separate process. |
boolean |
deleteGauge(edu.cmu.cs.able.gaugeInfrastructure.GaugeControl gauge)
Deletes the gauge process associated with the gauge ID. |
static void |
main(java.lang.String[] args)
|
boolean |
managesType(java.lang.String gaugeType)
Returns true if the gauge type is edu.cmu.cs.able.gauges.RMI.RMITimeGauge |
boolean |
queryMetaInfo(java.lang.String gaugeType,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParamsMeta,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector valuesMeta)
Returns the parameters that can be used to configure the gauge,
as well as the values reported by the gauge, for a particular
gauge type. |
Methods inherited from class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr |
getGaugeMgrID, getGaugeMgrType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMITimeGaugeMgr
public RMITimeGaugeMgr(java.lang.String bushost)
- Creates new RMITimeGaugeMgr
createGauge
public edu.cmu.cs.able.gaugeInfrastructure.GaugeControl createGauge(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeID gauge,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setupParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings)
- Creates a new gauge as a separate process.
- Overrides:
createGauge
in class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
- Parameters:
gauge
- The ID of the gauge to create.setupParams
- The setup parameters to pass to the new gauge.mappings
- The mappings to pass to the new gauge.- Returns:
- A gauge control that has the new ID and setup parameters.
deleteGauge
public boolean deleteGauge(edu.cmu.cs.able.gaugeInfrastructure.GaugeControl gauge)
- Deletes the gauge process associated with the gauge ID.
- Overrides:
deleteGauge
in class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
- Parameters:
gauge
- The gauge to be deleted.- Returns:
- Whether the process was destroyed successfully.
managesType
public boolean managesType(java.lang.String gaugeType)
- Returns true if the gauge type is edu.cmu.cs.able.gauges.RMI.RMITimeGauge
- Overrides:
managesType
in class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
- Parameters:
gaugeType
- - Returns:
-
queryMetaInfo
public boolean queryMetaInfo(java.lang.String gaugeType,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParamsMeta,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector valuesMeta)
- Returns the parameters that can be used to configure the gauge,
as well as the values reported by the gauge, for a particular
gauge type.
- Overrides:
queryMetaInfo
in class edu.cmu.cs.able.gaugeInfrastructure.RMI.RMIGaugeMgr
- Parameters:
gaugeType
- The type of the gauge about which to get information.configParamsMeta
- Will fill this vector with [("frequency", "int"), ("report", "boolean")]valuesMeta
- Will fill this vector with [("date", "string")]- Returns:
-
main
public static void main(java.lang.String[] args)