PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::storage::migration_service_config Struct Reference

Configuration for the migration service. More...

#include <hsm_migration_service.h>

Collaboration diagram for kcenon::pacs::storage::migration_service_config:
Collaboration graph

Public Types

using progress_callback
 Callback for migration progress updates.
 
using error_callback
 Callback for migration errors.
 

Public Attributes

std::chrono::seconds migration_interval {3600}
 Interval between migration cycles.
 
std::size_t max_concurrent_migrations {4}
 Maximum concurrent migrations.
 
bool auto_start {false}
 Whether to start automatically on construction.
 
progress_callback on_cycle_complete
 
error_callback on_migration_error
 

Detailed Description

Configuration for the migration service.

Definition at line 47 of file hsm_migration_service.h.

Member Typedef Documentation

◆ error_callback

Initial value:
std::function<void(const std::string& uid, const std::string& error)>
std::string_view uid

Callback for migration errors.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/hsm_migration_service.h.

Definition at line 63 of file hsm_migration_service.h.

◆ progress_callback

Initial value:
std::function<void(const migration_result& result)>

Callback for migration progress updates.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/hsm_migration_service.h.

Definition at line 58 of file hsm_migration_service.h.

Member Data Documentation

◆ auto_start

bool kcenon::pacs::storage::migration_service_config::auto_start {false}

◆ max_concurrent_migrations

std::size_t kcenon::pacs::storage::migration_service_config::max_concurrent_migrations {4}

Maximum concurrent migrations.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/hsm_migration_service.h.

Definition at line 52 of file hsm_migration_service.h.

52{4};

◆ migration_interval

◆ on_cycle_complete

◆ on_migration_error


The documentation for this struct was generated from the following file: