|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.harvesting.DirectHeritrixController.SimpleCrawlStatusListener
class DirectHeritrixController.SimpleCrawlStatusListener
Class for handling callbacks from Heritrix. Except for logging, all that happens is that - the constructor sets the value of crawlIsEnded to false - crawlEnded() callback method sets the value of crawlIsEnded to true. Note that the callbacks that occur are performed by a "foreign" thread, initiated by Heritrix. That is the reason that the crawlIsEnded field is an AtomicBoolean.
CrawlStatusListener
Constructor Summary | |
---|---|
DirectHeritrixController.SimpleCrawlStatusListener()
Sets the value of crawlIsEnded to false. |
Method Summary | |
---|---|
void |
crawlCheckpoint(java.io.File checkpointDir)
Called by CrawlController when checkpointing. |
void |
crawlEnded(java.lang.String s)
Sets the value of crawlIsEnded to true Fired by the crawler when the crawl is ended. |
void |
crawlEnding(java.lang.String s)
Fired by the crawler when the crawl is about to end (no reports written yet....toe threads might still be running....). |
void |
crawlPaused(java.lang.String s)
Fired by the crawler when the crawl is paused. |
void |
crawlPausing(java.lang.String s)
Fired by the crawler when the crawl is about to pause (toe threads might still be running.....). |
void |
crawlResuming(java.lang.String s)
Fired by the crawler when the crawl is resuming. |
void |
crawlStarted(java.lang.String s)
Fired by the crawler, when the crawl has started. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectHeritrixController.SimpleCrawlStatusListener()
Method Detail |
---|
public void crawlStarted(java.lang.String s)
crawlStarted
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlStarted(java.lang.String)
public void crawlEnding(java.lang.String s)
crawlEnding
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlEnding(java.lang.String)
public void crawlEnded(java.lang.String s)
crawlEnded
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlEnded(java.lang.String)
public void crawlPausing(java.lang.String s)
crawlPausing
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlPausing(java.lang.String)
public void crawlPaused(java.lang.String s)
crawlPaused
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlPaused(java.lang.String)
public void crawlResuming(java.lang.String s)
crawlResuming
in interface org.archive.crawler.event.CrawlStatusListener
s
- Message to attachCrawlStatusListener.crawlResuming(java.lang.String)
public void crawlCheckpoint(java.io.File checkpointDir) throws java.lang.Exception
crawlCheckpoint
in interface org.archive.crawler.event.CrawlStatusListener
checkpointDir
- Checkpoint dir. Write checkpoint state here.
java.lang.Exception
- A fatal exception. Any exceptions that are let out
of this checkpoint are assumed fatal and terminate
further checkpoint processing.CrawlStatusListener.crawlCheckpoint(java.io.File)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |