Interface Pool
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidGovernator, OsidObject, Subjugateable
A Pool represents a set of Resources to be provisioned.
The rule indicates how resources are provisioned.
-
Method Summary
Modifier and TypeMethodDescriptionGets the broker.Gets the brokerId.getPoolRecord(Type poolRecordType) Gets the pool record corresponding to the givenPoolrecordType.This method is used to retrieve an object implementing the requested record.longgetSize()Gets the size of the pool.Gets theIdsof the suppliers.Gets the suppliers.booleanhasSize()Tests if a pool size is available.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.
-
Method Details
-
getBrokerId
Id getBrokerId()Gets the brokerId.- Returns:
- the broker
Id - Compliance:
mandatory- This method must be implemented.
-
getBroker
Gets the broker.- Returns:
- the broker
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSupplierIds
IdList getSupplierIds()Gets theIdsof the suppliers.- Returns:
- the supplier
Ids - Compliance:
mandatory- This method must be implemented.
-
getSuppliers
Gets the suppliers.- Returns:
- the suppliers
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasSize
boolean hasSize()Tests if a pool size is available.- Returns:
trueif a queue size is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSize
long getSize()Gets the size of the pool.- Returns:
- the size
- Throws:
IllegalStateException-hasSize()isfalse- Compliance:
mandatory- This method must be implemented.
-
getPoolRecord
Gets the pool record corresponding to the givenPoolrecordType.This method is used to retrieve an object implementing the requested record. ThepoolRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(poolRecordType)istrue.- Parameters:
poolRecordType- the type of pool record to retrieve- Returns:
- the pool record
- Throws:
NullArgumentException-poolRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(poolRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-