edu.cmu.cs.able.gauges
Class RemosBandwidthGaugeImpl
java.lang.Object
|
+--edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
|
+--edu.cmu.cs.able.gauges.RemosBandwidthGaugeImpl
- All Implemented Interfaces:
- edu.cmu.cs.able.probes.RemosProbe.BandwidthProbeConsumer, java.lang.Runnable
- public class RemosBandwidthGaugeImpl
- extends edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
- implements edu.cmu.cs.able.probes.RemosProbe.BandwidthProbeConsumer
Fields inherited from class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl |
doReporting, gaugeBus, gaugeID, gaugeType, mappings, reportingFrequency, reportingThread, setupParams |
Constructor Summary |
RemosBandwidthGaugeImpl(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeID gid,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setup,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings,
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus bus,
java.lang.String probeBus)
Creates a new instance of RemosBandwidthGaugeImpl |
Method Summary |
boolean |
configure(edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParams)
|
boolean |
consistentlyCreated()
|
boolean |
queryAllValues(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValueVector values)
|
boolean |
queryState(edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setupParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings)
|
java.lang.String |
queryValue(java.lang.String valueName)
|
void |
reportNewValue()
|
void |
sensed(double bw)
|
Methods inherited from class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl |
run, startReportingThread, stopReportingThread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ip1
protected java.net.InetAddress ip1
ip2
protected java.net.InetAddress ip2
probeBus
protected java.lang.String probeBus
probeFrequency
protected int probeFrequency
probesDeployed
protected boolean probesDeployed
creationOK
protected boolean creationOK
currentBW
protected java.lang.Double currentBW
RemosBandwidthGaugeImpl
public RemosBandwidthGaugeImpl(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeID gid,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setup,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings,
edu.cmu.cs.able.gaugeInfrastructure.GaugeReportingBus bus,
java.lang.String probeBus)
- Creates a new instance of RemosBandwidthGaugeImpl
reportNewValue
public void reportNewValue()
- Overrides:
reportNewValue
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
configure
public boolean configure(edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParams)
- Overrides:
configure
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
queryAllValues
public boolean queryAllValues(edu.cmu.cs.able.gaugeInfrastructure.util.GaugeValueVector values)
- Overrides:
queryAllValues
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
queryState
public boolean queryState(edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector setupParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector configParams,
edu.cmu.cs.able.gaugeInfrastructure.util.StringPairVector mappings)
- Overrides:
queryState
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
queryValue
public java.lang.String queryValue(java.lang.String valueName)
- Overrides:
queryValue
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
consistentlyCreated
public boolean consistentlyCreated()
- Overrides:
consistentlyCreated
in class edu.cmu.cs.able.gaugeInfrastructure.GaugeImpl
sensed
public void sensed(double bw)
- Specified by:
sensed
in interface edu.cmu.cs.able.probes.RemosProbe.BandwidthProbeConsumer