OSID Logo
OSID Specifications
provisioning rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.rules.PoolProcessor
Implementsosid.OsidProcessor
Description

A PoolProcessor describes the rules for managing resource allocations out of a pool.

MethodallocatesByLeastUse
Description

Tests if allocations balance the usage by preferring the least used provisionables in the pool.

Returnboolean true if the least used provisionables are preferred, false otherwise
CompliancemandatoryThis method must be implemented.
MethodallocatesByMostUse
Description

Tests if allocations prefer the most used provisionables in the pool.

Returnboolean true if the most used provisionables are preferred, false otherwise
CompliancemandatoryThis method must be implemented.
MethodallocatesByLeastCost
Description

Tests if allocations prefer the cheapest provisionables.

Returnboolean true if the cheapest provisionables are preferred, false otherwise
CompliancemandatoryThis method must be implemented.
MethodallocatesByMostCost
Description

Tests if allocations prefer the most expensive provisionables.

Returnboolean true if the most expensive provisionables are prefsrred, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPoolProcessorRecord
Description

Gets the pool processor record corresponding to the given PoolProcessor record Type. This method is used to retrieve an object implementing the requested record. The poolProcessorRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(poolProcessorRecordType) is true .

Parametersosid.type.TypepoolProcessorRecordTypethe type of pool processor record to retrieve
Returnosid.provisioning.rules.records.PoolProcessorRecordthe pool processor record
ErrorsNULL_ARGUMENT poolProcessorRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(poolProcessorRecordType) is false
CompliancemandatoryThis method must be implemented.