Interface Queue
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidGovernator, OsidObject, Subjugateable
A Queue is a list of resources in line for a provision. The
rule indicates how requests are processed in this queue.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this queue allows a specific provisionable to be requested.Gets the broker.Gets the brokerId.getEWA()Gets the estimated waiting time for new requests in this queue.Gets theIdsof the managers.Gets the managers.getQueueRecord(Type queueRecordType) Gets the queue record corresponding to the givenQueuerecordType.This method is used to retrieve an object implementing the requested record.longgetSize()Gets the size of the queue.booleanhasEWA()Tests if an estimated waiting time is available for this queue.booleanhasSize()Tests if a queue 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.
-
getManagerIds
IdList getManagerIds()Gets theIdsof the managers.- Returns:
- the manager
Ids - Compliance:
mandatory- This method must be implemented.
-
getManagers
Gets the managers.- Returns:
- the managers
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasSize
boolean hasSize()Tests if a queue 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 queue.- Returns:
- the size
- Throws:
IllegalStateException-hasSize()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasEWA
boolean hasEWA()Tests if an estimated waiting time is available for this queue.- Returns:
trueif an ewa is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEWA
Duration getEWA()Gets the estimated waiting time for new requests in this queue.- Returns:
- the ewa
- Throws:
IllegalStateException-hasEWA()isfalse- Compliance:
mandatory- This method must be implemented.
-
canSpecifyProvisionable
boolean canSpecifyProvisionable()Tests if this queue allows a specific provisionable to be requested.- Returns:
trueif provisionables can be specified,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getQueueRecord
Gets the queue record corresponding to the givenQueuerecordType.This method is used to retrieve an object implementing the requested record. ThequeueRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(queueRecordType)istrue.- Parameters:
queueRecordType- the type of queue record to retrieve- Returns:
- the queue record
- Throws:
NullArgumentException-queueRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(queueRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-