Call the CasCrawler.getStatus() method to retrieve the status of a crawl.

The syntax of the method is:

CasCrawler.getStatus(CrawlId crawlId)

The crawlId parameter is a CrawlId object that contains the name of the crawl for which status is to be returned.

The method returns a Status object, which will have the status of the crawl as a CrawlerState simple data type:

To get the status of a crawl:

The CasCrawler.getStatus() method throws a CrawlNotFoundException if the specified crawl (the crawlId parameter) does not exist or is otherwise not found. To catch an exception, use a try block with the appropriate catch clause.


Copyright © Legal Notices