Package one.microstream.storage.types
Class StorageFileProvider.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageFileProvider.Default
-
- All Implemented Interfaces:
PersistenceTypeDictionaryIoHandler.Provider
,StorageFileProvider
- Enclosing interface:
- StorageFileProvider
public static final class StorageFileProvider.Default extends Object implements StorageFileProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageFileProvider
StorageFileProvider.Builder<B extends StorageFileProvider.Builder<?>>, StorageFileProvider.Default, StorageFileProvider.Defaults, StorageFileProvider.Static
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDictionaryIoHandler.Provider
provideTypeDictionaryIoHandler
-
-
-
-
Method Detail
-
baseDirectory
public String baseDirectory()
-
deletionDirectory
public String deletionDirectory()
-
truncationDirectory
public String truncationDirectory()
-
channelDirectoryPrefix
public String channelDirectoryPrefix()
-
storageFileSuffix
public String storageFileSuffix()
-
typeDictionaryFileName
public String typeDictionaryFileName()
-
lockFileName
public String lockFileName()
-
provideStorageFileName
public final String provideStorageFileName(int channelIndex, long fileNumber)
-
provideTransactionFileName
public final String provideTransactionFileName(int channelIndex)
-
provideTypeDictionaryIoHandler
public PersistenceTypeDictionaryIoHandler provideTypeDictionaryIoHandler(PersistenceTypeDictionaryStorer writeListener)
- Specified by:
provideTypeDictionaryIoHandler
in interfacePersistenceTypeDictionaryIoHandler.Provider
- Specified by:
provideTypeDictionaryIoHandler
in interfaceStorageFileProvider
-
provideChannelDirectory
public final Path provideChannelDirectory(String parentDirectory, int hashIndex)
-
provideChannelDirectory
public Path provideChannelDirectory(int channelIndex)
-
provideDataFile
public final StorageNumberedFile provideDataFile(int channelIndex, long fileNumber)
- Specified by:
provideDataFile
in interfaceStorageFileProvider
-
provideTransactionsFile
public StorageNumberedFile provideTransactionsFile(int channelIndex)
- Specified by:
provideTransactionsFile
in interfaceStorageFileProvider
-
provideLockFile
public StorageLockedFile provideLockFile()
- Specified by:
provideLockFile
in interfaceStorageFileProvider
-
provideDeletionTargetFile
public StorageNumberedFile provideDeletionTargetFile(StorageNumberedFile fileToBeDeleted)
- Specified by:
provideDeletionTargetFile
in interfaceStorageFileProvider
-
provideTruncationBackupTargetFile
public StorageNumberedFile provideTruncationBackupTargetFile(StorageNumberedFile fileToBeTruncated, long newLength)
- Specified by:
provideTruncationBackupTargetFile
in interfaceStorageFileProvider
-
collectDataFiles
public <P extends Consumer<StorageNumberedFile>> P collectDataFiles(P collector, int channelIndex)
- Specified by:
collectDataFiles
in interfaceStorageFileProvider
-
-