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
Fields inherited from class org.apache.drill.yarn.appMaster.http.AbstractTasksModel
results, supportsDisks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
boolean
boolean
void
listAnomalies
(ClusterController controller) List any anomalies: either stray Drillbits (those in ZK but not launched by DoY), or blacklisted nodes.void
Sort tasks by Task ID.void
Methods 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:
visit
in 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
-