Package org.apache.ignite.configuration
Class PersistentStoreConfiguration
- java.lang.Object
-
- org.apache.ignite.configuration.PersistentStoreConfiguration
-
- All Implemented Interfaces:
Serializable
@Deprecated public class PersistentStoreConfiguration extends Object implements Serializable
Deprecated.UseDataStorageConfigurationinstead.Configures Apache Ignite Persistent store.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CheckpointWriteOrderDFLT_CHECKPOINT_WRITE_ORDERDeprecated.Default checkpoint write order.static intDFLT_CHECKPOINTING_FREQDeprecated.static intDFLT_CHECKPOINTING_THREADSDeprecated.Default number of checkpointing threads.static intDFLT_LOCK_WAIT_TIMEDeprecated.Lock default wait time, 10 sec.static booleanDFLT_METRICS_ENABLEDDeprecated.static intDFLT_RATE_TIME_INTERVAL_MILLISDeprecated.Default length of interval over which rate-based metric is calculated.static intDFLT_SUB_INTERVALSDeprecated.Default amount of sub intervals to calculate rate-based metric.static booleanDFLT_WAL_ALWAYS_WRITE_FULL_PAGESDeprecated.Default wal always write full pages.static StringDFLT_WAL_ARCHIVE_PATHDeprecated.Default wal archive directory.static intDFLT_WAL_FLUSH_FREQDeprecated.Default Wal flush frequency.static intDFLT_WAL_FSYNC_DELAYDeprecated.Default wal fsync delay.static intDFLT_WAL_HISTORY_SIZEDeprecated.Default number of checkpoints to be kept in WAL after checkpoint is finishedstatic WALModeDFLT_WAL_MODEDeprecated.Default wal mode.static intDFLT_WAL_RECORD_ITERATOR_BUFFER_SIZEDeprecated.Default wal record iterator buffer size.static intDFLT_WAL_SEGMENT_SIZEDeprecated.Default WAL file segment size, 64MBytesstatic intDFLT_WAL_SEGMENTSDeprecated.static StringDFLT_WAL_STORE_PATHDeprecated.Default wal directory.static booleanDFLT_WRITE_THROTTLING_ENABLEDDeprecated.Default write throttling enabled.
-
Constructor Summary
Constructors Constructor Description PersistentStoreConfiguration()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetCheckpointingFrequency()Deprecated.Gets checkpointing frequency.longgetCheckpointingPageBufferSize()Deprecated.Gets amount of memory allocated for a checkpointing temporary buffer.intgetCheckpointingThreads()Deprecated.Gets a number of threads to use for the checkpointing purposes.CheckpointWriteOrdergetCheckpointWriteOrder()Deprecated.This property defines order of writing pages to disk storage during checkpoint.org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactorygetFileIOFactory()Deprecated.Factory to provide implementation of FileIO interface which is used for any file read/write operationslonggetLockWaitTime()Deprecated.Time out in milliseonds to wait when acquiring persistence store lock file before failing the local node.StringgetPersistentStorePath()Deprecated.longgetRateTimeInterval()Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.intgetSubIntervals()Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.intgetTlbSize()Deprecated.InsteadgetWalBufferSize()should be used.StringgetWalArchivePath()Deprecated.Gets a path to the WAL archive directory.longgetWalAutoArchiveAfterInactivity()Deprecated.intgetWalBufferSize()Deprecated.longgetWalFlushFrequency()Deprecated.This property define how often WAL will be fsync-ed inBACKGROUNDmode.longgetWalFsyncDelayNanos()Deprecated.intgetWalHistorySize()Deprecated.Gets a total number of checkpoints to keep in the WAL history.WALModegetWalMode()Deprecated.Type define behavior wal fsync.intgetWalRecordIteratorBufferSize()Deprecated.Property define how many bytes iterator read from disk (for one reading), during go ahead wal.intgetWalSegments()Deprecated.Gets a number of WAL segments to work with.intgetWalSegmentSize()Deprecated.Gets size of a WAL segment in bytes.StringgetWalStorePath()Deprecated.Gets a path to the directory where WAL is stored.booleanisAlwaysWriteFullPages()Deprecated.booleanisMetricsEnabled()Deprecated.Gets flag indicating whether persistence metrics collection is enabled.booleanisWriteThrottlingEnabled()Deprecated.PersistentStoreConfigurationsetAlwaysWriteFullPages(boolean alwaysWriteFullPages)Deprecated.PersistentStoreConfigurationsetCheckpointingFrequency(long checkpointingFreq)Deprecated.Sets the checkpointing frequency which is a minimal interval when the dirty pages will be written to the Persistent Store.PersistentStoreConfigurationsetCheckpointingPageBufferSize(long checkpointingPageBufSize)Deprecated.Sets amount of memory allocated for the checkpointing temporary buffer.PersistentStoreConfigurationsetCheckpointingThreads(int checkpointingThreads)Deprecated.Sets a number of threads to use for the checkpointing purposes.PersistentStoreConfigurationsetCheckpointWriteOrder(CheckpointWriteOrder checkpointWriteOrder)Deprecated.This property defines order of writing pages to disk storage during checkpoint.PersistentStoreConfigurationsetFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory fileIOFactory)Deprecated.PersistentStoreConfigurationsetLockWaitTime(long lockWaitTime)Deprecated.Time out in milliseconds to wait when acquiring persistence store lock file before failing the local node.PersistentStoreConfigurationsetMetricsEnabled(boolean metricsEnabled)Deprecated.Sets flag indicating whether persistence metrics collection is enabled.PersistentStoreConfigurationsetPersistentStorePath(String persistenceStorePath)Deprecated.Sets a path to the root directory where the Persistent Store will persist data and indexes.PersistentStoreConfigurationsetRateTimeInterval(long rateTimeInterval)Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.PersistentStoreConfigurationsetSubIntervals(int subIntervals)Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.PersistentStoreConfigurationsetTlbSize(int tlbSize)Deprecated.InsteadsetWalBufferSize(int walBuffSize)should be used.PersistentStoreConfigurationsetWalArchivePath(String walArchivePath)Deprecated.Sets a path for the WAL archive directory.PersistentStoreConfigurationsetWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)Deprecated.Note: setting this value withWALMode.FSYNCmay generate file size overhead for WAL segments in case grid is used rarely.PersistentStoreConfigurationsetWalBufferSize(int walBuffSize)Deprecated.PersistentStoreConfigurationsetWalFlushFrequency(long walFlushFreq)Deprecated.This property define how often WAL will be fsync-ed inBACKGROUNDmode.PersistentStoreConfigurationsetWalFsyncDelayNanos(long walFsyncDelayNanos)Deprecated.PersistentStoreConfigurationsetWalHistorySize(int walHistSize)Deprecated.Sets a total number of checkpoints to keep in the WAL history.PersistentStoreConfigurationsetWalMode(WALMode walMode)Deprecated.PersistentStoreConfigurationsetWalRecordIteratorBufferSize(int walRecordIterBuffSize)Deprecated.PersistentStoreConfigurationsetWalSegments(int walSegments)Deprecated.Sets a number of WAL segments to work with.PersistentStoreConfigurationsetWalSegmentSize(int walSegmentSize)Deprecated.Sets size of a WAL segment.PersistentStoreConfigurationsetWalStorePath(String walStorePath)Deprecated.Sets a path to the directory where WAL is stored .PersistentStoreConfigurationsetWriteThrottlingEnabled(boolean writeThrottlingEnabled)Deprecated.Sets flag indicating whether write throttling is enabled.StringtoString()Deprecated.
-
-
-
Field Detail
-
DFLT_CHECKPOINTING_FREQ
public static final int DFLT_CHECKPOINTING_FREQ
Deprecated.- See Also:
- Constant Field Values
-
DFLT_LOCK_WAIT_TIME
public static final int DFLT_LOCK_WAIT_TIME
Deprecated.Lock default wait time, 10 sec.- See Also:
- Constant Field Values
-
DFLT_METRICS_ENABLED
public static final boolean DFLT_METRICS_ENABLED
Deprecated.- See Also:
- Constant Field Values
-
DFLT_SUB_INTERVALS
public static final int DFLT_SUB_INTERVALS
Deprecated.Default amount of sub intervals to calculate rate-based metric.- See Also:
- Constant Field Values
-
DFLT_RATE_TIME_INTERVAL_MILLIS
public static final int DFLT_RATE_TIME_INTERVAL_MILLIS
Deprecated.Default length of interval over which rate-based metric is calculated.- See Also:
- Constant Field Values
-
DFLT_CHECKPOINTING_THREADS
public static final int DFLT_CHECKPOINTING_THREADS
Deprecated.Default number of checkpointing threads.- See Also:
- Constant Field Values
-
DFLT_CHECKPOINT_WRITE_ORDER
public static final CheckpointWriteOrder DFLT_CHECKPOINT_WRITE_ORDER
Deprecated.Default checkpoint write order.
-
DFLT_WAL_HISTORY_SIZE
public static final int DFLT_WAL_HISTORY_SIZE
Deprecated.Default number of checkpoints to be kept in WAL after checkpoint is finished- See Also:
- Constant Field Values
-
DFLT_WAL_SEGMENTS
public static final int DFLT_WAL_SEGMENTS
Deprecated.- See Also:
- Constant Field Values
-
DFLT_WAL_SEGMENT_SIZE
public static final int DFLT_WAL_SEGMENT_SIZE
Deprecated.Default WAL file segment size, 64MBytes- See Also:
- Constant Field Values
-
DFLT_WAL_MODE
public static final WALMode DFLT_WAL_MODE
Deprecated.Default wal mode.
-
DFLT_WAL_FLUSH_FREQ
public static final int DFLT_WAL_FLUSH_FREQ
Deprecated.Default Wal flush frequency.- See Also:
- Constant Field Values
-
DFLT_WAL_FSYNC_DELAY
public static final int DFLT_WAL_FSYNC_DELAY
Deprecated.Default wal fsync delay.- See Also:
- Constant Field Values
-
DFLT_WAL_RECORD_ITERATOR_BUFFER_SIZE
public static final int DFLT_WAL_RECORD_ITERATOR_BUFFER_SIZE
Deprecated.Default wal record iterator buffer size.- See Also:
- Constant Field Values
-
DFLT_WAL_ALWAYS_WRITE_FULL_PAGES
public static final boolean DFLT_WAL_ALWAYS_WRITE_FULL_PAGES
Deprecated.Default wal always write full pages.- See Also:
- Constant Field Values
-
DFLT_WAL_STORE_PATH
public static final String DFLT_WAL_STORE_PATH
Deprecated.Default wal directory.- See Also:
- Constant Field Values
-
DFLT_WAL_ARCHIVE_PATH
public static final String DFLT_WAL_ARCHIVE_PATH
Deprecated.Default wal archive directory.- See Also:
- Constant Field Values
-
DFLT_WRITE_THROTTLING_ENABLED
public static final boolean DFLT_WRITE_THROTTLING_ENABLED
Deprecated.Default write throttling enabled.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPersistentStorePath
public String getPersistentStorePath()
Deprecated.- Returns:
- Path the root directory where the Persistent Store will persist data and indexes.
-
setPersistentStorePath
public PersistentStoreConfiguration setPersistentStorePath(String persistenceStorePath)
Deprecated.Sets a path to the root directory where the Persistent Store will persist data and indexes. By default the Persistent Store's files are located under Ignite work directory.- Parameters:
persistenceStorePath- Persistence store path.- Returns:
thisfor chaining.
-
getCheckpointingFrequency
public long getCheckpointingFrequency()
Deprecated.Gets checkpointing frequency.- Returns:
- checkpointing frequency in milliseconds.
-
setCheckpointingFrequency
public PersistentStoreConfiguration setCheckpointingFrequency(long checkpointingFreq)
Deprecated.Sets the checkpointing frequency which is a minimal interval when the dirty pages will be written to the Persistent Store. If the rate is high, checkpointing will be triggered more frequently.- Parameters:
checkpointingFreq- checkpointing frequency in milliseconds.- Returns:
thisfor chaining.
-
getCheckpointingPageBufferSize
public long getCheckpointingPageBufferSize()
Deprecated.Gets amount of memory allocated for a checkpointing temporary buffer.- Returns:
- Checkpointing page buffer size in bytes or
0for Ignite to choose the buffer size automatically.
-
setCheckpointingPageBufferSize
public PersistentStoreConfiguration setCheckpointingPageBufferSize(long checkpointingPageBufSize)
Deprecated.Sets amount of memory allocated for the checkpointing temporary buffer. The buffer is used to create temporary copies of pages that are being written to disk and being update in parallel while the checkpointing is in progress.- Parameters:
checkpointingPageBufSize- Checkpointing page buffer size in bytes or0for Ignite to choose the buffer size automatically.- Returns:
thisfor chaining.
-
getCheckpointingThreads
public int getCheckpointingThreads()
Deprecated.Gets a number of threads to use for the checkpointing purposes.- Returns:
- Number of checkpointing threads.
-
setCheckpointingThreads
public PersistentStoreConfiguration setCheckpointingThreads(int checkpointingThreads)
Deprecated.Sets a number of threads to use for the checkpointing purposes.- Parameters:
checkpointingThreads- Number of checkpointing threads. Four threads are used by default.- Returns:
thisfor chaining.
-
getLockWaitTime
public long getLockWaitTime()
Deprecated.Time out in milliseonds to wait when acquiring persistence store lock file before failing the local node.- Returns:
- Lock wait time in milliseconds.
-
setLockWaitTime
public PersistentStoreConfiguration setLockWaitTime(long lockWaitTime)
Deprecated.Time out in milliseconds to wait when acquiring persistence store lock file before failing the local node.- Parameters:
lockWaitTime- Lock wait time in milliseconds.- Returns:
thisfor chaining.
-
getWalHistorySize
public int getWalHistorySize()
Deprecated.Gets a total number of checkpoints to keep in the WAL history.- Returns:
- Number of checkpoints to keep in WAL after a checkpoint is finished.
-
setWalHistorySize
public PersistentStoreConfiguration setWalHistorySize(int walHistSize)
Deprecated.Sets a total number of checkpoints to keep in the WAL history.- Parameters:
walHistSize- Number of checkpoints to keep after a checkpoint is finished.- Returns:
thisfor chaining.
-
getWalSegments
public int getWalSegments()
Deprecated.Gets a number of WAL segments to work with.- Returns:
- Number of work WAL segments.
-
setWalSegments
public PersistentStoreConfiguration setWalSegments(int walSegments)
Deprecated.Sets a number of WAL segments to work with. For performance reasons, the whole WAL is split into files of fixed length called segments.- Parameters:
walSegments- Number of WAL segments.- Returns:
thisfor chaining.
-
getWalSegmentSize
public int getWalSegmentSize()
Deprecated.Gets size of a WAL segment in bytes.- Returns:
- WAL segment size.
-
setWalSegmentSize
public PersistentStoreConfiguration setWalSegmentSize(int walSegmentSize)
Deprecated.Sets size of a WAL segment.- Parameters:
walSegmentSize- WAL segment size. 64 MB is used by default. Maximum value is 2Gb- Returns:
thisfor chaining.
-
getWalStorePath
public String getWalStorePath()
Deprecated.Gets a path to the directory where WAL is stored.- Returns:
- WAL persistence path, absolute or relative to Ignite work directory.
-
setWalStorePath
public PersistentStoreConfiguration setWalStorePath(String walStorePath)
Deprecated.Sets a path to the directory where WAL is stored . If this path is relative, it will be resolved relatively to Ignite work directory.- Parameters:
walStorePath- WAL persistence path, absolute or relative to Ignite work directory.- Returns:
thisfor chaining.
-
getWalArchivePath
public String getWalArchivePath()
Deprecated.Gets a path to the WAL archive directory.- Returns:
- WAL archive directory.
-
setWalArchivePath
public PersistentStoreConfiguration setWalArchivePath(String walArchivePath)
Deprecated.Sets a path for the WAL archive directory. Every WAL segment will be fully copied to this directory before it can be reused for WAL purposes.- Parameters:
walArchivePath- WAL archive directory.- Returns:
thisfor chaining.
-
isMetricsEnabled
public boolean isMetricsEnabled()
Deprecated.Gets flag indicating whether persistence metrics collection is enabled. Default value isDFLT_METRICS_ENABLED.- Returns:
- Metrics enabled flag.
-
setMetricsEnabled
public PersistentStoreConfiguration setMetricsEnabled(boolean metricsEnabled)
Deprecated.Sets flag indicating whether persistence metrics collection is enabled.- Parameters:
metricsEnabled- Metrics enabled flag.- Returns:
thisfor chaining.
-
isWriteThrottlingEnabled
public boolean isWriteThrottlingEnabled()
Deprecated.- Returns:
- Flag indicating whether write throttling is enabled.
-
setWriteThrottlingEnabled
public PersistentStoreConfiguration setWriteThrottlingEnabled(boolean writeThrottlingEnabled)
Deprecated.Sets flag indicating whether write throttling is enabled.- Parameters:
writeThrottlingEnabled- Write throttling enabled flag.- Returns:
thisfor chaining.
-
getRateTimeInterval
@Deprecated public long getRateTimeInterval()
Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.Gets the length of the time interval for rate-based metrics. This interval defines a window over which hits will be tracked. Default value isDFLT_RATE_TIME_INTERVAL_MILLIS.- Returns:
- Time interval in milliseconds.
-
setRateTimeInterval
@Deprecated public PersistentStoreConfiguration setRateTimeInterval(long rateTimeInterval)
Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.Sets the length of the time interval for rate-based metrics. This interval defines a window over which hits will be tracked.- Parameters:
rateTimeInterval- Time interval in milliseconds.- Returns:
thisfor chaining.
-
getSubIntervals
@Deprecated public int getSubIntervals()
Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.Gets the number of sub-intervals to split thegetRateTimeInterval()into to track the update history. Default value isDFLT_SUB_INTERVALS.- Returns:
- The number of sub-intervals for history tracking.
-
setSubIntervals
@Deprecated public PersistentStoreConfiguration setSubIntervals(int subIntervals)
Deprecated.UseMetricsMxBean.configureHitRateMetric(String, long)instead.Sets the number of sub-intervals to split thegetRateTimeInterval()into to track the update history.- Parameters:
subIntervals- The number of sub-intervals for history tracking.- Returns:
thisfor chaining.
-
getWalMode
public WALMode getWalMode()
Deprecated.Type define behavior wal fsync. Different type provide different guarantees for consistency.- Returns:
- WAL mode.
-
setWalMode
public PersistentStoreConfiguration setWalMode(WALMode walMode)
Deprecated.- Parameters:
walMode- Wal mode.- Returns:
thisfor chaining.
-
getTlbSize
@Deprecated public int getTlbSize()
Deprecated.InsteadgetWalBufferSize()should be used.Property defines size of WAL buffer. Each WAL record will be serialized to this buffer before write in WAL file.- Returns:
- WAL buffer size.
-
setTlbSize
@Deprecated public PersistentStoreConfiguration setTlbSize(int tlbSize)
Deprecated.InsteadsetWalBufferSize(int walBuffSize)should be used.- Parameters:
tlbSize- WAL buffer size.- Returns:
thisfor chaining.
-
getWalBufferSize
@Deprecated public int getWalBufferSize()
Deprecated.Property defines size of WAL buffer. Each WAL record will be serialized to this buffer before write in WAL file.- Returns:
- WAL buffer size.
-
setWalBufferSize
@Deprecated public PersistentStoreConfiguration setWalBufferSize(int walBuffSize)
Deprecated.- Parameters:
walBuffSize- WAL buffer size.- Returns:
thisfor chaining.
-
getWalFlushFrequency
public long getWalFlushFrequency()
Deprecated.This property define how often WAL will be fsync-ed inBACKGROUNDmode. Ignored for all other WAL modes.- Returns:
- WAL flush frequency, in milliseconds.
-
setWalFlushFrequency
public PersistentStoreConfiguration setWalFlushFrequency(long walFlushFreq)
Deprecated.This property define how often WAL will be fsync-ed inBACKGROUNDmode. Ignored for all other WAL modes.- Parameters:
walFlushFreq- WAL flush frequency, in milliseconds.- Returns:
thisfor chaining.
-
getWalFsyncDelayNanos
public long getWalFsyncDelayNanos()
Deprecated.- Returns:
- The fsync delay, in nanoseconds.
-
setWalFsyncDelayNanos
public PersistentStoreConfiguration setWalFsyncDelayNanos(long walFsyncDelayNanos)
Deprecated.- Parameters:
walFsyncDelayNanos- Wal fsync delay, in nanoseconds.- Returns:
thisfor chaining.
-
getWalRecordIteratorBufferSize
public int getWalRecordIteratorBufferSize()
Deprecated.Property define how many bytes iterator read from disk (for one reading), during go ahead wal.- Returns:
- Record iterator buffer size.
-
setWalRecordIteratorBufferSize
public PersistentStoreConfiguration setWalRecordIteratorBufferSize(int walRecordIterBuffSize)
Deprecated.- Parameters:
walRecordIterBuffSize- Wal record iterator buffer size.- Returns:
thisfor chaining.
-
isAlwaysWriteFullPages
public boolean isAlwaysWriteFullPages()
Deprecated.- Returns:
- Whether full page must be always written.
-
setAlwaysWriteFullPages
public PersistentStoreConfiguration setAlwaysWriteFullPages(boolean alwaysWriteFullPages)
Deprecated.- Parameters:
alwaysWriteFullPages- Always write full pages.- Returns:
thisfor chaining.
-
getFileIOFactory
public org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory getFileIOFactory()
Deprecated.Factory to provide implementation of FileIO interface which is used for any file read/write operations- Returns:
- File I/O factory
-
setFileIOFactory
public PersistentStoreConfiguration setFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory fileIOFactory)
Deprecated.- Parameters:
fileIOFactory- File I/O factory- Returns:
thisfor chaining.
-
setWalAutoArchiveAfterInactivity
public PersistentStoreConfiguration setWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)
Deprecated.Note: setting this value withWALMode.FSYNCmay generate file size overhead for WAL segments in case grid is used rarely.- Parameters:
walAutoArchiveAfterInactivity- time in millis to run auto archiving segment (even if incomplete) after last record logging.
Positive value enables incomplete segment archiving after timeout (inactivity).
Zero or negative value disables auto archiving.- Returns:
- current configuration instance for chaining
-
getWalAutoArchiveAfterInactivity
public long getWalAutoArchiveAfterInactivity()
Deprecated.- Returns:
- time in millis to run auto archiving WAL segment (even if incomplete) after last record log
-
getCheckpointWriteOrder
public CheckpointWriteOrder getCheckpointWriteOrder()
Deprecated.This property defines order of writing pages to disk storage during checkpoint.- Returns:
- Checkpoint write order.
-
setCheckpointWriteOrder
public PersistentStoreConfiguration setCheckpointWriteOrder(CheckpointWriteOrder checkpointWriteOrder)
Deprecated.This property defines order of writing pages to disk storage during checkpoint.- Parameters:
checkpointWriteOrder- Checkpoint write order.- Returns:
thisfor chaining.
-
-