Class Configuration.Default
java.lang.Object
one.microstream.storage.configuration.Configuration.Default
- All Implemented Interfaces:
- Configuration
- Enclosing interface:
- Configuration
public static class Configuration.Default extends Object implements Configuration
- 
Nested Class SummaryNested classes/interfaces inherited from interface one.microstream.storage.configuration.ConfigurationConfiguration.Default
- 
Constructor SummaryConstructors Constructor Description Default()
- 
Method SummaryModifier and Type Method Description StringgetBackupDirectory()The backup directory.StringgetBaseDirectory()The base directory of the storage in the file system.intgetChannelCount()The number of threads and number of directories used by the storage engine.StringgetChannelDirectoryPrefix()Name prefix of the subdirectories used by the channel threads.booleangetDataFileCleanupHeadFile()A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.intgetDataFileMaximumSize()Maximum file size for a data file to avoid cleaning it up.intgetDataFileMinimumSize()Minimum file size for a data file to avoid cleaning it up.doublegetDataFileMinimumUseRatio()The ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved.StringgetDataFilePrefix()Name prefix of the storage files.StringgetDataFileSuffix()Name suffix of the storage files.StringgetDeletionDirectory()The deletion directory.longgetEntityCacheThreshold()Abstract threshold value for the lifetime of entities in the cache.longgetEntityCacheTimeoutMs()Timeout in milliseconds for the entity cache evaluator.longgetHousekeepingIntervalMs()Interval in milliseconds for the houskeeping.longgetHousekeepingTimeBudgetNs()Number of nanoseconds used for each housekeeping cycle.StringgetLockFileName()StringgetRescuedFileSuffix()StringgetTransactionFilePrefix()Name prefix of the storage transaction file.StringgetTransactionFileSuffix()Name suffix of the storage transaction file.StringgetTruncationDirectory()The truncation directory.StringgetTypeDictionaryFilename()The name of the dictionary file.ConfigurationsetBackupDirectory(String backupDirectory)The backup directory.ConfigurationsetBaseDirectory(String baseDirectory)The base directory of the storage in the file system.ConfigurationsetChannelCount(int channelCount)The number of threads and number of directories used by the storage engine.ConfigurationsetChannelDirectoryPrefix(String channelDirectoryPrefix)Name prefix of the subdirectories used by the channel threads.ConfigurationsetDataFileCleanupHeadFile(boolean dataFileCleanupHeadFile)A flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.ConfigurationsetDataFileMaximumSize(int dataFileMaximumSize)Maximum file size for a data file to avoid cleaning it up.ConfigurationsetDataFileMinimumSize(int dataFileMinimumSize)Minimum file size for a data file to avoid cleaning it up.ConfigurationsetDataFileMinimumUseRatio(double dataFileMinimumUseRatio)The ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved.ConfigurationsetDataFilePrefix(String dataFilePrefix)Name prefix of the storage files.ConfigurationsetDataFileSuffix(String dataFileSuffix)Name suffix of the storage files.ConfigurationsetDeletionDirectory(String deletionDirectory)The deletion directory.ConfigurationsetEntityCacheThreshold(long entityCacheThreshold)Abstract threshold value for the lifetime of entities in the cache.ConfigurationsetEntityCacheTimeoutMs(long entityCacheTimeoutMs)Timeout in milliseconds for the entity cache evaluator.ConfigurationsetHousekeepingIntervalMs(long housekeepingIntervalMs)Interval in milliseconds for the houskeeping.ConfigurationsetHousekeepingTimeBudgetNs(long housekeepingNanoTimeBudgetNs)Number of nanoseconds used for each housekeeping cycle.ConfigurationsetLockFileName(String lockFileName)ConfigurationsetRescuedFileSuffix(String rescuedFileSuffix)ConfigurationsetTransactionFilePrefix(String transactionFilePrefix)Name prefix of the storage transaction file.ConfigurationsetTransactionFileSuffix(String transactionFileSuffix)Name suffix of the storage transaction file.ConfigurationsetTruncationDirectory(String truncationDirectory)The truncation directory.ConfigurationsetTypeDictionaryFilename(String typeDictionaryFilename)The name of the dictionary file.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.storage.configuration.ConfigurationcreateEmbeddedStorageFoundation, exportIni, exportIni, exportIni, exportIni, exportIni, exportIni, exportIni, exportIni, exportXml, exportXml, exportXml, exportXml, exportXml, exportXml, exportXml, exportXml, getDataFileDissolveRatio, getDataFileMaxSize, getDataFileMinSize, getEntityCacheTimeout, getHouseKeepingInterval, getHouseKeepingNanoTimeBudget, setBackupDirectoryInUserHome, setBaseDirectoryInUserHome, setDataFileDissolveRatio, setDataFileMaxSize, setDataFileMinSize, setEntityCacheTimeout, setHouseKeepingInterval, setHouseKeepingNanoTimeBudget
- 
Constructor Details- 
Defaultpublic Default()
 
