Package one.microstream.storage.types
Interface StorageManager
-
- All Superinterfaces:
AutoCloseable
,ObjectSwizzling
,PersistenceStoring
,Persister
,StorageActivePart
,StorageConnection
,StorageController
- All Known Subinterfaces:
EmbeddedStorageManager
- All Known Implementing Classes:
EmbeddedStorageManager.Default
public interface StorageManager extends StorageController, StorageConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageConnection
StorageConnection.Default
-
-
Method Summary
Modifier and Type Method Description StorageConfiguration
configuration()
StorageConnection
createConnection()
default Object
customRoot()
Deprecated.Reference<Object>
defaultRoot()
Deprecated.void
initialize()
Object
root()
Object
setRoot(Object newRoot)
boolean
shutdown()
StorageManager
start()
default long
storeDefaultRoot()
Deprecated.long
storeRoot()
StorageTypeDictionary
typeDictionary()
PersistenceRootsView
viewRoots()
-
Methods inherited from interface one.microstream.storage.types.StorageActivePart
isActive
-
Methods inherited from interface one.microstream.storage.types.StorageConnection
createEagerStorer, createLazyStorer, createStorageStatistics, createStorer, exportChannels, exportChannels, exportTypes, exportTypes, getObject, importFiles, issueCacheCheck, issueCacheCheck, issueFileCheck, issueFileCheck, issueFullCacheCheck, issueFullCacheCheck, issueFullFileCheck, issueFullFileCheck, issueFullGarbageCollection, issueGarbageCollection, persistenceManager, store, storeAll, storeAll
-
Methods inherited from interface one.microstream.storage.types.StorageController
checkAcceptingTasks, close, initializationDuration, initializationTime, isAcceptingTasks, isRunning, isShutdown, isShuttingDown, isStartingUp, operationModeTime
-
-
-
-
Method Detail
-
typeDictionary
StorageTypeDictionary typeDictionary()
-
createConnection
StorageConnection createConnection()
-
configuration
StorageConfiguration configuration()
-
initialize
void initialize()
-
start
StorageManager start()
- Specified by:
start
in interfaceStorageController
-
shutdown
boolean shutdown()
- Specified by:
shutdown
in interfaceStorageController
-
root
Object root()
- Returns:
- the persistent object graph's root object.
-
storeRoot
long storeRoot()
-
viewRoots
PersistenceRootsView viewRoots()
-
defaultRoot
@Deprecated Reference<Object> defaultRoot()
Deprecated.This method is deprecated due to simplified root handling and will be removed in a future version.
It is advised to useroot()
andsetRoot(Object)
instead.- Returns:
- a mutable
Reference
to the root object.
-
customRoot
@Deprecated default Object customRoot()
Deprecated.This method is deprecated due to simplified root handling and will be removed in a future version.
It is advised to useroot()
instead, for which this method is an alias.- Returns:
- the root object.
-
storeDefaultRoot
@Deprecated default long storeDefaultRoot()
Deprecated.This method is deprecated due to simplified root handling and will be removed in a future version.
It is advised to usestoreRoot()
instead, for which this method is an alias.- Returns:
- stores the root object and returns its objectId.
-
-