Interface QueueStatus
-
public interface QueueStatus
QueueStatus contains status information for a specific queue.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XenonException
getException()
Get the exception produced by the queue, ornull
ifhasException()
returnsfalse
.java.lang.String
getQueueName()
Get the queue name.Scheduler
getScheduler()
Get the Scheduler that produced this QueueStatus.java.util.Map<java.lang.String,java.lang.String>
getSchedulerSpecificInformation()
Get scheduler specific information on the queue.boolean
hasException()
Did the queue produce an exception ?void
maybeThrowException()
Throws the exception produced by the queue if it exists.
-
-
-
Method Detail
-
getScheduler
Scheduler getScheduler()
Get the Scheduler that produced this QueueStatus.- Returns:
- the Scheduler.
-
getQueueName
java.lang.String getQueueName()
Get the queue name.- Returns:
- the queue name.
-
hasException
boolean hasException()
Did the queue produce an exception ?- Returns:
- if the queue produced an exception ?
-
getException
XenonException getException()
Get the exception produced by the queue, ornull
ifhasException()
returnsfalse
. SeemaybeThrowException()
for the possible exceptions.- Returns:
- the exception.
-
maybeThrowException
void maybeThrowException() throws XenonException
Throws the exception produced by the queue if it exists. Otherwise continue.- Throws:
NoSuchQueueException
- if the requested queue does not existXenonException
- if an I/O error occurred.
-
getSchedulerSpecificInformation
java.util.Map<java.lang.String,java.lang.String> getSchedulerSpecificInformation()
Get scheduler specific information on the queue.- Returns:
- Scheduler specific information on the queue.
-
-