Package one.microstream.storage.types
Interface StorageFileProvider
-
- All Superinterfaces:
PersistenceTypeDictionaryIoHandler.Provider
- All Known Subinterfaces:
StorageIoHandler
- All Known Implementing Classes:
StorageFileProvider.Default
,StorageIoHandler.Default
public interface StorageFileProvider extends PersistenceTypeDictionaryIoHandler.Provider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StorageFileProvider.Builder<B extends StorageFileProvider.Builder<?>>
static class
StorageFileProvider.Default
static interface
StorageFileProvider.Defaults
static class
StorageFileProvider.Static
-
Method Summary
Modifier and Type Method Description static StorageFileProvider.Builder<?>
Builder()
Pseudo-constructor method to create a newStorageFileProvider.Builder
instance.<P extends Consumer<StorageNumberedFile>>
PcollectDataFiles(P collector, int channelIndex)
static StorageFileProvider
New()
Pseudo-constructor method to create a newStorageFileProvider
instance with default values provided byStorageFileProvider.Defaults
.static StorageFileProvider
New(File storageDirectory)
Pseudo-constructor method to create a newStorageFileProvider
instance with the passedFile
as the storage directory and defaults provided byStorageFileProvider.Defaults
.static StorageFileProvider.Default
New(String baseDirectory, String deletionDirectory, String truncationDirectory, String channelDirectoryPrefix, String storageFilePrefix, String storageFileSuffix, String transactionsFilePrefix, String transactionsFileSuffix, String typeDictionaryFileName, String lockFileName, PersistenceTypeDictionaryFileHandler.Creator fileHandlerCreator)
StorageNumberedFile
provideDataFile(int channelIndex, long fileNumber)
StorageNumberedFile
provideDeletionTargetFile(StorageNumberedFile fileToBeDeleted)
StorageLockedFile
provideLockFile()
StorageNumberedFile
provideTransactionsFile(int channelIndex)
StorageNumberedFile
provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)
PersistenceTypeDictionaryIoHandler
provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryIoHandler.Provider
provideTypeDictionaryIoHandler
-
-
-
-
Method Detail
-
provideTypeDictionaryIoHandler
PersistenceTypeDictionaryIoHandler provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)
- Specified by:
provideTypeDictionaryIoHandler
in interfacePersistenceTypeDictionaryIoHandler.Provider
-
provideDataFile
StorageNumberedFile provideDataFile(int channelIndex, long fileNumber)
-
provideTransactionsFile
StorageNumberedFile provideTransactionsFile(int channelIndex)
-
provideLockFile
StorageLockedFile provideLockFile()
-
provideDeletionTargetFile
StorageNumberedFile provideDeletionTargetFile(StorageNumberedFile fileToBeDeleted)
-
provideTruncationBackupTargetFile
StorageNumberedFile provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)
-
collectDataFiles
<P extends Consumer<StorageNumberedFile>> P collectDataFiles(P collector, int channelIndex)
-
Builder
static StorageFileProvider.Builder<?> Builder()
Pseudo-constructor method to create a newStorageFileProvider.Builder
instance.For explanations and customizing values, see
StorageFileProvider.Builder
.- Returns:
- a new
StorageFileProvider.Builder
instance.
-
New
static StorageFileProvider New()
Pseudo-constructor method to create a newStorageFileProvider
instance with default values provided byStorageFileProvider.Defaults
.For explanations and customizing values, see
StorageFileProvider.Builder
.- Returns:
- a new
StorageFileProvider
instance. - See Also:
New(File)
,StorageFileProvider.Builder
,StorageFileProvider.Defaults
-
New
static StorageFileProvider New(File storageDirectory)
Pseudo-constructor method to create a newStorageFileProvider
instance with the passedFile
as the storage directory and defaults provided byStorageFileProvider.Defaults
.For explanations and customizing values, see
StorageFileProvider.Builder
.- Parameters:
storageDirectory
- the directory where the storage will be located.- Returns:
- a new
StorageFileProvider
instance. - See Also:
New()
,StorageFileProvider.Builder
,StorageFileProvider.Defaults
-
New
static StorageFileProvider.Default New(String baseDirectory, String deletionDirectory, String truncationDirectory, String channelDirectoryPrefix, String storageFilePrefix, String storageFileSuffix, String transactionsFilePrefix, String transactionsFileSuffix, String typeDictionaryFileName, String lockFileName, PersistenceTypeDictionaryFileHandler.Creator fileHandlerCreator)
- Parameters:
baseDirectory
-deletionDirectory
-truncationDirectory
-channelDirectoryPrefix
-storageFilePrefix
-storageFileSuffix
-transactionsFilePrefix
-transactionsFileSuffix
-typeDictionaryFileName
-lockFileName
-fileHandlerCreator
-
-
-