Package one.microstream.storage.types
Class EmbeddedStorageManager.Default
- java.lang.Object
-
- one.microstream.storage.types.EmbeddedStorageManager.Default
-
- All Implemented Interfaces:
AutoCloseable
,PersistenceStoring
,Persister
,Unpersistable
,ObjectSwizzling
,EmbeddedStorageManager
,StorageActivePart
,StorageConnection
,StorageController
,StorageManager
- 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.StorageConnection
createEagerStorer, createLazyStorer, exportChannels, exportTypes, getObject, store, storeAll, storeAll
-
Methods inherited from interface one.microstream.storage.types.StorageController
close, initializationDuration, isShutdown
-
Methods inherited from interface one.microstream.storage.types.StorageManager
customRoot, storeDefaultRoot
-
-
-
-
Method Detail
-
root
public final Object root()
- Specified by:
root
in interfaceStorageManager
- Returns:
- the persistent object graph's root object.
-
setRoot
public final Object setRoot(Object newRoot)
- Specified by:
setRoot
in interfaceStorageManager
-
storeRoot
public long storeRoot()
- Specified by:
storeRoot
in interfaceStorageManager
-
viewRoots
public final PersistenceRootsView viewRoots()
- Specified by:
viewRoots
in interfaceStorageManager
-
persistenceManager
public PersistenceManager<Binary> persistenceManager()
- Specified by:
persistenceManager
in interfaceStorageConnection
-
createStorer
public final Storer createStorer()
- Specified by:
createStorer
in interfacePersister
- Specified by:
createStorer
in interfaceStorageConnection
-
start
public final EmbeddedStorageManager.Default start()
- Specified by:
start
in interfaceEmbeddedStorageManager
- Specified by:
start
in interfaceStorageController
- Specified by:
start
in interfaceStorageManager
-
initialize
public final void initialize()
- Specified by:
initialize
in interfaceStorageManager
-
shutdown
public final boolean shutdown()
- Specified by:
shutdown
in interfaceStorageController
- Specified by:
shutdown
in interfaceStorageManager
-
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 interfaceStorageManager
-
typeDictionary
public final StorageTypeDictionary typeDictionary()
- Specified by:
typeDictionary
in interfaceStorageManager
-
createConnection
public final StorageConnection createConnection()
- Specified by:
createConnection
in interfaceStorageManager
-
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
-
defaultRoot
@Deprecated public final Reference<Object> defaultRoot()
Deprecated.Description copied from interface:StorageManager
This method is deprecated due to simplified root handling and will be removed in a future version.
It is advised to useStorageManager.root()
andStorageManager.setRoot(Object)
instead.- Specified by:
defaultRoot
in interfaceStorageManager
- Returns:
- a mutable
Reference
to the root object.
-
-