- 
- 
Method Details- 
setBaseDirectoryDescription copied from interface:ConfigurationThe base directory of the storage in the file system.- Specified by:
- setBaseDirectoryin interface- Configuration
 
- 
getBaseDirectoryDescription copied from interface:ConfigurationThe base directory of the storage in the file system.- Specified by:
- getBaseDirectoryin interface- Configuration
 
- 
setDeletionDirectoryDescription copied from interface:ConfigurationThe deletion directory.- Specified by:
- setDeletionDirectoryin interface- Configuration
 
- 
getDeletionDirectoryDescription copied from interface:ConfigurationThe deletion directory.- Specified by:
- getDeletionDirectoryin interface- Configuration
 
- 
setTruncationDirectoryDescription copied from interface:ConfigurationThe truncation directory.- Specified by:
- setTruncationDirectoryin interface- Configuration
 
- 
getTruncationDirectoryDescription copied from interface:ConfigurationThe truncation directory.- Specified by:
- getTruncationDirectoryin interface- Configuration
 
- 
setBackupDirectoryDescription copied from interface:ConfigurationThe backup directory.- Specified by:
- setBackupDirectoryin interface- Configuration
 
- 
getBackupDirectoryDescription copied from interface:ConfigurationThe backup directory.- Specified by:
- getBackupDirectoryin interface- Configuration
 
- 
setChannelCountDescription copied from interface:ConfigurationThe number of threads and number of directories used by the storage engine. Every thread has exclusive access to its directory. Default is1.- Specified by:
- setChannelCountin interface- Configuration
- Parameters:
- channelCount- the new channel count, must be a power of 2
 
- 
getChannelCountpublic int getChannelCount()Description copied from interface:ConfigurationThe number of threads and number of directories used by the storage engine. Every thread has exclusive access to its directory.- Specified by:
- getChannelCountin interface- Configuration
 
- 
setChannelDirectoryPrefixDescription copied from interface:ConfigurationName prefix of the subdirectories used by the channel threads. Default is"channel_".- Specified by:
- setChannelDirectoryPrefixin interface- Configuration
- Parameters:
- channelDirectoryPrefix- new prefix
 
- 
getChannelDirectoryPrefixDescription copied from interface:ConfigurationName prefix of the subdirectories used by the channel threads.- Specified by:
- getChannelDirectoryPrefixin interface- Configuration
 
- 
setDataFilePrefixDescription copied from interface:ConfigurationName prefix of the storage files. Default is"channel_".- Specified by:
- setDataFilePrefixin interface- Configuration
- Parameters:
- dataFilePrefix- new prefix
 
- 
getDataFilePrefixDescription copied from interface:ConfigurationName prefix of the storage files.- Specified by:
- getDataFilePrefixin interface- Configuration
 
- 
setDataFileSuffixDescription copied from interface:ConfigurationName suffix of the storage files. Default is".dat".- Specified by:
- setDataFileSuffixin interface- Configuration
- Parameters:
- dataFileSuffix- new suffix
 
