public class TaskInfoImpl extends Object implements TaskInfo
Constructor and Description |
---|
TaskInfoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getExecutionDuration()
Get the execution duration of the task.
|
String |
getExecutionHostName()
Get the last execution HostName of the task.
|
String[] |
getExecutionHostNameList()
To get the list of execution hosts name.
|
long |
getFinishedTime()
To get the finishedTime
|
long |
getInErrorTime()
To get the time at which the Task has been terminated for the last time (last attempt).
|
JobId |
getJobId()
To get the jobId
|
JobInfo |
getJobInfo()
To get the jobInfo
|
String |
getName()
Get the name of the task
|
int |
getNumberOfExecutionLeft()
Get the number of execution left.
|
int |
getNumberOfExecutionOnFailureLeft()
Get the numberOfExecutionOnFailureLeft value.
|
int |
getProgress()
Return the latest progress value for this task.
|
long |
getScheduledTime()
Get the scheduled time.
|
long |
getStartTime()
To get the startTime
|
TaskStatus |
getStatus()
To get the taskStatus
|
TaskId |
getTaskId()
To get the taskId
|
void |
setExecutionDuration(long executionDuration) |
void |
setExecutionHostName(String executionHostName) |
void |
setFinishedTime(long finishedTime) |
void |
setInErrorTime(long inErrorTime) |
void |
setJobId(JobId jobId) |
void |
setJobInfo(JobInfo jobInfo) |
void |
setName(String name) |
void |
setNumberOfExecutionLeft(int numberOfExecutionLeft) |
void |
setNumberOfExecutionOnFailureLeft(int numberOfExecutionOnFailureLeft) |
void |
setProgress(int progress) |
void |
setStartTime(long startTime) |
void |
setStatus(TaskStatus status) |
void |
setTaskId(TaskId taskId) |
public void setExecutionDuration(long executionDuration)
public long getExecutionDuration()
TaskInfo
getExecutionDuration
in interface TaskInfo
public void setExecutionHostName(String executionHostName)
public String getExecutionHostName()
TaskInfo
getExecutionHostName
in interface TaskInfo
public String[] getExecutionHostNameList()
TaskInfo
getExecutionHostNameList
in interface TaskInfo
public void setFinishedTime(long finishedTime)
public long getFinishedTime()
TaskInfo
getFinishedTime
in interface TaskInfo
public void setJobId(JobId jobId)
public void setJobInfo(JobInfo jobInfo)
public JobInfo getJobInfo()
TaskInfo
getJobInfo
in interface TaskInfo
public void setName(String name)
public String getName()
TaskInfo
public void setNumberOfExecutionLeft(int numberOfExecutionLeft)
public int getNumberOfExecutionLeft()
TaskInfo
getNumberOfExecutionLeft
in interface TaskInfo
public void setNumberOfExecutionOnFailureLeft(int numberOfExecutionOnFailureLeft)
public int getNumberOfExecutionOnFailureLeft()
TaskInfo
getNumberOfExecutionOnFailureLeft
in interface TaskInfo
public void setProgress(int progress)
public int getProgress()
TaskInfo
getProgress
in interface TaskInfo
public void setStartTime(long startTime)
public long getStartTime()
TaskInfo
getStartTime
in interface TaskInfo
public long getInErrorTime()
TaskInfo
getInErrorTime
in interface TaskInfo
public void setInErrorTime(long inErrorTime)
public void setStatus(TaskStatus status)
public TaskStatus getStatus()
TaskInfo
public void setTaskId(TaskId taskId)
public long getScheduledTime()
TaskInfo
getScheduledTime
in interface TaskInfo