org.mmbase.module.core
Class MMBaseProbe

java.lang.Object
  |
  +--org.mmbase.module.core.MMBaseProbe
All Implemented Interfaces:
java.lang.Runnable

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

MMBaseProbe is a thread-like object that gets instantiated by MMbase. It calls the callback method MMBase.doProbeRun() in MMbase, which in turn probes the builders. After the probe has been preformed, it schedules itself to be destroyed after an alotted time (10 minutes), which also clears the reference in MMBase and prompts that module to create a new probe instance. This way, maintanance is scheduled to run every ten minutes.

Version:
$Id: MMBaseProbe.java,v 1.7 2002/03/11 10:42:36 pierre Exp $
Author:
Daniel Ockeloen, Pierer van Rooden (javadoc)

Constructor Summary
MMBaseProbe(MMBase parent)
          Constructor, which ties this probe object to an MMBase module
 
Method Summary
 void init()
          Initializes the probe and starts a probe thread.
 void run()
          Calls a callback method in the MMBase module.
 void start()
          Starts a thread to perform the probes.
 void stop()
          Stops the probing thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMBaseProbe

public MMBaseProbe(MMBase parent)
Constructor, which ties this probe object to an MMBase module
Method Detail

init

public void init()
Initializes the probe and starts a probe thread.

start

public void start()
Starts a thread to perform the probes.

stop

public void stop()
Stops the probing thread. Uses deprecated methods (suspend/stop), should be changed or removed.

run

public void run()
Calls a callback method in the MMBase module. After the maintenance is performed, it sleeps itself for ten minutes before terminating. During this time is functions as a placeholder, preventing another probe to be started and allowing for scheduling of the probe task.
Specified by:
run in interface java.lang.Runnable


MMBase build 1.6.5.20030923