@Service public class CrawlServiceImpl extends Object implements CrawlService, CrawlingCycleListener
| Constructor and Description |
|---|
CrawlServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
commandExecuted(Crawl crawl,
RemoteCommand command,
int progress) |
void |
crawlingFinished(Crawl crawl) |
void |
crawlingStarted(Crawl crawl) |
void |
deleteCrawl(Long crawlId) |
List<Crawl> |
getCrawls() |
void |
onCrawlError(Crawl crawl,
String msg) |
void |
saveCrawl(Crawl crawl) |
void |
startCrawl(Long crawlId,
NutchInstance instance) |
@Async public void startCrawl(Long crawlId, NutchInstance instance)
startCrawl in interface CrawlServicepublic List<Crawl> getCrawls()
getCrawls in interface CrawlServicepublic void saveCrawl(Crawl crawl)
saveCrawl in interface CrawlServicepublic void deleteCrawl(Long crawlId)
deleteCrawl in interface CrawlServicepublic void crawlingStarted(Crawl crawl)
crawlingStarted in interface CrawlingCycleListenerpublic void onCrawlError(Crawl crawl, String msg)
onCrawlError in interface CrawlingCycleListenerpublic void commandExecuted(Crawl crawl, RemoteCommand command, int progress)
commandExecuted in interface CrawlingCycleListenerpublic void crawlingFinished(Crawl crawl)
crawlingFinished in interface CrawlingCycleListenerCopyright © 2021 The Apache Software Foundation