Package edu.uci.ics.crawler4j.crawler

Examples of edu.uci.ics.crawler4j.crawler.CrawlController.waitUntilFinish()


    controller2.startNonBlocking(BasicCrawler.class, 7);

    controller1.waitUntilFinish();
    System.out.println("Crawler 1 is finished.");

    controller2.waitUntilFinish();
    System.out.println("Crawler 2 is finished.");
  }
}
View Full Code Here


    // Wait for 30 seconds
    Thread.sleep(30 * 1000);

    // Send the shutdown request and then wait for finishing
    controller.Shutdown();
    controller.waitUntilFinish();
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.