/** */ public TaskTrackerStatus() { taskReports = new ArrayList<TaskStatus>(); resStatus = new ResourceStatus(); this.healthStatus = new TaskTrackerHealthStatus(); }
/** */ public TaskTrackerStatus() { taskReports = new ArrayList<TaskStatus>(); resStatus = new ResourceStatus(); this.healthStatus = new TaskTrackerHealthStatus(); }
/** */ public TaskTrackerStatus(String trackerName, String host, int httpPort, List<TaskStatus> taskReports, int failures, int maxMapTasks, int maxReduceTasks) { this.trackerName = trackerName; this.host = host; this.httpPort = httpPort; this.taskReports = new ArrayList<TaskStatus>(taskReports); this.failures = failures; this.maxMapTasks = maxMapTasks; this.maxReduceTasks = maxReduceTasks; this.resStatus = new ResourceStatus(); this.healthStatus = new TaskTrackerHealthStatus(); }
public void testNodeHealthScript() throws Exception { TaskTrackerHealthStatus healthStatus = new TaskTrackerHealthStatus(); String errorScript = "echo ERROR\n echo \"Tracker not healthy\""; String normalScript = "echo \"I am all fine\"";
/** */ public TaskTrackerStatus(String trackerName, String host, int httpPort, List<TaskStatus> taskReports, int failures, int maxMapTasks, int maxReduceTasks) { this.trackerName = trackerName; this.host = host; this.httpPort = httpPort; this.taskReports = new ArrayList<TaskStatus>(taskReports); this.failures = failures; this.maxMapTasks = maxMapTasks; this.maxReduceTasks = maxReduceTasks; this.resStatus = new ResourceStatus(); this.healthStatus = new TaskTrackerHealthStatus(); }
private TaskTrackerHealthStatus getUnhealthyNodeStatus(String error) { TaskTrackerHealthStatus status = new TaskTrackerHealthStatus(); status.setNodeHealthy(false); status.setLastReported(System.currentTimeMillis()); status.setHealthReport(error); return status; }