public class TaskReportPBImpl extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto> implements TaskReport
Constructor and Description |
---|
TaskReportPBImpl() |
TaskReportPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto proto) |
public TaskReportPBImpl()
public TaskReportPBImpl(org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto proto)
public org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto getProto()
getProto
in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskReportProto>
public Counters getCounters()
getCounters
in interface TaskReport
public void setCounters(Counters counters)
setCounters
in interface TaskReport
public org.apache.hadoop.mapreduce.Counters getRawCounters()
getRawCounters
in interface TaskReport
public void setRawCounters(org.apache.hadoop.mapreduce.Counters rCounters)
setRawCounters
in interface TaskReport
public long getStartTime()
getStartTime
in interface TaskReport
public void setStartTime(long startTime)
setStartTime
in interface TaskReport
public long getFinishTime()
getFinishTime
in interface TaskReport
public void setFinishTime(long finishTime)
setFinishTime
in interface TaskReport
public TaskId getTaskId()
getTaskId
in interface TaskReport
public void setTaskId(TaskId taskId)
setTaskId
in interface TaskReport
public float getProgress()
getProgress
in interface TaskReport
public String getStatus()
getStatus
in interface TaskReport
public void setProgress(float progress)
setProgress
in interface TaskReport
public void setStatus(String status)
setStatus
in interface TaskReport
public TaskState getTaskState()
getTaskState
in interface TaskReport
public void setTaskState(TaskState taskState)
setTaskState
in interface TaskReport
public List<TaskAttemptId> getRunningAttemptsList()
getRunningAttemptsList
in interface TaskReport
public TaskAttemptId getRunningAttempt(int index)
getRunningAttempt
in interface TaskReport
public int getRunningAttemptsCount()
getRunningAttemptsCount
in interface TaskReport
public void addAllRunningAttempts(List<TaskAttemptId> runningAttempts)
addAllRunningAttempts
in interface TaskReport
public void addRunningAttempt(TaskAttemptId runningAttempts)
addRunningAttempt
in interface TaskReport
public void removeRunningAttempt(int index)
removeRunningAttempt
in interface TaskReport
public void clearRunningAttempts()
clearRunningAttempts
in interface TaskReport
public TaskAttemptId getSuccessfulAttempt()
getSuccessfulAttempt
in interface TaskReport
public void setSuccessfulAttempt(TaskAttemptId successfulAttempt)
setSuccessfulAttempt
in interface TaskReport
public List<String> getDiagnosticsList()
getDiagnosticsList
in interface TaskReport
public String getDiagnostics(int index)
getDiagnostics
in interface TaskReport
public int getDiagnosticsCount()
getDiagnosticsCount
in interface TaskReport
public void addAllDiagnostics(List<String> diagnostics)
addAllDiagnostics
in interface TaskReport
public void addDiagnostics(String diagnostics)
addDiagnostics
in interface TaskReport
public void removeDiagnostics(int index)
removeDiagnostics
in interface TaskReport
public void clearDiagnostics()
clearDiagnostics
in interface TaskReport
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.