Class AbstractTasksModel.TasksModel

java.lang.Object
org.apache.drill.yarn.appMaster.http.AbstractTasksModel
org.apache.drill.yarn.appMaster.http.AbstractTasksModel.TasksModel
All Implemented Interfaces:
TaskVisitor
Enclosing class:
AbstractTasksModel

public static class AbstractTasksModel.TasksModel extends AbstractTasksModel implements TaskVisitor
  • Field Details

  • Constructor Details

    • TasksModel

      public TasksModel()
  • Method Details

    • visit

      public void visit(Task task)
      Specified by:
      visit in interface TaskVisitor
    • sortTasks

      public void sortTasks()
      Sort tasks by Task ID.
    • listAnomalies

      public void listAnomalies(ClusterController controller)
      List any anomalies: either stray Drillbits (those in ZK but not launched by DoY), or blacklisted nodes.

      To avoid race conditions, do not use the controller visitor to invoke this method, we want to leave the controller unlocked and instead lock only the ZK registry.

      Parameters:
      controller -
    • getUnnamaged

    • hasUnmanagedDrillbits

      public boolean hasUnmanagedDrillbits()
    • getUnmanagedDrillbitCount

      public int getUnmanagedDrillbitCount()
    • hasBlacklist

      public boolean hasBlacklist()
    • getBlacklistCount

      public int getBlacklistCount()
    • getBlacklist

      public List<String> getBlacklist()