public class QueueAttributes
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
QueueAttributes(com.uc4.util.XMLDocument doc) |
Modifier and Type | Method and Description |
---|---|
void |
addExceptionCondition(QueueExceptionCondition cond)
Adds a new
QueueExceptionCondition to the list of exceptions. |
void |
clearExceptionConditons()
Clears the list of
ExceptionConditons . |
java.util.Iterator<QueueExceptionCondition> |
exceptionIterator()
The returned
java.util.Iterator can be used to read the list of
exception conditions of this Queue. |
int |
getExceptionCount() |
int |
getMaxSlots() |
int |
getPriority()
Priority with which this Queue should be executed in UC4.
|
UC4TimezoneName |
getTimezone() |
boolean |
isConsiderERT() |
void |
setConsiderERT(boolean considerERT)
Sets a flag to define if the Estimated Runtime should be considered for the calculation.
|
void |
setMaxSlots(int maxSlots)
Sets the maximum number of slots for this Queue.
|
void |
setPriority(int priority)
Priority with which this Queue should be executed in UC4.
|
void |
setTimezone(UC4TimezoneName timezone)
Sets the timezone of the Queue object.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement) |
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement)
public int getExceptionCount()
QueueExceptionCondition
for this Queue.public java.util.Iterator<QueueExceptionCondition> exceptionIterator()
java.util.Iterator
can be used to read the list of
exception conditions of this Queue.
The remove
method of the Iterator can be used to remove date/time conditions.QueueExceptionCondition
public void clearExceptionConditons()
ExceptionConditons
.public void addExceptionCondition(QueueExceptionCondition cond)
QueueExceptionCondition
to the list of exceptions.
The new element is added at the end of the list.cond
- Instance of a QueueExceptionCondition classpublic int getMaxSlots()
-1
if unlimited.public void setMaxSlots(int maxSlots)
-1
can be used to set max slots to unlimited.maxSlots
- Positive Integer between 0 and 100000 or -1 for unlimitedpublic int getPriority()
public void setPriority(int priority)
priority
- Prioritypublic boolean isConsiderERT()
public void setConsiderERT(boolean considerERT)
considerERT
- true if the Estimated Runtime should be considered for the calculation, false otherwisepublic UC4TimezoneName getTimezone()
public void setTimezone(UC4TimezoneName timezone)
timezone
- Timezone