public interface MappedJobQueue extends JobQueue
JobQueue that is aware of the different queues in
 the ResourceManager and allows for the manipulation of jobs on a
 queue-by-queue basis.| Modifier and Type | Method and Description | 
|---|---|
| String | addJob(JobSpec spec)Persists a  JobSpecto the queue. | 
| void | addQueue(String queueName)Add a queue with the given name. | 
| JobSpec | getNextJob(String queueName)Gets the next  JobSpecin the queue with the given name. | 
| List<JobSpec> | getQueuedJobs(String queueName)Gets a list of all queued jobs that belong to the queue with the given
 name. | 
| int | getSize(String queueName)Gets the number of jobs in the queue with the given name. | 
| boolean | isEmpty(String queueName)Returns a boolean value representing whether or not the job queue contains
 jobs in the given queue. | 
| void | promoteJob(JobSpec spec) | 
| void | promoteKeyValPair(String key,
                 String val) | 
| void | removeJob(JobSpec spec)Removes the  JobSpecwith the given ID from the queue. | 
| void | removeQueue(String queueName)Remove the queue with the given name. | 
| String | requeueJob(JobSpec spec)Re-adds a  JobSpecto the back of the queue. | 
getCapacity, getJobRepository, getNextJob, getQueuedJobs, getSize, isEmpty, purgeboolean isEmpty(String queueName) throws JobQueueException
queueName - The name of the queue which you are checking.JobQueueException - If the given queue name is null or if no queue with that name
           exists.JobSpec getNextJob(String queueName) throws JobQueueException, JobRepositoryException
JobSpec in the queue with the given name.queueName - The name of the queue from which the next JobSpec will be
          returned.JobSpec from the jobqueue belonging to the queue
         with the given name.JobQueueException - If the given queue name is null or if no queue with that name
           exists.JobRepositoryExceptionint getSize(String queueName) throws JobQueueException
queueName - The name of the queue whos size will be given.JobSpecs in the queue with the given name.JobQueueException - If the given queue name is null or if no queue with that name
           exists.void removeJob(JobSpec spec) throws JobQueueException
JobSpec with the given ID from the queue.id - The ID of the JobSpec that will be removed.JobQueueException - If no JobSpec has the given ID.void addQueue(String queueName) throws JobQueueException
queueName - The name of the queue to be created.JobQueueException - If the given queue name is null or if a queue with the given name
           already exists.void removeQueue(String queueName) throws JobQueueException
queueName - The name of the queue to be removed.JobQueueException - If the given queue name is null or if no queue with the given
           name exists.List<JobSpec> getQueuedJobs(String queueName) throws JobQueueException, JobRepositoryException
queueName - The name of the queue whose members will be given.List of queued s from the given queue.JobQueueException - If the given queue name is null or if no queue with the given
           name exists.JobRepositoryExceptionString addJob(JobSpec spec) throws JobQueueException
JobQueueJobSpec to the queue.addJob in interface JobQueuespec - The JobSpec to persist.JobQueueException - If there is any error queueing the JobSpec.String requeueJob(JobSpec spec) throws JobQueueException
JobQueueJobSpec to the back of the queue.requeueJob in interface JobQueuespec - The JobSpec to re-add.JobQueueException - If there is any error requeueing the JobSpec.void promoteJob(JobSpec spec) throws JobQueueException
JobQueueExceptionvoid promoteKeyValPair(String key, String val) throws JobQueueException, JobRepositoryException
Copyright © 1999–2017 Apache OODT. All rights reserved.