OSID Logo
OSID Specifications
provisioning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.provisioning.BrokerQuery
Implementsosid.OsidGovernatorQuery
Description

This is the query for searching brokers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchQueueId
Description

Sets the queue Id for this query.

Parametersosid.id.IdqueueIdthe queue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT queueId is null
CompliancemandatoryThis method must be implemented.
MethodclearQueueIdTerms
Description

Clears the queue Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsQueueQuery
Description

Tests if a QueueQuery is available.

Returnboolean true if a queue query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetQueueQuery
Description

Gets the query for a queue. Multiple retrievals produce a nested OR term.

Returnosid.provisioning.QueueQuerythe queue query
ErrorsUNIMPLEMENTED supportsQueueQuery() is false
ComplianceoptionalThis method must be implemented if supportsQueueQuery() is true.
MethodmatchAnyQueue
Description

Matches brokers with any queue.

Parametersbooleanmatch true to match brokers with any queue, false to match brokers with no queue
CompliancemandatoryThis method must be implemented.
MethodclearQueueTerms
Description

Clears the queue query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPoolId
Description

Sets the pool Id for this query.

Parametersosid.id.IdpoolIdthe pool Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT poolId is null
CompliancemandatoryThis method must be implemented.
MethodclearPoolIdTerms
Description

Clears the pool Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPoolQuery
Description

Tests if a PoolQuery is available.

Returnboolean true if a pool query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPoolQuery
Description

Gets the query for a pool. Multiple retrievals produce a nested OR term.

Returnosid.provisioning.PoolQuerythe pool query
ErrorsUNIMPLEMENTED supportsPoolQuery() is false
ComplianceoptionalThis method must be implemented if supportsPoolQuery() is true.
MethodmatchAnyPool
Description

Matches brokers with any pool.

Parametersbooleanmatch true to match brokers with any pool, false to match brokers with no pool
CompliancemandatoryThis method must be implemented.
MethodclearPoolTerms
Description

Clears the pool query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistributorId
Description

Sets the distributor Id for this query to match queues assigned to distributors.

Parametersosid.id.IddistributorIdthe distributor Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT distributorId is null
CompliancemandatoryThis method must be implemented.
MethodclearDistributorIdTerms
Description

Clears the distributor Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDistributorQuery
Description

Tests if a DistributorQuery is available.

Returnboolean true if a distributor query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDistributorQuery
Description

Gets the query for a distributor. Multiple retrievals produce a nested OR term.

Returnosid.provisioning.DistributorQuerythe distributor query
ErrorsUNIMPLEMENTED supportsDistributorQuery() is false
ComplianceoptionalThis method must be implemented if supportsDistributorQuery() is true.
MethodclearDistributorTerms
Description

Clears the distributor query terms.

CompliancemandatoryThis method must be implemented.
MethodgetBrokerQueryRecord
Description

Gets the broker query record corresponding to the given Broker record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypebrokerRecordTypea broker record type
Returnosid.provisioning.records.BrokerQueryRecordthe broker query record
ErrorsNULL_ARGUMENT brokerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(brokerRecordType) is false
CompliancemandatoryThis method must be implemented.