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

A BrokerProcessor describes the rules for managing broker operations.

MethodisLeasing
Description

Tests if this broker provides leases. A lease is a temporary provision that expires or must be returned.

Returnbooleantrue if this is a leasing broker, false if the brokered provisions are permanent
CompliancemandatoryThis method must be implemented.
MethodhasFixedLeaseDuration
Description

Tests if leases from this broker have fixed durations.

Returnboolean true if leases have fixed durations, false otherwise
ErrorsILLEGAL_STATE isLeasing() is false
CompliancemandatoryThis method must be implemented.
MethodgetFixedLeaseDuration
Description

Gets the fixed lease duration.

Returnosid.calendaring.Durationthe fixed lease duration
ErrorsILLEGAL_STATE hasFixedLeaseDuration() is false
CompliancemandatoryThis method must be implemented.
MethodmustReturnProvisions
Description

Tests if provisions from this broker must be returned.

Returnboolean true if this broker requires provision return, false otherwise
ErrorsILLEGAL_STATE isLeasing() is false
CompliancemandatoryThis method must be implemented.
MethodallowsProvisionExchange
Description

Tests if this broker allows exchanging of provisions.

Returnboolean true if provision exchange is permitted, false otherwise
CompliancemandatoryThis method must be implemented.
MethodallowsCompoundRequests
Description

Tests if this broker allows compound requests using RequestTransactions.

Returnboolean true if compound requests are permitted, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBrokerProcessorRecord
Description

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

Parametersosid.type.TypebrokerProcessorRecordTypethe type of broker processor record to retrieve
Returnosid.provisioning.rules.records.BrokerProcessorRecordthe broker processor record
ErrorsNULL_ARGUMENT brokerProcessorRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(brokerProcessorRecordType) is false
CompliancemandatoryThis method must be implemented.