Interface BrokerProcessor
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidProcessor, OsidRule
A BrokerProcessor manages the operation of a Broker .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this broker allows compound requests usingRequestTransactions.booleanTests if this broker allows exchanging of provisions.getBrokerProcessorRecord(Type brokerProcessorRecordType) Gets the broker processor record corresponding to the givenBrokerProcessorrecordType.Gets the fixed lease duration.booleanTests if leases from this broker have fixed durations.booleanTests if this broker provides leases.booleanTests if provisions from this broker must be returned.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
isLeasing
boolean isLeasing()Tests if this broker provides leases. A lease is a temporary provision that expires or must be returned.- Returns:
- true if this is a leasing broker, false if the brokered provisions are permanent
- Compliance:
mandatory- This method must be implemented.
-
hasFixedLeaseDuration
boolean hasFixedLeaseDuration()Tests if leases from this broker have fixed durations.- Returns:
trueif leases have fixed durations,falseotherwise- Throws:
IllegalStateException-isLeasing()isfalse- Compliance:
mandatory- This method must be implemented.
-
getFixedLeaseDuration
Duration getFixedLeaseDuration()Gets the fixed lease duration.- Returns:
- the fixed lease duration
- Throws:
IllegalStateException-hasFixedLeaseDuration()isfalse- Compliance:
mandatory- This method must be implemented.
-
mustReturnProvisions
boolean mustReturnProvisions()Tests if provisions from this broker must be returned.- Returns:
trueif this broker requires provision return,falseotherwise- Throws:
IllegalStateException-isLeasing()isfalse- Compliance:
mandatory- This method must be implemented.
-
allowsProvisionExchange
boolean allowsProvisionExchange()Tests if this broker allows exchanging of provisions.- Returns:
trueif provision exchange is permitted,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
allowsCompoundRequests
boolean allowsCompoundRequests()Tests if this broker allows compound requests usingRequestTransactions.- Returns:
trueif compound requests are permitted,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBrokerProcessorRecord
BrokerProcessorRecord getBrokerProcessorRecord(Type brokerProcessorRecordType) throws OperationFailedException Gets the broker processor record corresponding to the givenBrokerProcessorrecordType. This method ie used to retrieve an object implementing the requested record. ThebrokerProcessorRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(brokerProcessorRecordType)istrue.- Parameters:
brokerProcessorRecordType- the type of broker processor record to retrieve- Returns:
- the broker processor record
- Throws:
NullArgumentException-brokerProcessorRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(brokerProcessorRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-