Package one.microstream.storage.types
Class StorageBackupHandler.Default
java.lang.Object
one.microstream.storage.types.StorageBackupHandler.Default
- All Implemented Interfaces:
Runnable
,StorageActivePart
,StorageBackupHandler
- Enclosing interface:
- StorageBackupHandler
public static final class StorageBackupHandler.Default extends Object implements StorageBackupHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageBackupHandler
StorageBackupHandler.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description void
copyFilePart(StorageInventoryFile sourceFile, long sourcePosition, long copyLength)
void
deleteFile(StorageInventoryFile file)
void
initialize(int channelIndex)
boolean
isActive()
Queries whether the part is actually active right now.boolean
isRunning()
void
run()
StorageBackupHandler
setRunning(boolean running)
StorageBackupSetup
setup()
void
synchronize(StorageInventory storageInventory)
void
truncateFile(StorageInventoryFile file, long newLength)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
setup
- Specified by:
setup
in interfaceStorageBackupHandler
-
isRunning
public final boolean isRunning()- Specified by:
isRunning
in interfaceStorageBackupHandler
-
isActive
public final boolean isActive()Description copied from interface:StorageActivePart
Queries whether the part is actually active right now. This might returntrue
even despite some "running" flag being set tofalse
because there might be one last loop cycle execution before checking the "running" flag again.- Specified by:
isActive
in interfaceStorageActivePart
- Specified by:
isActive
in interfaceStorageBackupHandler
- Returns:
- if the part is actually active right now.
-
setRunning
- Specified by:
setRunning
in interfaceStorageBackupHandler
-
initialize
public void initialize(int channelIndex)- Specified by:
initialize
in interfaceStorageBackupHandler
-
synchronize
- Specified by:
synchronize
in interfaceStorageBackupHandler
-
run
public void run() -
copyFilePart
- Specified by:
copyFilePart
in interfaceStorageBackupHandler
-
truncateFile
- Specified by:
truncateFile
in interfaceStorageBackupHandler
-
deleteFile
- Specified by:
deleteFile
in interfaceStorageBackupHandler
-