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 void
checkAcceptingTasks()
default void
close()
default long
initializationDuration()
long
initializationTime()
boolean
isAcceptingTasks()
boolean
isRunning()
default boolean
isShutdown()
boolean
isShuttingDown()
boolean
isStartingUp()
long
operationModeTime()
boolean
shutdown()
Issues a command to shut down all active threads managing the storage.StorageController
start()
"Starts" the storage controlled by thisStorageController
instance, 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 thisStorageController
instance, 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:
true
after a successful shutdown orfalse
if an internalInterruptedException
happened.
-
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:
close
in interfaceAutoCloseable
- Throws:
StorageException
-