Skip to main content

data.storage.storage_pool

StoragePool Objects

class StoragePool(abc.ABC)

A collection of all data storages.

prepare

@staticmethod
def prepare(config: Configuration) -> None

Performs initial preparation of the storage pool.

Arguments:

  • config - The global configuration.

__init__

def __init__(name: str)

Arguments:

  • name - The name of the storage pool.

begin

def begin() -> None

Called initially when a new pool instance is being used.

flush

def flush() -> None

Called to flush pending operations.

close

def close(save_changes: bool = True) -> None

Closes a single pool instance.

name

@property
def name() -> str

The name of this backend.

connector_storage

@property
@abc.abstractmethod
def connector_storage() -> ConnectorStorage

The connector storage.

user_storage

@property
@abc.abstractmethod
def user_storage() -> UserStorage

The user storage.

project_storage

@property
@abc.abstractmethod
def project_storage() -> ProjectStorage

The project storage.

project_job_storage

@property
@abc.abstractmethod
def project_job_storage() -> ProjectJobStorage

The project job storage.

authorization_token_storage

@property
@abc.abstractmethod
def authorization_token_storage() -> AuthorizationTokenStorage

The authorization token storage.