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:
rootin interfaceStorageManager- Returns:
- the persistent object graph's root object.
-
setRoot
public final Object setRoot(Object newRoot)
- Specified by:
setRootin interfaceStorageManager
-
storeRoot
public long storeRoot()
- Specified by:
storeRootin interfaceStorageManager
-
viewRoots
public final PersistenceRootsView viewRoots()
- Specified by:
viewRootsin interfaceStorageManager
-
persistenceManager
public PersistenceManager<Binary> persistenceManager()
- Specified by:
persistenceManagerin interfaceStorageConnection
-
createStorer
public final Storer createStorer()
- Specified by:
createStorerin interfacePersister- Specified by:
createStorerin interfaceStorageConnection
-
start
public final EmbeddedStorageManager.Default start()
- Specified by:
startin interfaceEmbeddedStorageManager- Specified by:
startin interfaceStorageController- Specified by:
startin interfaceStorageManager
-
initialize
public final void initialize()
- Specified by:
initializein interfaceStorageManager
-
shutdown
public final boolean shutdown()
- Specified by:
shutdownin interfaceStorageController- Specified by:
shutdownin interfaceStorageManager
-
isAcceptingTasks
public final boolean isAcceptingTasks()
- Specified by:
isAcceptingTasksin interfaceStorageController
-
isRunning
public final boolean isRunning()
- Specified by:
isRunningin interfaceStorageController
-
isActive
public final boolean isActive()
Description copied from interface:StorageActivePartQueries whether the part is actually active right now. This might returntrueeven despite some "running" flag being set tofalsebecause there might be one last loop cycle execution before checking the "running" flag again.- Specified by:
isActivein interfaceStorageActivePart- Returns:
- if the part is actually active right now.
-
isStartingUp
public final boolean isStartingUp()
- Specified by:
isStartingUpin interfaceStorageController
-
isShuttingDown
public final boolean isShuttingDown()
- Specified by:
isShuttingDownin interfaceStorageController
-
checkAcceptingTasks
public final void checkAcceptingTasks()
- Specified by:
checkAcceptingTasksin interfaceStorageController
-
configuration
public final StorageConfiguration configuration()
- Specified by:
configurationin interfaceStorageManager
-
typeDictionary
public final StorageTypeDictionary typeDictionary()
- Specified by:
typeDictionaryin interfaceStorageManager
-
createConnection
public final StorageConnection createConnection()
- Specified by:
createConnectionin interfaceStorageManager
-
initializationTime
public final long initializationTime()
- Specified by:
initializationTimein interfaceStorageController
-
operationModeTime
public final long operationModeTime()
- Specified by:
operationModeTimein interfaceStorageController
-
issueFullGarbageCollection
public final void issueFullGarbageCollection()
Description copied from interface:StorageConnectionIssues 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:
issueFullGarbageCollectionin interfaceStorageConnection
-
issueGarbageCollection
public final boolean issueGarbageCollection(long nanoTimeBudget)
- Specified by:
issueGarbageCollectionin interfaceStorageConnection
-
issueFullFileCheck
public final void issueFullFileCheck()
- Specified by:
issueFullFileCheckin interfaceStorageConnection
-
issueFullFileCheck
public final void issueFullFileCheck(StorageDataFileDissolvingEvaluator fileDissolvingEvaluator)
- Specified by:
issueFullFileCheckin interfaceStorageConnection
-
issueFileCheck
public final boolean issueFileCheck(long nanoTimeBudgetBound)
- Specified by:
issueFileCheckin interfaceStorageConnection
-
issueFileCheck
public final boolean issueFileCheck(long nanoTimeBudgetBound, StorageDataFileDissolvingEvaluator fileDissolvingEvaluator)- Specified by:
issueFileCheckin interfaceStorageConnection
-
issueFullCacheCheck
public final void issueFullCacheCheck()
- Specified by:
issueFullCacheCheckin interfaceStorageConnection
-
issueFullCacheCheck
public final void issueFullCacheCheck(StorageEntityCacheEvaluator entityEvaluator)
- Specified by:
issueFullCacheCheckin interfaceStorageConnection
-
issueCacheCheck
public final boolean issueCacheCheck(long nanoTimeBudgetBound)
- Specified by:
issueCacheCheckin interfaceStorageConnection
-
issueCacheCheck
public final boolean issueCacheCheck(long nanoTimeBudgetBound, StorageEntityCacheEvaluator entityEvaluator)- Specified by:
issueCacheCheckin interfaceStorageConnection
-
createStorageStatistics
public final StorageRawFileStatistics createStorageStatistics()
- Specified by:
createStorageStatisticsin interfaceStorageConnection
-
exportChannels
public final void exportChannels(StorageIoHandler fileHandler, boolean performGarbageCollection)
- Specified by:
exportChannelsin interfaceStorageConnection
-
exportTypes
public final StorageEntityTypeExportStatistics exportTypes(StorageEntityTypeExportFileProvider exportFileProvider, Predicate<? super StorageEntityTypeHandler> isExportType)
- Specified by:
exportTypesin interfaceStorageConnection
-
importFiles
public final void importFiles(XGettingEnum<Path> importFiles)
- Specified by:
importFilesin interfaceStorageConnection
-
defaultRoot
@Deprecated public final Reference<Object> defaultRoot()
Deprecated.Description copied from interface:StorageManagerThis 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:
defaultRootin interfaceStorageManager- Returns:
- a mutable
Referenceto the root object.
-
-