public interface JobProducer
| Modifier and Type | Method and Description |
|---|---|
void |
acceptJob(Job job)
Asks the job producer to handle the given job using the provided operation and list of arguments.
|
long |
countJobs(Job.Status status)
Get the number of jobs in a current status on all nodes.
|
String |
getJobType()
The type of jobs that this producer creates.
|
boolean |
isReadyToAccept(Job job)
Whether the job can be accepted.
|
boolean |
isReadyToAcceptJobs(String operation)
Whether new jobs can be accepted in general.
|
String getJobType()
long countJobs(Job.Status status) throws ServiceRegistryException
ServiceRegistryException - if an error occurs while communicating with the backing data sourcevoid acceptJob(Job job) throws ServiceRegistryException
job - the job being dispatchedServiceRegistryException - if the producer was unable to start work as requestedboolean isReadyToAcceptJobs(String operation) throws ServiceRegistryException
operation - operationServiceRegistryException - if the producer was unable to start work as requestedboolean isReadyToAccept(Job job) throws ServiceRegistryException, UndispatchableJobException
job - the job being dispatchedServiceRegistryException - if the producer was unable to start work as requestedUndispatchableJobException - if the job will never be accepted because it is unacceptableCopyright © 2009–2021 Opencast Project. All rights reserved.