All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class websphinx.Chronicle

java.lang.Object
   |
   +----websphinx.util.Timer
           |
           +----websphinx.Chronicle

public class Chronicle
extends Timer
implements Runnable
Run a crawler periodically.


Constructor Index

 o Chronicle(Crawler, int)
Make a Chronicle.

Method Index

 o alarm()
 o main(String[])
 o run()
Background thread that runs the crawler.
 o start()
Start chronicling.
 o stop()
Stop chronicling.

Constructors

 o Chronicle
 public Chronicle(Crawler crawler,
                  int interval)
Make a Chronicle.

Parameters:
crawler - Crawler to run periodically
interval - Invocation interval, in seconds. Crawler is invoked every interval seconds. If the crawler is still running when interval seconds have elapsed, it is aborted.

Methods

 o start
 public void start()
Start chronicling. Starts a background thread which starts the crawler immediately, then re-runs the crawler every interval seconds from now until stop() is called.

 o stop
 public synchronized void stop()
Stop chronicling. Also stops the crawler, if it's currently running.

 o run
 public synchronized void run()
Background thread that runs the crawler. Clients shouldn't call this.

 o alarm
 protected synchronized void alarm()
Overrides:
alarm in class Timer
 o main
 public static void main(String args[]) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index