Package one.microstream.storage.types
Class EmbeddedStorageManager.Default
- java.lang.Object
-
- one.microstream.storage.types.EmbeddedStorageManager.Default
-
- All Implemented Interfaces:
PersistenceStoring
,Unpersistable
,EmbeddedStorageManager
,StorageActivePart
,StorageConnection
,StorageController
- Enclosing interface:
- EmbeddedStorageManager
public static final class EmbeddedStorageManager.Default extends Object implements EmbeddedStorageManager, Unpersistable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.EmbeddedStorageManager
EmbeddedStorageManager.Default
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
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.EmbeddedStorageManager
storeDefaultRoot, storeRoot
-
Methods inherited from interface one.microstream.storage.types.StorageConnection
createEagerStorer, createLazyStorer, exportChannels, exportTypes, store, storeAll, storeAll, storeSelfStoring
-
Methods inherited from interface one.microstream.storage.types.StorageController
initializationDuration, isShutdown
-
-
-
-
Method Detail
-
root
public final Object root()
- Specified by:
root
in interfaceEmbeddedStorageManager
-
setRoot
public final Object setRoot(Object newRoot)
- Specified by:
setRoot
in interfaceEmbeddedStorageManager
-
defaultRoot
public final Reference<Object> defaultRoot()
- Specified by:
defaultRoot
in interfaceEmbeddedStorageManager
-
customRoot
public final Object customRoot()
- Specified by:
customRoot
in interfaceEmbeddedStorageManager
-
viewRoots
public final PersistenceRootsView viewRoots()
- Specified by:
viewRoots
in interfaceEmbeddedStorageManager
-
persistenceManager
public PersistenceManager<Binary> persistenceManager()
- Specified by:
persistenceManager
in interfaceStorageConnection
-
createStorer
public final Storer createStorer()
- Specified by:
createStorer
in interfaceStorageConnection
-
start
public final EmbeddedStorageManager.Default start()
- Specified by:
start
in interfaceEmbeddedStorageManager
- Specified by:
start
in interfaceStorageController
-
initialize
public final void initialize()
- Specified by:
initialize
in interfaceEmbeddedStorageManager
-
shutdown
public final boolean shutdown()
- Specified by:
shutdown
in interfaceEmbeddedStorageManager
- Specified by:
shutdown
in interfaceStorageController
-
isAcceptingTasks
public final boolean isAcceptingTasks()
- Specified by:
isAcceptingTasks
in interfaceStorageController
-
isRunning
public final boolean isRunning()
- Specified by:
isRunning
in interfaceStorageController
-
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
- Returns:
- if the part is actually active right now.
-
isStartingUp
public final boolean isStartingUp()
- Specified by:
isStartingUp
in interfaceStorageController
-
isShuttingDown
public final boolean isShuttingDown()
- Specified by:
isShuttingDown
in interfaceStorageController
-
checkAcceptingTasks
public final void checkAcceptingTasks()
- Specified by:
checkAcceptingTasks
in interfaceStorageController
-
configuration
public final StorageConfiguration configuration()
- Specified by:
configuration
in interfaceEmbeddedStorageManager
-
typeDictionary
public final StorageTypeDictionary typeDictionary()
- Specified by:
typeDictionary
in interfaceEmbeddedStorageManager
-
createConnection
public final StorageConnection createConnection()
- Specified by:
createConnection
in interfaceEmbeddedStorageManager
-
initializationTime
public final long initializationTime()
- Specified by:
initializationTime
in interfaceStorageController
-
operationModeTime
public final long operationModeTime()
- Specified by:
operationModeTime
in interfaceStorageController
-
issueFullGarbageCollection
public final void issueFullGarbageCollection()
Description copied from interface:StorageConnection
Issues a full garbage collection to be executed. Depending on the size of the database, the available cache, used hardware, etc., this can take any amount of time.- Specified by:
issueFullGarbageCollection
in interfaceStorageConnection
-
issueGarbageCollection
public final boolean issueGarbageCollection(long nanoTimeBudget)
- Specified by:
issueGarbageCollection
in interfaceStorageConnection
-
issueFullFileCheck
public final void issueFullFileCheck()
- Specified by:
issueFullFileCheck
in interfaceStorageConnection
-
issueFullFileCheck
public final void issueFullFileCheck(StorageDataFileDissolvingEvaluator fileDissolvingEvaluator)
- Specified by:
issueFullFileCheck
in interfaceStorageConnection
-
issueFileCheck
public final boolean issueFileCheck(long nanoTimeBudgetBound)
- Specified by:
issueFileCheck
in interfaceStorageConnection
-
issueFileCheck
public final boolean issueFileCheck(long nanoTimeBudgetBound, StorageDataFileDissolvingEvaluator fileDissolvingEvaluator)
- Specified by:
issueFileCheck
in interfaceStorageConnection
-
issueFullCacheCheck
public final void issueFullCacheCheck()
- Specified by:
issueFullCacheCheck
in interfaceStorageConnection
-
issueFullCacheCheck
public final void issueFullCacheCheck(StorageEntityCacheEvaluator entityEvaluator)
- Specified by:
issueFullCacheCheck
in interfaceStorageConnection
-
issueCacheCheck
public final boolean issueCacheCheck(long nanoTimeBudgetBound)
- Specified by:
issueCacheCheck
in interfaceStorageConnection
-
issueCacheCheck
public final boolean issueCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator)
- Specified by:
issueCacheCheck
in interfaceStorageConnection
-
createStorageStatistics
public final StorageRawFileStatistics createStorageStatistics()
- Specified by:
createStorageStatistics
in interfaceStorageConnection
-
exportChannels
public final void exportChannels(StorageIoHandler fileHandler, boolean performGarbageCollection)
- Specified by:
exportChannels
in interfaceStorageConnection
-
exportTypes
public final StorageEntityTypeExportStatistics exportTypes(StorageEntityTypeExportFileProvider exportFileProvider, Predicate<? super StorageEntityTypeHandler> isExportType)
- Specified by:
exportTypes
in interfaceStorageConnection
-
importFiles
public final void importFiles(XGettingEnum<Path> importFiles)
- Specified by:
importFiles
in interfaceStorageConnection
-
-