Class SyncJobService
java.lang.Object
de.spiritscorp.datasync.controller.SyncJobService
Orchestrates background thread processing for synchronization, backup,
and duplicate detection, utilizing task-isolated configuration states.
- Author:
- Tom Spirit
-
Constructor Summary
ConstructorsConstructorDescriptionSyncJobService(DialogService dialogService, UiLogFormatter uiLog) Constructs a newSyncJobServicewith the required UI and logging dependencies. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSelectedDuplicates(SyncJobContext context) Purges marked elements from active disks securely on a detached stack.booleansetOSAutostart(boolean set) Configures or evicts background host operating system daemon startup triggers.voidstartBackup(SyncJobContext context) Runs localized multi-threaded incremental backups using task-isolated rules.voidScans source paths asynchronously to list file checksum collisions.voidstartSynchronize(SyncJobContext context) Executes bidirectional folder synchronization using task-bound preferences.
-
Constructor Details
-
SyncJobService
Constructs a newSyncJobServicewith the required UI and logging dependencies.- Parameters:
dialogService- the service provider for user interaction dialogsuiLog- the formatter instance used to compile text summaries for the UI
-
-
Method Details
-
startSynchronize
Executes bidirectional folder synchronization using task-bound preferences.- Parameters:
context- Target environment details providing task variables
-
startBackup
Runs localized multi-threaded incremental backups using task-isolated rules.- Parameters:
context- Target environment details providing task variables
-
startDuplicateScan
Scans source paths asynchronously to list file checksum collisions.- Parameters:
job- Target environment details providing task variables
-
deleteSelectedDuplicates
Purges marked elements from active disks securely on a detached stack.- Parameters:
context- Target environment details providing task variables
-
setOSAutostart
public boolean setOSAutostart(boolean set) Configures or evicts background host operating system daemon startup triggers. Adjusts system registry run hives on Windows environments or modifies cron execution tables on Linux platforms via secure subprocess execution abstractions.- Parameters:
set- Target flag to dictate whether to register or clear system integration entries.- Returns:
- true if the underlying system environment sub-process sequences executed without exceptions.
-