Package org.eclipse.scanning.event.util
Class SubmissionQueueUtils
java.lang.Object
org.eclipse.scanning.event.util.SubmissionQueueUtils
This class can be used to get information about the submission queue e.g. whether there it is currently empty,
or whether there is a job currently running.
TODO: refactor - add isQueueEmpty method to IJobQueue?
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanReturns whether there is a job running or pending.static booleanstatic booleanReturns whether the submission queue is currently running, i.e.
-
Method Details
-
isJobRunningOrPending
public static boolean isJobRunningOrPending()Returns whether there is a job running or pending. This is the case if either a job is running, or the queue is running and not empty.- Returns:
trueif a job is running or pending,falseotherwise
-
isQueueRunning
Returns whether the submission queue is currently running, i.e. it's state isQueueStatus.RUNNING, iffalseit may be eitherQueueStatus.PAUSEDorQueueStatus.STOPPED.- Returns:
trueif the submission queue is running,falseotherwise- Throws:
EventException
-
isQueueEmpty
- Throws:
EventException
-
isJobRunning
- Throws:
EventException
-