Job.FailureReason, Job.Status| Constructor and Description |
|---|
JobImpl() |
JobImpl(long id) |
JobImpl(long id,
String creator,
String organization,
long version,
String jobType,
String operation,
List<String> arguments,
Job.Status status,
String createdHost,
String processingHost,
Date dateCreated,
Date dateStarted,
Date dateCompleted,
Long queueTime,
Long runTime,
String payload,
Long parentJobId,
Long rootJobId,
boolean dispatchable,
URI uri,
Float load) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<String> |
getArguments()
The arguments passed to the service and operation.
|
String |
getCreatedHost()
Gets the host that created this job.
|
String |
getCreator()
Gets the username of the subject responsible for creating the job initially.
|
Date |
getDateCompleted()
The date this job was completed
|
Date |
getDateCreated()
The date this job was created.
|
Date |
getDateStarted()
The date this job was started.
|
Job.FailureReason |
getFailureReason()
In the case of failure, returns whether the failure had to do with data or with processing.
|
long |
getId()
Gets the job identifier.
|
Float |
getJobLoad()
Gets the job's load.
|
String |
getJobType()
Gets the job type, which determines the type of service that runs the job.
|
String |
getOperation()
The operation type, which can be used by the service responsible for the job to determine the service method to
execute.
|
String |
getOrganization()
Returns the identifier of the organization that the creator is associated with.
|
Long |
getParentJobId()
Gets the parent job identifier, or null if there is no parent.
|
String |
getPayload()
Gets the serialized output that was produced by this job, or null if nothing was produced, or if it has yet to be
produced.
|
String |
getProcessingHost()
Gets the host responsible for running this job.
|
Long |
getQueueTime()
The number of milliseconds that this job has waited in a queue before execution.
|
Long |
getRootJobId()
Gets the root job identifier, or null if this is the root job.
|
Long |
getRunTime()
The number of milliseconds that this job took to execute.
|
int |
getSignature() |
Job.Status |
getStatus()
Gets the receipt's current
Job.Status |
URI |
getUri()
Gets the URI of this job, which can be used to check its status.
|
long |
getVersion()
Gets the version of this job.
|
int |
hashCode() |
boolean |
isDispatchable()
Gets whether this job may be dispatched.
|
void |
setArguments(List<String> arguments) |
void |
setCreator(String creator) |
void |
setDateCompleted(Date dateCompleted) |
void |
setDateCreated(Date dateCreated) |
void |
setDateStarted(Date dateStarted) |
void |
setDispatchable(boolean dispatchable) |
void |
setJobLoad(Float load) |
void |
setJobType(String jobType) |
void |
setOperation(String operation) |
void |
setOrganization(String organization) |
void |
setParentJobId(Long parentJobId) |
void |
setPayload(String payload) |
void |
setProcessingHost(String processingHost) |
void |
setQueueTime(Long queueTime) |
void |
setRunTime(Long runTime) |
void |
setStatus(Job.Status status) |
void |
setStatus(Job.Status status,
Job.FailureReason reason)
Sets the receipt's current
Job.Status along with the Job.FailureReason to indicate why - in the case of
failure - the job failed. |
String |
toString() |
public JobImpl()
public JobImpl(long id)
public JobImpl(long id,
String creator,
String organization,
long version,
String jobType,
String operation,
List<String> arguments,
Job.Status status,
String createdHost,
String processingHost,
Date dateCreated,
Date dateStarted,
Date dateCompleted,
Long queueTime,
Long runTime,
String payload,
Long parentJobId,
Long rootJobId,
boolean dispatchable,
URI uri,
Float load)
public long getId()
Jobpublic String getCreator()
JobgetCreator in interface Jobpublic void setCreator(String creator)
setCreator in interface Jobpublic String getOrganization()
JobgetOrganization in interface Jobpublic void setOrganization(String organization)
setOrganization in interface Jobpublic long getVersion()
JobgetVersion in interface Jobpublic String getJobType()
JobgetJobType in interface Jobpublic void setJobType(String jobType)
setJobType in interface Jobpublic String getOperation()
JobgetOperation in interface Jobpublic void setOperation(String operation)
setOperation in interface Jobpublic List<String> getArguments()
JobgetArguments in interface Jobpublic void setArguments(List<String> arguments)
setArguments in interface Jobpublic Job.Status getStatus()
JobJob.Statuspublic void setStatus(Job.Status status)
public void setStatus(Job.Status status, Job.FailureReason reason)
JobJob.Status along with the Job.FailureReason to indicate why - in the case of
failure - the job failed.public Job.FailureReason getFailureReason()
JobgetFailureReason in interface Jobpublic String getCreatedHost()
JobgetCreatedHost in interface Jobpublic String getProcessingHost()
JobgetProcessingHost in interface Jobpublic void setProcessingHost(String processingHost)
setProcessingHost in interface Jobpublic Date getDateCreated()
JobgetDateCreated in interface Jobpublic void setDateCreated(Date dateCreated)
setDateCreated in interface Jobpublic Date getDateStarted()
JobgetDateStarted in interface Jobpublic void setDateStarted(Date dateStarted)
setDateStarted in interface Jobpublic Date getDateCompleted()
JobgetDateCompleted in interface Jobpublic void setDateCompleted(Date dateCompleted)
setDateCompleted in interface Jobpublic Long getQueueTime()
JobgetQueueTime in interface Jobpublic void setQueueTime(Long queueTime)
setQueueTime in interface Jobpublic Long getRunTime()
JobgetRunTime in interface Jobpublic void setRunTime(Long runTime)
setRunTime in interface Jobpublic String getPayload()
JobgetPayload in interface Jobpublic void setPayload(String payload)
setPayload in interface Jobpublic int getSignature()
getSignature in interface Jobpublic Long getParentJobId()
JobgetParentJobId in interface Jobpublic void setParentJobId(Long parentJobId)
setParentJobId in interface Jobpublic Long getRootJobId()
JobgetRootJobId in interface Jobpublic boolean isDispatchable()
JobisDispatchable in interface Jobpublic void setDispatchable(boolean dispatchable)
setDispatchable in interface Jobpublic URI getUri()
Jobpublic Float getJobLoad()
JobgetJobLoad in interface Jobpublic void setJobLoad(Float load)
setJobLoad in interface JobCopyright © 2009–2021 Opencast Project. All rights reserved.