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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.StorageBackupHandler
start, stop
-
-
-
-
Method Detail
-
setup
public final StorageBackupSetup 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
public final StorageBackupHandler setRunning(boolean running)
- Specified by:
setRunning
in interfaceStorageBackupHandler
-
initialize
public void initialize(int channelIndex)
- Specified by:
initialize
in interfaceStorageBackupHandler
-
synchronize
public void synchronize(StorageInventory storageInventory)
- Specified by:
synchronize
in interfaceStorageBackupHandler
-
copyFilePart
public void copyFilePart(StorageInventoryFile sourceFile, long sourcePosition, long copyLength)
- Specified by:
copyFilePart
in interfaceStorageBackupHandler
-
truncateFile
public void truncateFile(StorageInventoryFile file, long newLength)
- Specified by:
truncateFile
in interfaceStorageBackupHandler
-
deleteFile
public void deleteFile(StorageInventoryFile file)
- Specified by:
deleteFile
in interfaceStorageBackupHandler
-
-