Call the IasCrawler.stopCrawl() method to stop a crawl.
IasCrawler.stopCrawl(CrawlId crawlId)
The crawlId parameter is a CrawlId object that contains the name of the crawl to stop.
To stop a crawl:
The IasCrawler.stopCrawl() method throws a CrawlNotFoundException if the specified crawl (the crawlId parameter) does not exist or is otherwise not found.
When the stop request is issued, the crawl first goes into a STOPPING state and then (when it finally stops) into a NOT_RUNNING state.