yellowdog_client.object_store
– Object Store¶
All functionality is accessed via the yellowdog_client.object_store.ObjectStoreClient
.
- class yellowdog_client.object_store.ObjectStoreClient(proxy)¶
The API interface exposed by the YellowDog Object Store Service
- Parameters:
proxy (
ObjectStoreServiceProxy
)
- DEFAULT_DOWNLOAD_CHUNK_SIZE = 5242880¶
- DEFAULT_DOWNLOAD_THREAD_COUNT = 10¶
- DEFAULT_DOWNLOAD_THROTTLE_PERIOD_SEC = 10¶
- DEFAULT_UPLOAD_CHUNK_SIZE = 5242880¶
- DEFAULT_UPLOAD_THREAD_COUNT = 10¶
- DEFAULT_UPLOAD_THROTTLE_PERIOD_SEC = 10¶
- ON_ERROR = 'on_error'¶
- property active_sessions: List[AbstractSession]¶
- Getter:
List of active sessions for both upload and download
- Return type:
List of
yellowdog_client.object_store.abstracts.AbstractSession
- property all_sessions: List[AbstractSession]¶
- Getter:
List of all sessions (active and inactive) for both upload and download
- Return type:
List of
yellowdog_client.object_store.abstracts.AbstractSession
- build_download_batch()¶
Retrieves a batch builder for downloads, which is used to create multiple download sessions
- Returns:
download batch builder
- Return type:
- build_upload_batch()¶
Retrieves a batch builder for uploads, which is used to create multiple upload sessions
- Returns:
upload batch builder
- Return type:
- clear_inactive_sessions()¶
Removes any inactive sessions from the list for both upload and download.
- Return type:
- close()¶
Aborts all transfers for upload and download. When executing
__exit__()
, methodclose()
is invoked- Return type:
- create_download_session(file_namespace, file_name, destination_folder_path, destination_file_name=None, transfer_properties=None)¶
Creates a new upload session for the file
- Parameters:
file_namespace (str) – Namespace for file storage
file_name (str) – path of the file to upload
destination_folder_path (str) – directory path to store downloaded file
destination_file_name (Optional[str]) – new name of the file to use within object store namespace
transfer_properties (Optional[
yellowdog_client.object_store.model.TransferProperties
]) – custom properties to use for file transfer
- Returns:
upload session, which, upon return, can be started or aborted
- Return type:
- create_upload_session(file_namespace, source_file_path, destination_file_name=None, transfer_properties=None)¶
Creates a new upload session for the file
- Parameters:
file_namespace (str) – Namespace for file storage
source_file_path (str) – path of the file to upload
destination_file_name (Optional[str]) – new name of the file to use within object store namespace
transfer_properties (Optional[
yellowdog_client.object_store.model.TransferProperties
]) – custom properties to use for file transfer
- Returns:
upload session, which, upon return, can be started or aborted
- Return type:
- delete_namespace_storage_configuration(namespace)¶
Removes all cloud provider storage configurations within namespace in
YellowDog object store
- delete_objects(namespace, object_paths)¶
Delete a collection of files within
object store
namespace- Parameters:
namespace (
str
) – namespace, holding a collection of objectsobject_paths (
Union
[ObjectPath
,List
[ObjectPath
]]) – a collection of object names to delete
- Return type:
- property downloads_active: bool¶
- Getter:
True, if any of download threads are actively transferring chunks
- Return type:
- get_namespace_object_paths(request)¶
Returns a list of all stored objects within namespace in
object store
- Parameters:
request (
ObjectPathsRequest
) – the request- Return type:
- Returns:
object paths within the namespace
- get_namespace_object_paths_slice(request)¶
Returns a slice of stored objects within namespace in
object store
- Parameters:
request (
ObjectPathsSliceRequest
) – the request- Return type:
- Returns:
object paths within the namespace
- get_namespace_storage_configurations()¶
Returns all available storage configurations found within
YellowDog object store
- Returns:
cloud provider storage configurations
- Return type:
- get_namespaces()¶
Returns a list of all namespaces in
object store
- get_object_detail(namespace, name)¶
Returns details of stored file within the namespace in
object store
- Parameters:
- Return type:
- Returns:
details about the remote file
- put_namespace_storage_configuration(namespace_storage_configuration)¶
Stores cloud provider storage configuration within
YellowDog object store
- Parameters:
namespace_storage_configuration (
yellowdog_client.model.NamespaceStorageConfiguration
) – storage configuration for cloud provider- Return type:
- start_transfers()¶
Enables both uploads and downloads for yellowdog object store. Required to make any transfers using the client
- Return type:
- stop_transfers()¶
Stops yellowdog object store client from transferring any new chunks for both upload and download. New transfers will be put on hold until
start()
is used- Return type:
- class yellowdog_client.object_store.ObjectStoreServiceProxy(proxy, request_timeout_ms=10000, request_upload_chunk_timeout_ms=1200000, request_download_chunk_timeout_ms=1200000)¶
- Parameters:
- ON_ERROR = 'on_error'¶
- check_object_exists(namespace, object_name)¶
- complete_transfer(session_id, summary_hash)¶
- delete_objects(namespace, object_paths)¶
- Parameters:
namespace (
str
)object_paths (
List
[ObjectPath
])
- Return type:
- download_chunk(session_id, chunk_number, chunk_size, chunk_hash)¶
- get_namespace_object_paths(request)¶
- Parameters:
request (
ObjectPathsRequest
)- Return type:
- get_namespace_object_paths_slice(request)¶
- Parameters:
request (
ObjectPathsSliceRequest
)- Return type:
- get_namespace_storage_configurations()¶
- Return type:
- get_object_detail(namespace, object_name)¶
- Parameters:
- Return type:
- put_namespace_storage_configuration(conf)¶
- Parameters:
- Return type:
- start_download_session(namespace, object_download_request)¶
- Parameters:
namespace (
str
)object_download_request (
ObjectDownloadRequest
)
- Return type:
- start_upload_session(namespace, object_upload_request)¶
- Parameters:
namespace (
str
)object_upload_request (
ObjectUploadRequest
)
- Return type:
- class yellowdog_client.object_store.ServiceSessionFacade¶
-
- dispatch_notification(event_handler, event_args)¶
- Parameters:
event_handler (
Callable
)event_args (
FileTransferEventArgs
)
- Return type:
- download_engine: AbstractTransferEngine = None¶
- enqueue_chunk_download(chunk_download_task)¶
- Parameters:
chunk_download_task (
AbstractChunkDownloadTask
)- Return type:
- enqueue_chunk_upload(chunk_upload_task)¶
- Parameters:
chunk_upload_task (
AbstractChunkUploadTask
)- Return type:
- upload_engine: AbstractTransferEngine = None¶
yellowdog_client.object_store.upload
– Upload services¶
- class yellowdog_client.object_store.upload.ChunkUploadTask¶
- class yellowdog_client.object_store.upload.UploadBatch(sessions)¶
Transfer batch used for upload
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.abstracts.AbstractTransferBatch
- Parameters:
sessions (
List
[AbstractSession
])
- class yellowdog_client.object_store.upload.UploadBatchBuilder(upload_engine)¶
Builder class for creating batch upload for multiple files in directory
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.upload.abstracts.AbstractUploadBatchBuilder
- Parameters:
upload_engine (
AbstractUploadEngine
)
- find_source_objects(source_directory_path, source_file_pattern)¶
Iterates through all files found in directory and its subdirectories. If files match the pattern, they are appended to list of files for upload:
builder.find_source_objects("C:/my_files_for_upload", "*.txt")
- get_batch_if_objects_found()¶
Creates an upload batch once namespace is set and upload objects found using
find_source_objects()
. Raises exception, if namespace is not set. Returns None, if no files are found for upload- Returns:
Upload batch, containing all upload sessions
- Return type:
- Raises:
ValueError
ifnamespace
is not set
- class yellowdog_client.object_store.upload.UploadEngine(service_proxy, thread_factory, file_reader_factory, notification_dispatcher, chunk_transfer_throttle, upload_thread_count)¶
- Parameters:
service_proxy (
AbstractObjectStoreServiceProxy
)thread_factory (
BackgroundThreadFactory
)file_reader_factory (
MemoryMappedFileReaderFactory
)notification_dispatcher (
AbstractNotificationDispatcher
)chunk_transfer_throttle (
ChunkTransferThrottle
)upload_thread_count (
int
)
- build_upload_batch()¶
- Return type:
- class yellowdog_client.object_store.upload.UploadSession(file_reader_factory, service_session_facade, file_path, file_size, chunk_size, chunk_count, file_retry_count)¶
Transfer session used for upload
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.abstracts.AbstractSession
yellowdog_client.object_store.upload.abstracts
– Upload service abstracts¶
- class yellowdog_client.object_store.upload.abstracts.AbstractUploadBatchBuilder¶
Abstract class for
yellowdog_client.object_store.upload.UploadBatchBuilder
- find_source_objects(source_directory_path, source_file_pattern)¶
- get_batch_if_objects_found()¶
- Return type:
- transfer_properties: TransferProperties = None¶
Transfer properties to use when creating a new batch
- class yellowdog_client.object_store.upload.abstracts.AbstractUploadEngine(service_proxy, thread_factory, notification_dispatcher, chunk_transfer_throttle, transfer_thread_count)¶
- Parameters:
service_proxy (
AbstractObjectStoreServiceProxy
)thread_factory (
BackgroundThreadFactory
)notification_dispatcher (
AbstractNotificationDispatcher
)chunk_transfer_throttle (
ChunkTransferThrottle
)transfer_thread_count (
int
)
- build_upload_batch()¶
- Return type:
yellowdog_client.object_store.download
– Download services¶
- class yellowdog_client.object_store.download.ChunkDownloadTask¶
- class yellowdog_client.object_store.download.DownloadBatch(sessions)¶
Transfer batch used for download
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.abstracts.AbstractTransferBatch
- Parameters:
sessions (
List
[AbstractSession
])
- class yellowdog_client.object_store.download.DownloadBatchBuilder(download_engine, service_proxy)¶
Builder class for creating batch download from object store namespace
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.download.abstracts.AbstractDownloadBatchBuilder
- Parameters:
download_engine (
AbstractDownloadEngine
)service_proxy (
AbstractObjectStoreServiceProxy
)
- find_source_objects(namespace, object_name_pattern)¶
Iterates through all files found in remote namespace and its subdirectories. If files match the pattern, they are appended to list of files for download:
builder.find_source_objects("MY_REMOTE_NAMESPACE", "*.txt")
- get_batch_if_objects_found()¶
Creates an download batch once download directory is set and download objects found using
find_source_objects()
. Raises exception, if download directory is not set. Returns None, if no files are found for download- Returns:
Download batch, containing all download sessions
- Return type:
Optional[
yellowdog_client.object_store.download.DownloadBatch
]- Raises:
ValueError
ifdestination_folder
is not set
- set_flatten_file_name_mapper(value)¶
Sets the method, which is used to rename files once they are downloaded in target directory
- Parameters:
value (Optional[
yellowdog_client.model.FlattenPath
]) – enum value, indicating the method of path flattening- Return type:
- class yellowdog_client.object_store.download.DownloadEngine(service_proxy, thread_factory, file_writer_factory, notification_dispatcher, chunk_transfer_throttle, download_thread_count)¶
- Parameters:
service_proxy (
AbstractObjectStoreServiceProxy
)thread_factory (
BackgroundThreadFactory
)file_writer_factory (
MemoryMappedFileWriterFactory
)notification_dispatcher (
AbstractNotificationDispatcher
)chunk_transfer_throttle (
ChunkTransferThrottle
)download_thread_count (
int
)
- build_download_batch()¶
- Return type:
- create_download_session(file_namespace, file_name, destination_folder_path, destination_file_name=None, transfer_properties=None)¶
- Parameters:
- Return type:
- class yellowdog_client.object_store.download.DownloadSession(file_reader_factory, service_session_facade, file_path, file_size, chunk_size, chunk_count, file_retry_count)¶
Transfer session used for download
Added in version 0.5.0.
See also
Inherits from
yellowdog_client.object_store.abstracts.AbstractSession
- Parameters:
yellowdog_client.object_store.download.abstracts
– Download service abstracts¶
- class yellowdog_client.object_store.download.abstracts.AbstractDownloadBatchBuilder¶
Abstract class for
yellowdog_client.object_store.download.DownloadBatchBuilder
Added in version 0.5.0.
- file_name_mapper: Callable[[str], str] = None¶
Custom function, which renames file name after download
- find_source_objects(namespace, object_name_pattern)¶
- flatten_file_name_mapper: Callable[[str], str] | None = None¶
Custom function, which flattens file name after download
- get_batch_if_objects_found()¶
- Return type:
- set_flatten_file_name_mapper(value)¶
- Parameters:
value (
Optional
[FlattenPath
])- Return type:
- transfer_properties: TransferProperties = None¶
Transfer properties to use when creating a new batch
- class yellowdog_client.object_store.download.abstracts.AbstractDownloadEngine(service_proxy, thread_factory, notification_dispatcher, chunk_transfer_throttle, transfer_thread_count)¶
- Parameters:
service_proxy (
AbstractObjectStoreServiceProxy
)thread_factory (
BackgroundThreadFactory
)notification_dispatcher (
AbstractNotificationDispatcher
)chunk_transfer_throttle (
ChunkTransferThrottle
)transfer_thread_count (
int
)
- build_download_batch()¶
- Return type:
- create_download_session(file_namespace, file_name, destination_folder_path, destination_file_name=None, transfer_properties=None)¶
- Parameters:
- Return type:
yellowdog_client.object_store.model
– Object store models¶
- class yellowdog_client.object_store.model.BatchTransferEventArgs(status)¶
Arguments for batch transfer status
- Parameters:
status (
FileTransferStatus
)
- transfer_status: FileTransferStatus = None¶
Status of batch transfer
- class yellowdog_client.object_store.model.ClientErrorEventArgs(error_type, message, detail=None)¶
Arguments for client error, which occurred when using service
- error_type: ErrorType = None¶
Type of the error
- Type:
yellowdog_client.model.ErrorType
- class yellowdog_client.object_store.model.FileTransferDirection(value)¶
Enum for file transfer direction
- Download = 'Download'¶
- Upload = 'Upload'¶
- class yellowdog_client.object_store.model.FileTransferErrorEventArgs(full_path, file_name, transfer_status, error_type, message, detail=None)¶
Arguments for transfer error, which occurred when file was being uploaded or downloaded
See also
Inherits from
yellowdog_client.object_store.model.FileTransferEventArgs
- Parameters:
- error_type: ErrorType = None¶
Type of exception
- Type:
yellowdog_client.model.ErrorType
- class yellowdog_client.object_store.model.FileTransferEventArgs(full_path, file_name, transfer_status)¶
Arguments for file transfer status
- Parameters:
full_path (
str
)file_name (
str
)transfer_status (
FileTransferStatus
)
- transfer_status: FileTransferStatus = None¶
Current status of file transfer
- exception yellowdog_client.object_store.model.FileTransferException(error_type, message, detail=None)¶
Custom exception type for errors, related to object store. Inherits
Exception
- error_type: ErrorType = None¶
Type of exception
- Type:
yellowdog_client.model.ErrorType
- class yellowdog_client.object_store.model.FileTransferProgressEventArgs(full_path, file_name, transfer_status, bytes_transferred, total_file_bytes, elapsed_time_delta)¶
Arguments for file transfer progress
See also
Inherits from
yellowdog_client.object_store.model.FileTransferEventArgs
- Parameters:
- estimated_time_left: timedelta = None¶
Estimated remaining duration of transfer, based on transfer speed in
transfer_speed_in_bits
- Type:
- class yellowdog_client.object_store.model.FileTransferStatus(value)¶
Enum for file transfer status
- Aborted = 'Aborted'¶
- Completed = 'Completed'¶
- Downloading = 'Downloading'¶
- Failed = 'Failed'¶
- Ready = 'Ready'¶
- Uploading = 'Uploading'¶
- Validating = 'Validating'¶
- is_active()¶
Method, which returns True, if status is considered active. The statuses are the following:
- Returns:
True, if status is active
- Return type:
- class yellowdog_client.object_store.model.TransferProperties¶
yellowdog_client.object_store.abstracts
– Object store abstract classes¶
- class yellowdog_client.object_store.abstracts.AbstractChunkDownloadTask¶
- class yellowdog_client.object_store.abstracts.AbstractChunkTransferTask¶
- abort_lock: allocate_lock = None¶
- abort_token: CancellationToken = None¶
- transfer_countdown: CountdownEvent = None¶
- class yellowdog_client.object_store.abstracts.AbstractChunkUploadTask¶
- class yellowdog_client.object_store.abstracts.AbstractNotificationDispatcher¶
- dispatch(event_handler, event_args)¶
- Parameters:
event_handler (
Callable
)event_args (
FileTransferEventArgs
)
- Return type:
- class yellowdog_client.object_store.abstracts.AbstractObjectStoreServiceProxy(*args, **kwargs)¶
- ON_ERROR = 'on_error'¶
- complete_transfer(session_id, summary_hash)¶
- delete_objects(namespace, object_paths)¶
- Parameters:
namespace (
str
)object_paths (
List
[ObjectPath
])
- Return type:
- download_chunk(session_id, chunk_number, chunk_size, chunk_hash)¶
- get_namespace_object_paths(request)¶
- Parameters:
request (
ObjectPathsRequest
)- Return type:
- get_namespace_object_paths_slice(request)¶
- Parameters:
request (
ObjectPathsSliceRequest
)- Return type:
- get_namespace_storage_configurations()¶
- Return type:
- get_object_detail(namespace, object_name)¶
- Parameters:
- Return type:
- put_namespace_storage_configuration(namespace_storage_configuration)¶
- Parameters:
namespace_storage_configuration (
NamespaceStorageConfiguration
)- Return type:
- start_download_session(namespace, object_download_request)¶
- Parameters:
namespace (
str
)object_download_request (
ObjectDownloadRequest
)
- Return type:
- start_upload_session(namespace, object_upload_request)¶
- Parameters:
namespace (
str
)object_upload_request (
ObjectUploadRequest
)
- Return type:
- class yellowdog_client.object_store.abstracts.AbstractServiceSessionFacade¶
-
- dispatch_notification(event_handler, event_args)¶
- Parameters:
event_handler (
Callable
)event_args (
FileTransferEventArgs
)
- Return type:
- enqueue_chunk_download(chunk_download_task)¶
- Parameters:
chunk_download_task (
AbstractChunkTransferTask
)- Return type:
- enqueue_chunk_upload(chunk_upload_task)¶
- Parameters:
chunk_upload_task (
AbstractChunkTransferTask
)- Return type:
- notification_dispatcher: AbstractNotificationDispatcher = None¶
- object_store_service_proxy: AbstractObjectStoreServiceProxy = None¶
- thread_factory: BackgroundThreadFactory = None¶
- class yellowdog_client.object_store.abstracts.AbstractSession(direction, service_session_facade, file_path, file_size, chunk_size, chunk_count, file_retry_count)¶
Base class for transfer session (upload and download). Inherits
pydispatch.Dispatcher
Can be binded with callbacks on exceptions:
- Parameters:
event_args (
yellowdog_client.object_store.model.FileTransferErrorEventArgs
) – session error arguments- Callback:
on_error
session.bind(on_error=lambda event_args: print(event_args.message))
Can be binded with callbacks on status changes:
- Parameters:
event_args (
yellowdog_client.object_store.model.FileTransferEventArgs
) – session status change arguments- Callback:
on_status_changed
session.bind(on_status_changed=lambda event_args: print(event_args.transfer_status))
Can be binded with callbacks on session progress:
- Parameters:
event_args (
yellowdog_client.object_store.model.FileTransferProgressEventArgs
) – session progress arguments- Callback:
on_progress
session.bind(on_progress=lambda event_args: print(event_args.transfer_status.transfer_percentage))
Added in version 0.5.0.
- Parameters:
direction (
FileTransferDirection
)service_session_facade (
AbstractServiceSessionFacade
)file_path (
str
)file_size (
int
)chunk_size (
int
)chunk_count (
int
)file_retry_count (
int
)
- ON_ERROR = 'on_error'¶
- ON_PROGRESS = 'on_progress'¶
- ON_STATUS_CHANGED = 'on_status_changed'¶
- abort()¶
Aborts any ongoing chunk transfers and prevents from continuing with new chunk transfers
- Return type:
- property bytes_transferred: int¶
- Returns:
A number of bytes transferred during the session
- Return type:
- static calculate_chunk_offset(chunk_number, chunk_size)¶
- static calculate_last_chunk_size(chunk_size, chunk_count, file_size)¶
- direction: FileTransferDirection = None¶
File transfer direction
- get_statistics()¶
Calculates transfer statistics for transfer session
- Returns:
Calculated statistics of file upload or download
- Return type:
- start()¶
Starts transfer session, allowing transfer engine to proceed with chunk upload or download
- Return type:
- property status: FileTransferStatus¶
- Returns:
Latest status of transfer session
- Return type:
- transfer_chunks_with_retries(enqueue_chunk_task_method)¶
- Parameters:
enqueue_chunk_task_method (
Callable
[[AbstractChunkTransferTask
],None
])- Return type:
- when_status_matches(status_predicate)¶
Assigns a session status predicate, which, when evaluates to True, sets a value for
concurrent.futures.Future
:from concurrent import futures from yellowdog_client.object_store.model import FileTransferStatus future = session.when_status_matches(lambda status: status == FileTransferStatus.Completed) futures.wait(fs=(future,)) # Wait for session status to match Completed
- Parameters:
status_predicate (Callable[[
yellowdog_client.object_store.model.FileTransferStatus
], bool]) – file transfer status predicate to wait for- Returns:
a future to wait for session status to match a predicate
- Return type:
- class yellowdog_client.object_store.abstracts.AbstractTransferBatch(transfer_direction, sessions)¶
Base class for transfer batch (a collection of multiple uploads or downloads). Inherits
pydispatch.Dispatcher
Can be binded with callbacks on status changes:
- Parameters:
event_args (
yellowdog_client.object_store.model.BatchTransferEventArgs
) – transfer batch status change arguments- Callback:
on_status_changed
batch.bind(on_status_changed=lambda event_args: print(event_args.transfer_status))
Added in version 0.5.0.
- Parameters:
transfer_direction (
FileTransferDirection
)sessions (
List
[AbstractSession
])
- ON_STATUS_CHANGED = 'on_status_changed'¶
- abort()¶
Aborts all transfer sessions, stopping any further chunk uploads or downloads
- Return type:
- add_session_error_listener(listener)¶
Binds event callback to all sessions within batch for errors
- Parameters:
listener (Callable[[
yellowdog_client.object_store.model.FileTransferErrorEventArgs
], None]) – callback, which executes when any of session encounter error
batch.add_session_error_listener(lambda event_args: print(event_args.message))
- Return type:
- add_session_progress_listener(listener)¶
Binds event callback to all sessions within batch for progress changes
- Parameters:
listener (Callable[[
yellowdog_client.object_store.model.FileTransferProgressEventArgs
], None]) – callback, which executes when any of session progress changes
batch.add_session_progress_listener(lambda event_args: print(event_args.transfer_status.transfer_percentage))
- Return type:
- add_session_status_listener(listener)¶
Binds event callback to all sessions within batch for status changes
- Parameters:
listener (Callable[[
yellowdog_client.object_store.model.FileTransferEventArgs
], None]) – callback, which executes when any of session status changes
batch.add_session_status_listener(lambda event_args: print(event_args.transfer_status))
- Return type:
- direction: FileTransferDirection = None¶
Batch transfer direction
- get_statistics()¶
Calculates transfer statistics for batch transfer
- Returns:
Calculated statistics of file upload or download for all sessions withing batch transfer
- Return type:
- get_transfer_sessions()¶
- Returns:
A collection of all transfer sessions within the batch
- Return type:
List[
yellowdog_client.object_store.abstracts.AbstractSession
]
- status: FileTransferStatus = None¶
Status of batch transfer
- when_status_matches(status_predicate)¶
Assigns a transfer batch status predicate, which, when evaluates to True, sets a value for
concurrent.futures.Future
:from concurrent import futures from yellowdog_client.object_store.model import FileTransferStatus future = batch.when_status_matches(lambda status: status == FileTransferStatus.Completed) futures.wait(fs=(future,)) # Wait for batch status to match Completed
- Parameters:
status_predicate (Callable[[
yellowdog_client.object_store.model.FileTransferStatus
], bool]) – file transfer status predicate to wait for- Returns:
a future to wait for batch status to match a predicate
- Return type:
- class yellowdog_client.object_store.abstracts.AbstractTransferEngine(service_proxy, thread_factory, notification_dispatcher, chunk_transfer_throttle, transfer_thread_count)¶
- Parameters:
service_proxy (
AbstractObjectStoreServiceProxy
)thread_factory (
BackgroundThreadFactory
)notification_dispatcher (
AbstractNotificationDispatcher
)chunk_transfer_throttle (
ChunkTransferThrottle
)transfer_thread_count (
int
)
- property active_sessions: List[AbstractSession]¶
- Return type:
- property all_sessions: List[AbstractSession]¶
- Return type:
- enqueue_chunk_transfer_task(chunk_task)¶
- Parameters:
chunk_task (
AbstractChunkTransferTask
)- Return type: