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.
-
Chronicle(Crawler, int)
- Make a Chronicle.
-
alarm()
-
-
main(String[])
-
-
run()
- Background thread that runs the crawler.
-
start()
- Start chronicling.
-
stop()
- Stop chronicling.
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.
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.
stop
public synchronized void stop()
- Stop chronicling. Also stops the crawler, if it's currently running.
run
public synchronized void run()
- Background thread that runs the crawler. Clients shouldn't
call this.
alarm
protected synchronized void alarm()
- Overrides:
- alarm in class Timer
main
public static void main(String args[]) throws Exception
All Packages Class Hierarchy This Package Previous Next Index