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, JProbeManager mgr)
          Constructor
 
Method Summary
 org.ow2.jasmine.probe.JasmineProbe getProbeDef()
           
 int getStatus()
          Get the Probe status, kept in the JasmineProbe object for convenience.
 void resume()
          Start the Probe, or resume it if it was previously suspended.
 void run()
          Called by the Scheduler to make a polling on all indicators
 void setError(java.lang.String mess)
          Set the Probe error message, kept in the JasmineProbe object for convenience.
 void setStatus(int state)
          Set the Probe status, kept in the JasmineProbe object for convenience.
 void suspend()
          Suspend the Probe.
 
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,
              JProbeManager mgr)
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

resume

public void resume()
            throws org.ow2.jasmine.probe.JasmineProbeException
Start the Probe, or resume it if it was previously suspended.

Throws:
org.ow2.jasmine.probe.JasmineProbeException

suspend

public void suspend()
Suspend the Probe. It may be restarted later by resume().


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.