use of org.apache.hadoop.mapreduce.v2.api.records.TaskReport in project tez by apache.
the class NotRunningJob method getTaskReport.
@Override
public GetTaskReportResponse getTaskReport(GetTaskReportRequest request) throws IOException {
GetTaskReportResponse resp = recordFactory.newRecordInstance(GetTaskReportResponse.class);
TaskReport report = recordFactory.newRecordInstance(TaskReport.class);
report.setTaskId(request.getTaskId());
report.setTaskState(TaskState.NEW);
Counters counters = recordFactory.newRecordInstance(Counters.class);
counters.addAllCounterGroups(new HashMap<String, CounterGroup>());
report.setCounters(counters);
report.addAllRunningAttempts(new ArrayList<TaskAttemptId>());
return resp;
}
use of org.apache.hadoop.mapreduce.v2.api.records.TaskReport in project tez by apache.
the class NotRunningJob method getTaskReports.
@Override
public GetTaskReportsResponse getTaskReports(GetTaskReportsRequest request) throws IOException {
GetTaskReportsResponse resp = recordFactory.newRecordInstance(GetTaskReportsResponse.class);
resp.addAllTaskReports(new ArrayList<TaskReport>());
return resp;
}
Aggregations