public interface StorageBackupHandler extends Runnable, StorageActivePart
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageBackupHandler.Default |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFilePart(StorageLiveChannelFile<?> sourceFile,
long sourcePosition,
long length) |
void |
deleteFile(StorageLiveChannelFile<?> file) |
void |
initialize(int channelIndex) |
boolean |
isActive()
Queries whether the part is actually active right now.
|
boolean |
isRunning() |
static StorageBackupHandler |
New(StorageBackupSetup backupSetup,
int channelCount,
StorageBackupItemQueue itemQueue,
StorageOperationController operationController,
StorageWriteController writeController,
StorageDataFileValidator.Creator validatorCreator) |
StorageBackupHandler |
setRunning(boolean running) |
StorageBackupSetup |
setup() |
default StorageBackupHandler |
start() |
default StorageBackupHandler |
stop() |
void |
synchronize(StorageInventory storageInventory) |
void |
truncateFile(StorageLiveChannelFile<?> file,
long newLength) |
StorageBackupSetup setup()
void initialize(int channelIndex)
void synchronize(StorageInventory storageInventory)
void copyFilePart(StorageLiveChannelFile<?> sourceFile, long sourcePosition, long length)
void truncateFile(StorageLiveChannelFile<?> file, long newLength)
void deleteFile(StorageLiveChannelFile<?> file)
default StorageBackupHandler start()
default StorageBackupHandler stop()
boolean isRunning()
boolean isActive()
StorageActiveParttrue even
despite some "running" flag being set to false because there might be one last
loop cycle execution before checking the "running" flag again.isActive in interface StorageActivePartStorageBackupHandler setRunning(boolean running)
static StorageBackupHandler New(StorageBackupSetup backupSetup, int channelCount, StorageBackupItemQueue itemQueue, StorageOperationController operationController, StorageWriteController writeController, StorageDataFileValidator.Creator validatorCreator)
Copyright © 2022 MicroStream Software. All rights reserved.