public synchronized void executeCrawlCycle()

in src/main/java/org/apache/nutch/webui/client/impl/CrawlingCycle.java [56:74]


  public synchronized void executeCrawlCycle() {
    listener.crawlingStarted(crawl);

    for (RemoteCommand command : remoteCommands) {
      JobInfo jobInfo = executor.executeRemoteJob(command);
      command.setJobInfo(jobInfo);

      LOG.info("Executed remote command data: {}", command);

      if (jobInfo.getState() == State.FAILED) {
        listener.onCrawlError(crawl, jobInfo.getMsg());
        return;
      }

      executedCommands.add(command);
      listener.commandExecuted(crawl, command, calculateProgress());
    }
    listener.crawlingFinished(crawl);
  }