public interface Pool extends OsidGovernator, Subjugateable
A Pool
represents a set of Resources
to
be provisioned. The rule indicates how resources are provisioned.
Modifier and Type | Method and Description |
---|---|
Broker |
getBroker()
Gets the broker.
|
Id |
getBrokerId()
Gets the broker
Id. |
PoolRecord |
getPoolRecord(Type poolRecordType)
Gets the pool record corresponding to the given
Pool
record Type. |
long |
getSize()
Gets the size of the pool.
|
boolean |
hasSize()
Tests if a pool size is available.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
getBranding, getBrandingIds, getLicense, getProvider, getProviderId
Id getBrokerId()
Id.
Id
mandatory
- This method must be implemented. Broker getBroker() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean hasSize()
true
if a queue size is available, false
otherwisemandatory
- This method must be implemented. long getSize()
IllegalStateException
- hasSize()
is
false
mandatory
- This method must be implemented. PoolRecord getPoolRecord(Type poolRecordType) throws OperationFailedException
Pool
record Type.
This method is used to retrieve an object
implementing the requested record. The poolRecordType
may be the Type
returned in getRecordTypes()
or any of its parents in a Type
hierarchy where
hasRecordType(poolRecordType)
is true
.poolRecordType
- the type of pool record to retrieveNullArgumentException
- poolRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(poolRecordType)
is false
mandatory
- This method must be implemented.