public interface QueueConstrainer extends OsidConstrainer
A QueueConstrainer
describes the rules for constraining
the provisioning requests in a queue.
Modifier and Type | Method and Description |
---|---|
QueueConstrainerRecord |
getQueueConstrainerRecord(Type queueConstrainerRecordType)
Gets the queue constrainer record corresponding to the given
QueueConstrainer record Type. |
IdList |
getRequiredProvisionPoolIds()
Gets the pool
Ids for the required provisions. |
PoolList |
getRequiredProvisionPools()
Gets the pools for the required provisions.
|
long |
getSizeLimit()
Gets the size limit of the queue.
|
boolean |
hasSizeLimit()
Tests if this queue limits the number of requests.
|
boolean |
requiresProvisions()
Tests if a provision must exist before entering this queue.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
boolean hasSizeLimit()
true
if a queue size limit is available,
false
otherwisemandatory
- This method must be implemented. long getSizeLimit()
IllegalStateException
- hasSizeLimit()
is false
mandatory
- This method must be implemented. boolean requiresProvisions()
true
if a provision is required, false
otherwisemandatory
- This method must be implemented. IdList getRequiredProvisionPoolIds()
Ids
for the required provisions. Ids
of the poolsIllegalStateException
- requiresProvisions()
is false
mandatory
- This method must be implemented. PoolList getRequiredProvisionPools() throws OperationFailedException
IllegalStateException
- requiresProvisions()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. QueueConstrainerRecord getQueueConstrainerRecord(Type queueConstrainerRecordType) throws OperationFailedException
QueueConstrainer
record Type.
This method is
used to retrieve an object implementing the requested record. The
queueConstrainerRecordType
may be the Type
returned in getRecordTypes()
or any of its
parents in a Type
hierarchy where
hasRecordType(queueConstrainerRecordType)
is true
.queueConstrainerRecordType
- the type of queue constrainer
record to retrieveNullArgumentException
-
queueConstrainerRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(queueConstrainerRecordType)
is
false
mandatory
- This method must be implemented.