edu.cmu.cs.able.probes.RemosProbe
Class ProbeManager

java.lang.Object
  |
  +--edu.cmu.cs.able.probes.RemosProbe.ProbeManager

public class ProbeManager
extends java.lang.Object

ProbeManager is "behind" ProbeManageComm, but it is the object that manages probes, ProbeManageComm takes care of the siena message communication so ProbeManager could focus on the work about probe management.


Method Summary
 ProbeID createProbe()
          Create a Remos Probe
 boolean destroyProbe(ProbeID prbID)
          Destory a Probe (either Flow or Topology Probe)
 Probe getProbeByID(ProbeID prbID)
          Search for the probe object in the probeList according to probe ID.
 void report(ProbeID prbID, double bw)
          Simply forward the probing information from Probe to ProbeManager
 void reportError(ProbeID prbID)
          Simply forward the error probe ID to ProbeManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createProbe

public ProbeID createProbe()
Create a Remos Probe
Returns:
the ID of the probe that is created

destroyProbe

public boolean destroyProbe(ProbeID prbID)
Destory a Probe (either Flow or Topology Probe)
Parameters:
prbID - ID of the probe to be destroied
Returns:
true/false, i.e., whether the destroy is successful

getProbeByID

public Probe getProbeByID(ProbeID prbID)
Search for the probe object in the probeList according to probe ID.
Parameters:
prbID - the ID of the probe that is searched for
Returns:
the probe object that we find. If no object is found, null is return

report

public void report(ProbeID prbID,
                   double bw)
Simply forward the probing information from Probe to ProbeManager
Parameters:
prbID - the ID of the probe that creates the error
bw - available bandwidth from the probe

reportError

public void reportError(ProbeID prbID)
Simply forward the error probe ID to ProbeManager