OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.rules.QueueConstrainer
Implementsosid.OsidConstrainer
Description

A QueueConstrainer describes the rules for constraining the provisioning requests in a queue.

MethodhasSizeLimit
Description

Tests if this queue limits the number of requests.

Returnboolean true 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_STATE hasSizeLimit() is false
CompliancemandatoryThis method must be implemented.
MethodrequiresProvisions
Description

Tests if a provision must exist before entering this queue.

Returnboolean true 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_STATE requiresProvisions() is false
CompliancemandatoryThis method must be implemented.
MethodgetRequiredProvisionPools
Description

Gets the pools for the required provisions.

Returnosid.provisioning.PoolListthe pools
ErrorsILLEGAL_STATE requiresProvisions() 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 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 .

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