org.ow2.jasmine.probe.manager
Class JProbe

java.lang.Object
  extended by org.ow2.jasmine.probe.manager.JProbe
All Implemented Interfaces:
java.lang.Runnable

public class JProbe
extends java.lang.Object
implements java.lang.Runnable

This object represents a Running Probe.

Author:
durieuxp

Field Summary
protected static org.ow2.util.log.Log logger
           
 
Constructor Summary
JProbe(org.ow2.jasmine.probe.JasmineProbe def)
          Constructor
 
Method Summary
 java.util.List<org.ow2.jasmine.probe.collector.JasmineCollector> getCollectors()
           
 java.util.List<org.ow2.jasmine.probe.outer.JasmineOuter> getOuters()
           
 org.ow2.jasmine.probe.JasmineProbe getProbeDef()
           
 int getStatus()
          Get the Probe status, kept in the JasmineProbe object for convenience.
 void halt()
          Stop the Probe by stopping the collectors' polling.
 void launch()
          Called by the JasmineProbeManager in startProbe(), when the probe is in the STOPPED state.
 void run()
          Called by the Scheduler to make a polling on all indicators
 void setCollectors(java.util.List<org.ow2.jasmine.probe.collector.JasmineCollector> collectors)
           
 void setError(java.lang.String mess)
          Set the Probe error message, kept in the JasmineProbe object for convenience.
 void setOuters(java.util.List<org.ow2.jasmine.probe.outer.JasmineOuter> outers)
           
 void setStatus(int state)
          Set the Probe status, kept in the JasmineProbe object for convenience.
 void setTask(org.ow2.jasmine.probe.probescheduler.TaskReference task)
          Set the task reference returned by the scheduler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.ow2.util.log.Log logger
Constructor Detail

JProbe

public JProbe(org.ow2.jasmine.probe.JasmineProbe def)
Constructor

Method Detail

getProbeDef

public org.ow2.jasmine.probe.JasmineProbe getProbeDef()

getStatus

public int getStatus()
Get the Probe status, kept in the JasmineProbe object for convenience.

Returns:
the probe status

setStatus

public void setStatus(int state)
Set the Probe status, kept in the JasmineProbe object for convenience.

Parameters:
state - the probe status

setError

public void setError(java.lang.String mess)
Set the Probe error message, kept in the JasmineProbe object for convenience.

Parameters:
mess - the error message

setTask

public void setTask(org.ow2.jasmine.probe.probescheduler.TaskReference task)
Set the task reference returned by the scheduler.


getOuters

public java.util.List<org.ow2.jasmine.probe.outer.JasmineOuter> getOuters()

setOuters

public void setOuters(java.util.List<org.ow2.jasmine.probe.outer.JasmineOuter> outers)

getCollectors

public java.util.List<org.ow2.jasmine.probe.collector.JasmineCollector> getCollectors()

setCollectors

public void setCollectors(java.util.List<org.ow2.jasmine.probe.collector.JasmineCollector> collectors)

halt

public void halt()
Stop the Probe by stopping the collectors' polling.


launch

public void launch()
Called by the JasmineProbeManager in startProbe(), when the probe is in the STOPPED state. (restartProbe() operation).


run

public void run()
Called by the Scheduler to make a polling on all indicators

Specified by:
run in interface java.lang.Runnable


Copyright © 2011 OW2 Consortium. All Rights Reserved.