| java.lang.Object rcm.util.Timer websphinx.Chronicle
Chronicle | public class Chronicle extends Timer implements Runnable(Code) | | Run a crawler periodically.
|
Constructor Summary | |
public | Chronicle(Crawler crawler, int interval) Make a Chronicle.
Parameters: crawler - Crawler to run periodically Parameters: interval - Invocation interval, in seconds. |
Method Summary | |
protected synchronized void | alarm() | public static void | main(String[] args) | public synchronized void | run() Background thread that runs the crawler. | public void | start() Start chronicling. | public synchronized void | stop() Stop chronicling. |
triggered | boolean triggered(Code) | | |
Chronicle | public Chronicle(Crawler crawler, int interval)(Code) | | Make a Chronicle.
Parameters: crawler - Crawler to run periodically Parameters: interval - Invocation interval, in seconds. Crawler is invokedevery interval seconds. If the crawler is still runningwhen interval seconds have elapsed, it is aborted. |
alarm | protected synchronized void alarm()(Code) | | |
run | public synchronized void run()(Code) | | Background thread that runs the crawler. Clients shouldn't
call this.
|
start | public void start()(Code) | | 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()(Code) | | Stop chronicling. Also stops the crawler, if it's currently running.
|
|
|