Package one.microstream.storage.types
Interface StorageController
-
- All Superinterfaces:
AutoCloseable,StorageActivePart
- All Known Subinterfaces:
StorageManager,StorageSystem
- All Known Implementing Classes:
StorageSystem.Default
public interface StorageController extends StorageActivePart, AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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.-
Methods inherited from interface one.microstream.storage.types.StorageActivePart
isActive
-
-
-
-
Method Detail
-
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
default void close() throws StorageExceptionShutdown- Specified by:
closein interfaceAutoCloseable- Throws:
StorageExceptionShutdown
-
-