- 
getDataFileSuffixDescription copied from interface:ConfigurationName suffix of the storage files.- Specified by:
- getDataFileSuffixin interface- Configuration
 
- 
setTransactionFilePrefixDescription copied from interface:ConfigurationName prefix of the storage transaction file. Default is"transactions_".- Specified by:
- setTransactionFilePrefixin interface- Configuration
- Parameters:
- transactionFilePrefix- new prefix
 
- 
getTransactionFilePrefixDescription copied from interface:ConfigurationName prefix of the storage transaction file.- Specified by:
- getTransactionFilePrefixin interface- Configuration
 
- 
setTransactionFileSuffixDescription copied from interface:ConfigurationName suffix of the storage transaction file. Default is".sft".- Specified by:
- setTransactionFileSuffixin interface- Configuration
- Parameters:
- transactionFileSuffix- new suffix
 
- 
getTransactionFileSuffixDescription copied from interface:ConfigurationName suffix of the storage transaction file.- Specified by:
- getTransactionFileSuffixin interface- Configuration
 
- 
setTypeDictionaryFilenameDescription copied from interface:ConfigurationThe name of the dictionary file. Default is"PersistenceTypeDictionary.ptd".- Specified by:
- setTypeDictionaryFilenamein interface- Configuration
- Parameters:
- typeDictionaryFilename- new name
 
- 
getTypeDictionaryFilenameDescription copied from interface:ConfigurationThe name of the dictionary file.- Specified by:
- getTypeDictionaryFilenamein interface- Configuration
 
- 
setRescuedFileSuffix- Specified by:
- setRescuedFileSuffixin interface- Configuration
 
- 
getRescuedFileSuffix- Specified by:
- getRescuedFileSuffixin interface- Configuration
 
- 
setLockFileName- Specified by:
- setLockFileNamein interface- Configuration
 
- 
getLockFileName- Specified by:
- getLockFileNamein interface- Configuration
 
- 
setHousekeepingIntervalMsDescription copied from interface:ConfigurationInterval in milliseconds for the houskeeping. This is work like garbage collection or cache checking. In combination withConfiguration.setHousekeepingTimeBudgetNs(long)the maximum processor time for housekeeping work can be set. Default is1000(every second).- Specified by:
- setHousekeepingIntervalMsin interface- Configuration
- Parameters:
- housekeepingIntervalMs- the new interval
- See Also:
- Configuration.setHousekeepingTimeBudgetNs(long)
 
- 
getHousekeepingIntervalMspublic long getHousekeepingIntervalMs()Description copied from interface:ConfigurationInterval in milliseconds for the houskeeping. This is work like garbage collection or cache checking.- Specified by:
- getHousekeepingIntervalMsin interface- Configuration
- See Also:
- Configuration.getHousekeepingTimeBudgetNs()
 
- 
setHousekeepingTimeBudgetNsDescription copied from interface:ConfigurationNumber of nanoseconds used for each housekeeping cycle. However, no matter how low the number is, one item of work will always be completed. But if there is nothing to clean up, no processor time will be wasted. Default is10000000(10 million nanoseconds = 10 milliseconds = 0.01 seconds).- Specified by:
- setHousekeepingTimeBudgetNsin interface- Configuration
- Parameters:
- housekeepingNanoTimeBudgetNs- the new time budget
- See Also:
- Configuration.setHousekeepingIntervalMs(long)
 
- 
getHousekeepingTimeBudgetNspublic long getHousekeepingTimeBudgetNs()Description copied from interface:ConfigurationNumber of nanoseconds used for each housekeeping cycle. However, no matter how low the number is, one item of work will always be completed. But if there is nothing to clean up, no processor time will be wasted.- Specified by:
- getHousekeepingTimeBudgetNsin interface- Configuration
- See Also:
- Configuration.getHousekeepingIntervalMs()
 
- 
setEntityCacheThresholdDescription copied from interface:ConfigurationAbstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator. Default is1000000000.- Specified by:
- setEntityCacheThresholdin interface- Configuration
- Parameters:
- entityCacheThreshold- the new threshold
 
