Package one.microstream.storage.types
Interface StorageController
- All Superinterfaces:
AutoCloseable,StorageActivePart
- All Known Subinterfaces:
EmbeddedStorageManager,StorageManager,StorageSystem
- All Known Implementing Classes:
EmbeddedStorageManager.Default,StorageSystem.Default
public interface StorageController extends StorageActivePart, AutoCloseable
-
Method Summary
Modifier and Type Method Description voidcheckAcceptingTasks()default voidclose()default longinitializationDuration()longinitializationTime()booleanisAcceptingTasks()booleanisRunning()default booleanisShutdown()booleanisShuttingDown()booleanisStartingUp()longoperationModeTime()booleanshutdown()Issues a command to shut down all active threads managing the storage.StorageControllerstart()"Starts" the storage controlled by thisStorageControllerinstance, with "starting" meaning:
Reading, indexing and potentially caching all the persisted data in the storage. Starting storage managing threads to execute requests like storing, loading and issued utility functions.
-
Method Details
-
start
StorageController start()"Starts" the storage controlled by thisStorageControllerinstance, with "starting" meaning:
- Reading, indexing and potentially caching all the persisted data in the storage.
- Starting storage managing threads to execute requests like storing, loading and issued utility functions.
- Returns:
- this to allow writing of fluent code.
-
shutdown
boolean shutdown()Issues a command to shut down all active threads managing the storage.- Returns:
trueafter a successful shutdown orfalseif an internalInterruptedExceptionhappened.
-
isAcceptingTasks
boolean isAcceptingTasks() -
isRunning
boolean isRunning() -
isStartingUp
boolean isStartingUp() -
isShuttingDown
boolean isShuttingDown() -
isShutdown
default boolean isShutdown() -
checkAcceptingTasks
void checkAcceptingTasks() -
initializationTime
long initializationTime() -
operationModeTime
long operationModeTime() -
initializationDuration
default long initializationDuration() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
StorageException
-