OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Interfaceosid.provisioning.rules.QueueConstrainer
Implementsosid.OsidConstrainer
Used Byosid.provisioning.rules.QueueConstrainerAdminSession
osid.provisioning.rules.QueueConstrainerList
osid.provisioning.rules.QueueConstrainerLookupSession
Description

A QueueConstrainer manages the constraints of a Queue .

MethodhasSizeLimit
Description

Tests if this queue limits the number of requests.

Returnbooleantrue if a queue size limit is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSizeLimit
Description

Gets the size limit of the queue.

Returncardinalthe size limit
ErrorsILLEGAL_STATEhasSizeLimit() is false
CompliancemandatoryThis method must be implemented.
MethodrequiresProvisions
Description

Tests if a provision must exist before entering this queue.

Returnbooleantrue if a provision is required, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRequiredProvisionPoolIds
Description

Gets the pool Ids for the required provisions.

Returnosid.id.IdListthe Ids of the pools
ErrorsILLEGAL_STATErequiresProvisions() is false
CompliancemandatoryThis method must be implemented.
MethodgetRequiredProvisionPools
Description

Gets the pools for the required provisions.

Returnosid.provisioning.PoolListthe pools
ErrorsILLEGAL_STATErequiresProvisions() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetQueueConstrainerRecord
Description

Gets the queue constrainer record corresponding to the given QueueConstrainer record Type . This method ie 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.

Parametersosid.type.TypequeueConstrainerRecordTypethe type of queue constrainer record to retrieve
Returnosid.provisioning.rules.records.QueueConstrainerRecordthe queue constrainer record
ErrorsNULL_ARGUMENTqueueConstrainerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(queueConstrainerRecordType) is false
CompliancemandatoryThis method must be implemented.