public interface Job
| Modifier and Type | Interface and Description |
|---|---|
static class |
Job.FailureReason
Reason for failure
|
static class |
Job.Status
The status of the job that this receipt represents
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 created) |
void |
setDateStarted(Date started) |
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. |
long getId()
String getCreator()
void setCreator(String creator)
String getOrganization()
void setOrganization(String organization)
long getVersion()
String getJobType()
void setJobType(String jobType)
String getOperation()
void setOperation(String operation)
List<String> getArguments()
Job.Status getStatus()
Job.Statusvoid setStatus(Job.Status status)
void setStatus(Job.Status status, Job.FailureReason reason)
Job.Status along with the Job.FailureReason to indicate why - in the case of
failure - the job failed.status - the status to setreason - failure reasonJob.FailureReason getFailureReason()
String getCreatedHost()
String getProcessingHost()
void setProcessingHost(String processingHost)
Date getDateCreated()
void setDateCreated(Date created)
Date getDateStarted()
void setDateStarted(Date started)
Long getQueueTime()
void setQueueTime(Long queueTime)
Long getRunTime()
void setRunTime(Long runTime)
Date getDateCompleted()
void setDateCompleted(Date dateCompleted)
String getPayload()
void setPayload(String payload)
int getSignature()
Long getParentJobId()
void setParentJobId(Long parentJobId)
Long getRootJobId()
boolean isDispatchable()
void setDispatchable(boolean dispatchable)
URI getUri()
Float getJobLoad()
void setJobLoad(Float load)
Copyright © 2009–2020 Opencast Project. All rights reserved.