- 
getEntityCacheThresholdpublic long getEntityCacheThreshold()Description copied from interface:ConfigurationAbstract threshold value for the lifetime of entities in the cache. SeeStorageEntityCacheEvaluator.- Specified by:
- getEntityCacheThresholdin interface- Configuration
 
- 
setEntityCacheTimeoutMsDescription copied from interface:ConfigurationTimeout in milliseconds for the entity cache evaluator. If an entity wasn't accessed in this timespan it will be removed from the cache. Default is86400000(1 day).- Specified by:
- setEntityCacheTimeoutMsin interface- Configuration
- See Also:
- Duration
 
- 
getEntityCacheTimeoutMspublic long getEntityCacheTimeoutMs()Description copied from interface:ConfigurationTimeout in milliseconds for the entity cache evaluator. If an entity wasn't accessed in this timespan it will be removed from the cache.- Specified by:
- getEntityCacheTimeoutMsin interface- Configuration
 
- 
setDataFileMinimumSizeDescription copied from interface:ConfigurationMinimum file size for a data file to avoid cleaning it up. Default is 1024^2 = 1 MiB.- Specified by:
- setDataFileMinimumSizein interface- Configuration
- Parameters:
- dataFileMinimumSize- the new minimum file size
- See Also:
- Configuration.setDataFileMinimumUseRatio(double)
 
- 
getDataFileMinimumSizepublic int getDataFileMinimumSize()Description copied from interface:ConfigurationMinimum file size for a data file to avoid cleaning it up.- Specified by:
- getDataFileMinimumSizein interface- Configuration
- See Also:
- Configuration.getDataFileMinimumUseRatio()
 
- 
setDataFileMaximumSizeDescription copied from interface:ConfigurationMaximum file size for a data file to avoid cleaning it up. Default is 1024^2*8 = 8 MiB.- Specified by:
- setDataFileMaximumSizein interface- Configuration
- Parameters:
- dataFileMaximumSize- the new maximum file size
- See Also:
- Configuration.setDataFileMinimumUseRatio(double)
 
- 
getDataFileMaximumSizepublic int getDataFileMaximumSize()Description copied from interface:ConfigurationMaximum file size for a data file to avoid cleaning it up.- Specified by:
- getDataFileMaximumSizein interface- Configuration
- See Also:
- Configuration.getDataFileMinimumUseRatio()
 
- 
setDataFileMinimumUseRatioDescription copied from interface:ConfigurationThe ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved. "Gap" data is anything that is not the latest version of an entity's data, inluding older versions of an entity and "comment" bytes (a sequence of bytes beginning with its length as a negative value length header).
 The closer this value is to 1.0 (100%), the less disk space is occupied by storage files, but the more file dissolving (data transfers to new files) is required and vice versa.- Specified by:
- setDataFileMinimumUseRatioin interface- Configuration
- Parameters:
- dataFileMinimumUseRatio- the new minimum use ratio
 
- 
getDataFileMinimumUseRatiopublic double getDataFileMinimumUseRatio()Description copied from interface:ConfigurationThe ratio (value in ]0.0;1.0]) of non-gap data contained in a storage file to prevent the file from being dissolved. "Gap" data is anything that is not the latest version of an entity's data, inluding older versions of an entity and "comment" bytes (a sequence of bytes beginning with its length as a negative value length header).
 The closer this value is to 1.0 (100%), the less disk space is occupied by storage files, but the more file dissolving (data transfers to new files) is required and vice versa.- Specified by:
- getDataFileMinimumUseRatioin interface- Configuration
 
- 
setDataFileCleanupHeadFileDescription copied from interface:ConfigurationA flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.- Specified by:
- setDataFileCleanupHeadFilein interface- Configuration
 
- 
getDataFileCleanupHeadFilepublic boolean getDataFileCleanupHeadFile()Description copied from interface:ConfigurationA flag defining wether the current head file (the only file actively written to) shall be subjected to file cleanups as well.- Specified by:
- getDataFileCleanupHeadFilein interface- Configuration
 
 
-