@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 CrawlService
public List<Crawl> getCrawls()
getCrawls
in interface CrawlService
public void saveCrawl(Crawl crawl)
saveCrawl
in interface CrawlService
public void deleteCrawl(Long crawlId)
deleteCrawl
in interface CrawlService
public void crawlingStarted(Crawl crawl)
crawlingStarted
in interface CrawlingCycleListener
public void onCrawlError(Crawl crawl, String msg)
onCrawlError
in interface CrawlingCycleListener
public void commandExecuted(Crawl crawl, RemoteCommand command, int progress)
commandExecuted
in interface CrawlingCycleListener
public void crawlingFinished(Crawl crawl)
crawlingFinished
in interface CrawlingCycleListener
Copyright © 2015 The Apache Software Foundation