edu.cmu.cs.able.gaugeInfrastructure.Siena
Class SienaGaugeMgrHandle
java.lang.Object
|
+--edu.cmu.cs.able.gaugeInfrastructure.Siena.SienaGaugeMgrHandle
- All Implemented Interfaces:
- GaugeMgr
- public class SienaGaugeMgrHandle
- extends java.lang.Object
- implements GaugeMgr
Constructor Summary |
SienaGaugeMgrHandle(java.lang.String gaugeType)
Creates new SienaGaugeMgrHandle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gaugeMgrID
public java.lang.String gaugeMgrID
SienaGaugeMgrHandle
public SienaGaugeMgrHandle(java.lang.String gaugeType)
- Creates new SienaGaugeMgrHandle
getGaugeMgrID
public java.lang.String getGaugeMgrID()
- Description copied from interface:
GaugeMgr
- Each gauge manager has a unique ID.
- Specified by:
getGaugeMgrID
in interface GaugeMgr
- Following copied from interface:
edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr
- Returns:
- The identifier of the gauge manager.
createGauge
public GaugeControl createGauge(GaugeID gauge,
StringPairVector setupParams,
StringPairVector mappings)
- Description copied from interface:
GaugeMgr
- Creates a new gauge with the information specified.
- Specified by:
createGauge
in interface GaugeMgr
- Following copied from interface:
edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr
- Parameters:
gauge
- The ID of the gauge to be created.setupParams
- The parameters with which to set up the gauge.mappings
- The mappings of values to model properties for how
the gauge should report values.- Returns:
- A new
GaugeControl
interface. Note that the GaugeID
of this GaugeControl may be different to the GaugeID
passed in as paramters.
In particular, the modelName and uid may be different.
deleteGauge
public boolean deleteGauge(GaugeControl gauge)
- Description copied from interface:
GaugeMgr
- Deletes a gauge. A gauge will send out a final delete announcement
so that all consumers can be informed.
- Specified by:
deleteGauge
in interface GaugeMgr
- Following copied from interface:
edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr
- Parameters:
gauge
- The gauge to be deleted.- Returns:
- true if the gauge was deleted; false otherwise.
managesType
public boolean managesType(java.lang.String gaugeType)
- Description copied from interface:
GaugeMgr
- Determines whether this gauge manager can manage gauges of
a particular type.
- Specified by:
managesType
in interface GaugeMgr
- Following copied from interface:
edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr
- Parameters:
gaugeType
- The type of the gauge being queried- Returns:
- true if the gauge manager managers this type; false otherwise.
queryMetaInfo
public boolean queryMetaInfo(java.lang.String gaugeType,
StringPairVector configParamsMeta,
StringPairVector valuesMeta)
- Description copied from interface:
GaugeMgr
- Fills in the type information for a gauge type.
- Specified by:
queryMetaInfo
in interface GaugeMgr
- Following copied from interface:
edu.cmu.cs.able.gaugeInfrastructure.GaugeMgr
- Parameters:
gaugeType
- The type of the gauge for which information is being queried.configParamsMeta
- Filled in with the parameters that can be used to configure a gauge as (name, type) pairs.valuesMeta
- Filled in with the values that the gauge can report, as (name, type) pairs.- Returns:
- true if the information could be determined; false otherwise.