Package one.microstream.storage.types
Interface StorageLiveFileProvider
- All Superinterfaces:
PersistenceTypeDictionaryIoHandler.Provider
,StorageFileProvider
- All Known Implementing Classes:
StorageLiveFileProvider.Default
public interface StorageLiveFileProvider extends StorageFileProvider
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StorageLiveFileProvider.Builder<B extends StorageLiveFileProvider.Builder<?>>
static class
StorageLiveFileProvider.Default
static interface
StorageLiveFileProvider.Defaults
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileProvider
StorageFileProvider.Abstract
-
Method Summary
Modifier and Type Method Description static StorageLiveFileProvider.Builder<?>
Builder()
Pseudo-constructor method to create a newStorageLiveFileProvider.Builder
instance with the default file system.static StorageLiveFileProvider.Builder<?>
Builder(AFileSystem fileSystem)
Pseudo-constructor method to create a newStorageLiveFileProvider.Builder
instance.String
getStorageLocationIdentifier()
Returns a String that uniquely identifies the storage location.static StorageLiveFileProvider
New()
Pseudo-constructor method to create a newStorageLiveFileProvider
instance with default values provided byStorageLiveFileProvider.Defaults
.static StorageLiveFileProvider
New(ADirectory storageDirectory)
Pseudo-constructor method to create a newStorageLiveFileProvider
instance with the passed file as the storage directory and defaults provided byStorageLiveFileProvider.Defaults
.static StorageLiveFileProvider.Default
New(ADirectory baseDirectory, ADirectory deletionDirectory, ADirectory truncationDirectory, StorageDirectoryStructureProvider structureProvider, StorageFileNameProvider fileNameProvider, PersistenceTypeDictionaryFileHandler.Creator fileHandlerCreator)
AFile
provideDataFile(int channelIndex, long fileNumber)
AFile
provideLockFile()
AFile
provideTransactionsFile(int channelIndex)
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryIoHandler.Provider
provideTypeDictionaryIoHandler, provideTypeDictionaryIoHandler
Methods inherited from interface one.microstream.storage.types.StorageFileProvider
baseDirectory, collectDataFiles, deletionDirectory, fileNameProvider, fileSystem, provideDeletionTargetFile, provideTruncationTargetFile, truncationDirectory
-
Method Details
-
getStorageLocationIdentifier
String getStorageLocationIdentifier()Returns a String that uniquely identifies the storage location.- Returns:
- a String that uniquely identifies the storage location.
-
provideDataFile
-
provideTransactionsFile
-
provideLockFile
AFile provideLockFile() -
New
Pseudo-constructor method to create a newStorageLiveFileProvider
instance with default values provided byStorageLiveFileProvider.Defaults
.For explanations and customizing values, see
StorageLiveFileProvider.Builder
.- Returns:
- a new
StorageLiveFileProvider
instance. - See Also:
New(ADirectory)
,StorageLiveFileProvider.Builder
,StorageLiveFileProvider.Defaults
-
New
Pseudo-constructor method to create a newStorageLiveFileProvider
instance with the passed file as the storage directory and defaults provided byStorageLiveFileProvider.Defaults
.For explanations and customizing values, see
StorageLiveFileProvider.Builder
.- Parameters:
storageDirectory
- the directory where the storage will be located.- Returns:
- a new
StorageLiveFileProvider
instance. - See Also:
New()
,StorageLiveFileProvider.Builder
,StorageLiveFileProvider.Defaults
-
New
static StorageLiveFileProvider.Default New(ADirectory baseDirectory, ADirectory deletionDirectory, ADirectory truncationDirectory, StorageDirectoryStructureProvider structureProvider, StorageFileNameProvider fileNameProvider, PersistenceTypeDictionaryFileHandler.Creator fileHandlerCreator)- Parameters:
baseDirectory
- may not be null.fileHandlerCreator
- may not be null.deletionDirectory
- may be null.truncationDirectory
- may be null.
-
Builder
Pseudo-constructor method to create a newStorageLiveFileProvider.Builder
instance with the default file system.For explanations and customizing values, see
StorageLiveFileProvider.Builder
.- Returns:
- a new
StorageLiveFileProvider.Builder
instance. - See Also:
Storage.DefaultFileSystem()
-
Builder
Pseudo-constructor method to create a newStorageLiveFileProvider.Builder
instance.For explanations and customizing values, see
StorageLiveFileProvider.Builder
.- Returns:
- a new
StorageLiveFileProvider.Builder
instance.
-