public class JobInfoImpl extends Object implements JobInfo
Constructor and Description |
---|
JobInfoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getFinishedTime()
Returns the time at which the Job has finished.
|
Map<String,String> |
getGenericInformation()
Returns the generic information Map
|
long |
getInErrorTime()
Returns the time at which a Job was seen as in-error
for the last time.
|
JobId |
getJobId()
Returns an identifier that uniquely identifies the Job
within a Scheduler instance.
|
String |
getJobOwner()
Returns the name of the Job owner.
|
long |
getLastUpdatedTime()
Returns the time at which the last updated happened on the Job.
|
int |
getNumberOfFailedTasks()
Returns the number of tasks managed by the Job
that are in a failed state due to a resource failure.
|
int |
getNumberOfFaultyTasks()
Returns the number of tasks managed by the Job
that are in a faulty state.
|
int |
getNumberOfFinishedTasks()
Returns the number of tasks managed by the Job
which are finished.
|
int |
getNumberOfInErrorTasks()
Returns the number of tasks managed by the Job
that are in an in-error state.
|
int |
getNumberOfPendingTasks()
Returns the number of tasks managed by the Job
which are pending.
|
int |
getNumberOfRunningTasks()
Returns the number of tasks managed by the Job
which are running.
|
JobPriority |
getPriority()
Returns the priority of the Job.
|
long |
getRemovedTime()
Returns the time at which the Job has been marked as removed.
|
long |
getScheduledTimeForRemoval()
Returns the scheduled time for removal.
|
long |
getStartTime()
Returns the time at which the Job has started.
|
JobStatus |
getStatus()
Return the status of the job.
|
long |
getSubmittedTime()
Returns the time at which the Job was submitted.
|
int |
getTotalNumberOfTasks()
Returns the number of tasks managed by the Job.
|
Map<String,String> |
getVariables()
Returns the variables Map
|
boolean |
isStarted() |
boolean |
isToBeRemoved()
Returns a boolean that indicates whether the job
is marked for removal or not.
|
void |
setFinishedTime(long finishedTime) |
void |
setGenericInformation(Map<String,String> genericInformation) |
void |
setInErrorTime(long inErrorTime) |
void |
setJobId(JobId jobId) |
void |
setJobOwner(String jobOwner) |
void |
setJobPriority(JobPriority jobPriority) |
void |
setJobStatus(JobStatus jobStatus) |
void |
setLastUpdatedTime(long lastUpdatedTime) |
void |
setNumberOfFailedTasks(int numberOfFailedTasks) |
void |
setNumberOfFaultyTasks(int numberOfFaultyTasks) |
void |
setNumberOfFinishedTasks(int numberOfFinishedTasks) |
void |
setNumberOfInErrorTasks(int numberOfInErrorTasks) |
void |
setNumberOfPendingTasks(int numberOfPendingTasks) |
void |
setNumberOfRunningTasks(int numberOfRunningTasks) |
void |
setRemovedTime(long removedTime) |
void |
setScheduledTimeForRemoval(long scheduledTimeForRemoval) |
void |
setStartTime(long startTime) |
void |
setSubmittedTime(long submittedTime) |
void |
setToBeRemoved() |
void |
setTotalNumberOfTasks(int totalNumberOfTasks) |
void |
setVariables(Map<String,String> variables) |
public void setFinishedTime(long finishedTime)
public long getFinishedTime()
JobInfo
getFinishedTime
in interface JobInfo
public void setJobId(JobId jobId)
public JobId getJobId()
JobInfo
public void setJobOwner(String jobOwner)
public String getJobOwner()
JobInfo
getJobOwner
in interface JobInfo
public void setNumberOfFinishedTasks(int numberOfFinishedTasks)
public int getNumberOfFinishedTasks()
JobInfo
getNumberOfFinishedTasks
in interface JobInfo
public void setNumberOfPendingTasks(int numberOfPendingTasks)
public int getNumberOfPendingTasks()
JobInfo
getNumberOfPendingTasks
in interface JobInfo
public void setNumberOfRunningTasks(int numberOfRunningTasks)
public int getNumberOfRunningTasks()
JobInfo
getNumberOfRunningTasks
in interface JobInfo
public void setJobPriority(JobPriority jobPriority)
public int getNumberOfFailedTasks()
JobInfo
getNumberOfFailedTasks
in interface JobInfo
public void setNumberOfFailedTasks(int numberOfFailedTasks)
public int getNumberOfFaultyTasks()
JobInfo
getNumberOfFaultyTasks
in interface JobInfo
public void setNumberOfFaultyTasks(int numberOfFaultyTasks)
public int getNumberOfInErrorTasks()
JobInfo
getNumberOfInErrorTasks
in interface JobInfo
public void setNumberOfInErrorTasks(int numberOfInErrorTasks)
public JobPriority getPriority()
JobInfo
getPriority
in interface JobInfo
public void setRemovedTime(long removedTime)
public long getRemovedTime()
JobInfo
getRemovedTime
in interface JobInfo
public void setStartTime(long startTime)
public long getStartTime()
JobInfo
getStartTime
in interface JobInfo
public boolean isStarted()
public long getInErrorTime()
JobInfo
getInErrorTime
in interface JobInfo
-1
.public void setInErrorTime(long inErrorTime)
public JobStatus getStatus()
JobInfo
public void setJobStatus(JobStatus jobStatus)
public long getSubmittedTime()
JobInfo
getSubmittedTime
in interface JobInfo
public void setSubmittedTime(long submittedTime)
public long getLastUpdatedTime()
JobInfo
getLastUpdatedTime
in interface JobInfo
public void setLastUpdatedTime(long lastUpdatedTime)
public int getTotalNumberOfTasks()
JobInfo
getTotalNumberOfTasks
in interface JobInfo
public void setTotalNumberOfTasks(int totalNumberOfTasks)
public boolean isToBeRemoved()
JobInfo
isToBeRemoved
in interface JobInfo
public void setToBeRemoved()
public long getScheduledTimeForRemoval()
JobInfo
getScheduledTimeForRemoval
in interface JobInfo
public void setScheduledTimeForRemoval(long scheduledTimeForRemoval)
public Map<String,String> getGenericInformation()
JobInfo
getGenericInformation
in interface JobInfo
public Map<String,String> getVariables()
JobInfo
getVariables
in interface JobInfo