public class JobInfoImpl extends Object implements JobInfo
org.ow2.proactive.scheduler.job.InternalJob#setJobInfo(JobInfo)
.
This will automatically put the job up to date.Constructor and Description |
---|
JobInfoImpl() |
JobInfoImpl(JobInfoImpl jobInfo) |
Modifier and Type | Method and Description |
---|---|
void |
clearTasksChanges() |
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.
|
List<ClientTaskState> |
getModifiedTasks() |
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.
|
Set<TaskId> |
getTasksSkipped()
Used as an argument for
SchedulerEvent.TASK_SKIPPED to
specify which tasks were skipped |
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 owner) |
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 |
setPriority(JobPriority priority) |
void |
setRemovedTime(long removedTime) |
void |
setScheduledTimeForRemoval(long scheduledTimeForRemoval) |
void |
setStartTime(long startTime) |
void |
setStatus(JobStatus status) |
void |
setSubmittedTime(long submittedTime) |
void |
setTasksChanges(ChangedTasksInfo changesInfo,
JobState job) |
void |
setToBeRemoved() |
void |
setTotalNumberOfTasks(int totalNumberOfTasks) |
void |
setVariables(Map<String,String> variables) |
String |
toString() |
public JobInfoImpl()
public JobInfoImpl(JobInfoImpl jobInfo)
public String getJobOwner()
getJobOwner
in interface JobInfo
public void setJobOwner(String owner)
public JobId getJobId()
public void setJobId(JobId jobId)
public long getFinishedTime()
getFinishedTime
in interface JobInfo
public void setFinishedTime(long finishedTime)
public long getRemovedTime()
getRemovedTime
in interface JobInfo
public void setRemovedTime(long removedTime)
public long getStartTime()
getStartTime
in interface JobInfo
public boolean isStarted()
public void setStartTime(long startTime)
public long getInErrorTime()
getInErrorTime
in interface JobInfo
-1
.public void setInErrorTime(long inErrorTime)
public long getSubmittedTime()
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()
getTotalNumberOfTasks
in interface JobInfo
public void setTotalNumberOfTasks(int totalNumberOfTasks)
public int getNumberOfFinishedTasks()
getNumberOfFinishedTasks
in interface JobInfo
public void setNumberOfFinishedTasks(int numberOfFinishedTasks)
public int getNumberOfPendingTasks()
getNumberOfPendingTasks
in interface JobInfo
public void setNumberOfPendingTasks(int numberOfPendingTasks)
public int getNumberOfRunningTasks()
getNumberOfRunningTasks
in interface JobInfo
public void setNumberOfRunningTasks(int numberOfRunningTasks)
public int getNumberOfFailedTasks()
getNumberOfFailedTasks
in interface JobInfo
public void setNumberOfFailedTasks(int numberOfFailedTasks)
public int getNumberOfFaultyTasks()
getNumberOfFaultyTasks
in interface JobInfo
public void setNumberOfFaultyTasks(int numberOfFaultyTasks)
public int getNumberOfInErrorTasks()
getNumberOfInErrorTasks
in interface JobInfo
public void setNumberOfInErrorTasks(int numberOfInErrorTasks)
public JobPriority getPriority()
getPriority
in interface JobInfo
public void setPriority(JobPriority priority)
public JobStatus getStatus()
public void setStatus(JobStatus status)
public boolean isToBeRemoved()
isToBeRemoved
in interface JobInfo
public void setToBeRemoved()
public String toString()
toString
in class Object
Object.toString()
public void setTasksChanges(ChangedTasksInfo changesInfo, JobState job)
public void clearTasksChanges()
public List<ClientTaskState> getModifiedTasks()
public Set<TaskId> getTasksSkipped()
SchedulerEvent.TASK_SKIPPED
to
specify which tasks were skippedpublic void setScheduledTimeForRemoval(long scheduledTimeForRemoval)
public long getScheduledTimeForRemoval()
JobInfo
getScheduledTimeForRemoval
in interface JobInfo
public Map<String,String> getGenericInformation()
JobInfo
getGenericInformation
in interface JobInfo
public Map<String,String> getVariables()
JobInfo
getVariables
in interface JobInfo