Esempio n. 1
0
  @Override
  public void stop() {
    isStopped = true;

    if (schedulingThread != null) {
      synchronized (schedulingThread) {
        schedulingThread.interrupt();
      }
    }
    candidateWorkers.clear();
    scheduledRequests.clear();
    LOG.info("Task Scheduler stopped");
    super.stop();
  }
Esempio n. 2
0
 protected void clear() {
   leafTasks.clear();
   nonLeafTasks.clear();
   leafTaskHostMapping.clear();
   leafTasksRackMapping.clear();
 }