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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.yarn.appMaster.http.AbstractTasksModel
AbstractTasksModel.HistoryModel, AbstractTasksModel.TaskModel, AbstractTasksModel.TasksModel, AbstractTasksModel.UnmanagedDrillbitModel -
Field Summary
FieldsFields inherited from class org.apache.drill.yarn.appMaster.http.AbstractTasksModel
results, supportsDisks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintbooleanbooleanvoidlistAnomalies(ClusterController controller) List any anomalies: either stray Drillbits (those in ZK but not launched by DoY), or blacklisted nodes.voidSort tasks by Task ID.voidMethods inherited from class org.apache.drill.yarn.appMaster.http.AbstractTasksModel
getTasks, hasTasks, supportsDiskResource
-
Field Details
-
unmanaged
-
blacklist
-
-
Constructor Details
-
TasksModel
public TasksModel()
-
-
Method Details
-
visit
- Specified by:
visitin interfaceTaskVisitor
-
sortTasks
public void sortTasks()Sort tasks by Task ID. -
listAnomalies
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
-