Interface definition for storage drivers.
Data plane storage drivers are responsible for implementing the core functionality of the system.
Connection information and driver-specific options are loaded from the config file or the pool catalog.
Parameters: |
|
---|
Returns storage’s capabilities.
Returns the driver’s claim controller.
Close connections to the backend.
Perform manual garbage collection of claims and messages.
This method can be overridden in order to provide a trigger that can be called by so-called “garbage collection” scripts that are required by some drivers.
By default, this method does nothing.
Return the health status of service.
Check whether the storage is ready.
Returns the driver’s message controller.
Returns the driver’s subscription controller.
Interface definition for control plane storage drivers.
Storage drivers that work at the control plane layer allow one to modify aspects of the functionality of the system. This is ideal for administrative purposes.
Allows access to the pool registry through a catalogue and a pool controller.
Parameters: |
|
---|
Returns the driver’s catalogue controller.
Close connections to the backend.
Returns storage’s flavor management controller.
Returns storage’s pool management controller.
Returns the driver’s queue controller.
This class is responsible for managing queues.
Queue operations include CRUD, monitoring, etc.
Storage driver implementations of this class should be capable of handling high workloads and huge numbers of queues.
Base method for queue creation.
Parameters: |
|
---|---|
Returns: | True if a queue was created and False if it was updated. |
Base method for deleting a queue.
Parameters: |
|
---|
Base method for testing queue existence.
Parameters: |
|
---|---|
Returns: | True if a queue exists and False if it does not. |
Base method for queue metadata retrieval.
Parameters: |
|
---|---|
Returns: | Dictionary containing queue metadata |
Raises: | DoesNotExist |
Base method for queue metadata retrieval.
Parameters: |
|
---|---|
Returns: | Dictionary containing queue metadata |
Raises: | DoesNotExist |
Base method for listing queues.
Parameters: |
|
---|---|
Returns: | An iterator giving a sequence of queues and the marker of the next page. |
Base method for updating a queue metadata.
Parameters: |
|
---|---|
Raises: | DoesNotExist |
Base method for queue stats.
Parameters: |
|
---|---|
Returns: | Dictionary with the queue stats |
This class is responsible for managing message CRUD.
Base method for deleting multiple messages.
Parameters: |
|
---|
Base method for getting multiple messages.
Parameters: |
|
---|---|
Returns: | An iterable, yielding dicts containing message details |
Base method for deleting a single message.
Parameters: |
|
---|
Get first message in the queue (including claimed).
Parameters: |
|
---|---|
Returns: | First message in the queue, or None if the queue is empty |
Base method for getting a message.
Parameters: |
|
---|---|
Returns: | Dictionary containing message data |
Raises: | DoesNotExist |
Base method for listing messages.
Parameters: |
|
---|---|
Returns: | An iterator giving a sequence of messages and the marker of the next page. |
Base method for popping messages.
Parameters: |
|
---|
Base method for posting one or more messages.
Implementations of this method should guarantee and preserve the order, in the returned list, of incoming messages.
Parameters: |
|
---|---|
Returns: | List of message ids |
Base method for creating a claim.
Parameters: |
|
---|---|
Returns: | (Claim ID, claimed messages) |
Base method for deleting a claim.
Parameters: |
|
---|
Base method for getting a claim.
Parameters: |
|
---|---|
Returns: | (Claim’s metadata, claimed messages) |
Raises: | DoesNotExist |
Base method for updating a claim.
Parameters: |
|
---|