public static final class StorageSystem.Default extends Object implements StorageSystem, one.microstream.persistence.types.Unpersistable, StorageKillable
StorageSystem.Default| Modifier and Type | Method and Description |
|---|---|
void |
checkAcceptingTasks() |
StorageConfiguration |
configuration() |
StorageRequestAcceptor |
createRequestAcceptor() |
StorageIdAnalysis |
initializationIdAnalysis() |
long |
initializationTime() |
boolean |
isAcceptingTasks() |
boolean |
isActive()
Queries whether the part is actually active right now.
|
boolean |
isRunning() |
boolean |
isShuttingDown() |
boolean |
isStartingUp() |
void |
killStorage(Throwable cause)
Stops all threads, releases all resources (e.g.
|
StorageObjectIdRangeEvaluator |
objectIdRangeEvaluator() |
StorageOperationController |
operationController() |
long |
operationModeTime() |
boolean |
shutdown()
Issues a command to shut down all active threads managing the storage.
|
StorageSystem.Default |
start()
"Starts" the storage controlled by this
StorageController 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. |
StorageTypeDictionary |
typeDictionary() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelCountProvider, fileSystemclose, initializationDuration, isShutdownpublic Default(StorageConfiguration storageConfiguration, StorageOperationController.Creator ocCreator, StorageDataFileValidator.Creator backupDataFileValidatorCreator, StorageWriteController writeController, StorageHousekeepingBroker housekeepingBroker, StorageFileWriter.Provider writerProvider, StorageInitialDataFileNumberProvider initialDataFileNumberProvider, StorageRequestAcceptor.Creator requestAcceptorCreator, StorageTaskBroker.Creator taskBrokerCreator, StorageDataChunkValidator.Provider dataChunkValidatorProvider, StorageChannelsCreator channelCreator, StorageThreadProvider threadProvider, StorageRequestTaskCreator requestTaskCreator, StorageTypeDictionary typeDictionary, StorageRootTypeIdProvider rootTypeIdProvider, StorageTimestampProvider timestampProvider, StorageObjectIdRangeEvaluator objectIdRangeEvaluator, StorageGCZombieOidHandler zombieOidHandler, StorageRootOidSelector.Provider rootOidSelectorProvider, StorageObjectIdMarkQueue.Creator oidMarkQueueCreator, StorageEntityMarkMonitor.Creator entityMarkMonitorCreator, boolean switchByteOrder, StorageLockFileSetup lockFileSetup, StorageLockFileManager.Creator lockFileManagerCreator, StorageExceptionHandler exceptionHandler, StorageEventLogger eventLogger)
public final StorageConfiguration configuration()
configuration in interface StorageSystempublic final boolean isRunning()
isRunning in interface StorageControllerpublic final boolean isActive()
StorageActiveParttrue even
despite some "running" flag being set to false because there might be one last
loop cycle execution before checking the "running" flag again.isActive in interface StorageActivePartpublic final boolean isAcceptingTasks()
isAcceptingTasks in interface StorageControllerpublic final boolean isStartingUp()
isStartingUp in interface StorageControllerpublic final boolean isShuttingDown()
isShuttingDown in interface StorageControllerpublic final long initializationTime()
initializationTime in interface StorageControllerpublic final long operationModeTime()
operationModeTime in interface StorageControllerpublic final void checkAcceptingTasks()
checkAcceptingTasks in interface StorageControllerpublic final StorageSystem.Default start()
StorageControllerStorageController instance, with "starting" meaning:start in interface StorageControllerstart in interface StorageSystempublic final StorageIdAnalysis initializationIdAnalysis()
initializationIdAnalysis in interface StorageSystempublic final boolean shutdown()
StorageControllershutdown in interface StorageControllershutdown in interface StorageSystemtrue after a successful shutdown or false
if an internal InterruptedException happened.public final StorageTypeDictionary typeDictionary()
typeDictionary in interface StorageSystempublic StorageOperationController operationController()
operationController in interface StorageSystempublic StorageObjectIdRangeEvaluator objectIdRangeEvaluator()
objectIdRangeEvaluator in interface StorageSystempublic final StorageRequestAcceptor createRequestAcceptor()
createRequestAcceptor in interface StorageSystempublic void killStorage(Throwable cause)
StorageKillableUseful only in simple error cases, for example
killStorage in interface StorageKillablecause - the reason for the killCopyright © 2022 MicroStream Software. All rights reserved.