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

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--edu.cmu.cs.able.probes.RemosProbe.Probe
All Implemented Interfaces:
java.lang.Runnable

public class Probe
extends java.lang.Thread

Probe is responsible for the probing work by making use of Remos. Probe is deployed by ProbeManager.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 boolean activate(java.net.InetAddress srcIP, java.net.InetAddress dstIP, double frequence)
          Set the probing parameters of the probe and make it start working
 boolean focus(java.net.InetAddress srcIP, java.net.InetAddress dstIP, double frequence)
          Change the probing parameters of the probe and make it start working
 ProbeID getID()
          Retrieve this probe's ID
 void query()
          Not implemented.
 void run()
          This is where the probing is carried out.
 void stopProbe()
          Stop the monitoring of this probe.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

stopProbe

public void stopProbe()
Stop the monitoring of this probe.

activate

public boolean activate(java.net.InetAddress srcIP,
                        java.net.InetAddress dstIP,
                        double frequence)
                 throws ProbeException
Set the probing parameters of the probe and make it start working
Parameters:
srcIP - the source node of the network link to be monitored
dstIP - the destination node of the network link to be monitored
frequence - probing frequency
Returns:
true/false, i.e., whether the setting up is successful
Throws:
RemosProbe.ProbeException -  

focus

public boolean focus(java.net.InetAddress srcIP,
                     java.net.InetAddress dstIP,
                     double frequence)
              throws ProbeException
Change the probing parameters of the probe and make it start working
Parameters:
srcIP - the source node of the network link to be monitored
dstIP - the destination node of the network link to be monitored
frequence - probing frequency
Returns:
true/false, i.e., whether the status changing is successful
Throws:
RemosProbe.ProbeException -  

query

public void query()
Not implemented.

run

public void run()
This is where the probing is carried out.
Overrides:
run in class java.lang.Thread

getID

public ProbeID getID()
Retrieve this probe's ID
Returns:
probe ID