Call the IasCrawler.getStatus() method to retrieve the status of a crawl.
IasCrawler.getStatus(CrawlId crawlId)
The crawlId parameter is a CrawlId object that contains the name of the crawl for which status is to be returned.
To get the status of a crawl:
The IasCrawler.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.