DataStorageConfiguration
instead.@Deprecated public class PersistentStoreConfiguration extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static CheckpointWriteOrder |
DFLT_CHECKPOINT_WRITE_ORDER
Deprecated.
Default checkpoint write order.
|
static int |
DFLT_CHECKPOINTING_FREQ
Deprecated.
|
static int |
DFLT_CHECKPOINTING_THREADS
Deprecated.
Default number of checkpointing threads.
|
static int |
DFLT_LOCK_WAIT_TIME
Deprecated.
Lock default wait time, 10 sec.
|
static boolean |
DFLT_METRICS_ENABLED
Deprecated.
|
static int |
DFLT_RATE_TIME_INTERVAL_MILLIS
Deprecated.
Default length of interval over which rate-based metric is calculated.
|
static int |
DFLT_SUB_INTERVALS
Deprecated.
Default amount of sub intervals to calculate rate-based metric.
|
static boolean |
DFLT_WAL_ALWAYS_WRITE_FULL_PAGES
Deprecated.
Default wal always write full pages.
|
static String |
DFLT_WAL_ARCHIVE_PATH
Deprecated.
Default wal archive directory.
|
static int |
DFLT_WAL_FLUSH_FREQ
Deprecated.
Default Wal flush frequency.
|
static int |
DFLT_WAL_FSYNC_DELAY
Deprecated.
Default wal fsync delay.
|
static int |
DFLT_WAL_HISTORY_SIZE
Deprecated.
Default number of checkpoints to be kept in WAL after checkpoint is finished
|
static WALMode |
DFLT_WAL_MODE
Deprecated.
Default wal mode.
|
static int |
DFLT_WAL_RECORD_ITERATOR_BUFFER_SIZE
Deprecated.
Default wal record iterator buffer size.
|
static int |
DFLT_WAL_SEGMENT_SIZE
Deprecated.
Default WAL file segment size, 64MBytes
|
static int |
DFLT_WAL_SEGMENTS
Deprecated.
|
static String |
DFLT_WAL_STORE_PATH
Deprecated.
Default wal directory.
|
static boolean |
DFLT_WRITE_THROTTLING_ENABLED
Deprecated.
Default write throttling enabled.
|
Constructor and Description |
---|
PersistentStoreConfiguration()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getCheckpointingFrequency()
Deprecated.
Gets checkpointing frequency.
|
long |
getCheckpointingPageBufferSize()
Deprecated.
Gets amount of memory allocated for a checkpointing temporary buffer.
|
int |
getCheckpointingThreads()
Deprecated.
Gets a number of threads to use for the checkpointing purposes.
|
CheckpointWriteOrder |
getCheckpointWriteOrder()
Deprecated.
This property defines order of writing pages to disk storage during checkpoint.
|
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
|
long |
getLockWaitTime()
Deprecated.
Time out in milliseonds to wait when acquiring persistence store lock file before failing the
local node.
|
String |
getPersistentStorePath()
Deprecated.
Returns a path the root directory where the Persistent Store will persist data and indexes.
|
long |
getRateTimeInterval()
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
int |
getSubIntervals()
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
int |
getTlbSize()
Deprecated.
Instead
getWalBufferSize() should be used. |
String |
getWalArchivePath()
Deprecated.
Gets a path to the WAL archive directory.
|
long |
getWalAutoArchiveAfterInactivity()
Deprecated.
|
int |
getWalBufferSize()
Deprecated.
|
long |
getWalFlushFrequency()
Deprecated.
This property define how often WAL will be fsync-ed in
BACKGROUND mode. |
long |
getWalFsyncDelayNanos()
Deprecated.
Gets the fsync delay, in nanoseconds.
|
int |
getWalHistorySize()
Deprecated.
Gets a total number of checkpoints to keep in the WAL history.
|
WALMode |
getWalMode()
Deprecated.
Type define behavior wal fsync.
|
int |
getWalRecordIteratorBufferSize()
Deprecated.
Property define how many bytes iterator read from
disk (for one reading), during go ahead wal.
|
int |
getWalSegments()
Deprecated.
Gets a number of WAL segments to work with.
|
int |
getWalSegmentSize()
Deprecated.
Gets size of a WAL segment in bytes.
|
String |
getWalStorePath()
Deprecated.
Gets a path to the directory where WAL is stored.
|
boolean |
isAlwaysWriteFullPages()
Deprecated.
|
boolean |
isMetricsEnabled()
Deprecated.
Gets flag indicating whether persistence metrics collection is enabled.
|
boolean |
isWriteThrottlingEnabled()
Deprecated.
Gets flag indicating whether write throttling is enabled.
|
PersistentStoreConfiguration |
setAlwaysWriteFullPages(boolean alwaysWriteFullPages)
Deprecated.
|
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.
|
PersistentStoreConfiguration |
setCheckpointingPageBufferSize(long checkpointingPageBufSize)
Deprecated.
Sets amount of memory allocated for the checkpointing temporary buffer.
|
PersistentStoreConfiguration |
setCheckpointingThreads(int checkpointingThreads)
Deprecated.
Sets a number of threads to use for the checkpointing purposes.
|
PersistentStoreConfiguration |
setCheckpointWriteOrder(CheckpointWriteOrder checkpointWriteOrder)
Deprecated.
This property defines order of writing pages to disk storage during checkpoint.
|
PersistentStoreConfiguration |
setFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory fileIOFactory)
Deprecated.
|
PersistentStoreConfiguration |
setLockWaitTime(long lockWaitTime)
Deprecated.
Time out in milliseconds to wait when acquiring persistence store lock file before failing the
local node.
|
PersistentStoreConfiguration |
setMetricsEnabled(boolean metricsEnabled)
Deprecated.
Sets flag indicating whether persistence metrics collection is enabled.
|
PersistentStoreConfiguration |
setPersistentStorePath(String persistenceStorePath)
Deprecated.
Sets a path to the root directory where the Persistent Store will persist data and indexes.
|
PersistentStoreConfiguration |
setRateTimeInterval(long rateTimeInterval)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
PersistentStoreConfiguration |
setSubIntervals(int subIntervals)
Deprecated.
Use
MetricsMxBean.configureHitRateMetric(String, long) instead. |
PersistentStoreConfiguration |
setTlbSize(int tlbSize)
Deprecated.
Instead
setWalBufferSize(int walBuffSize) should be used. |
PersistentStoreConfiguration |
setWalArchivePath(String walArchivePath)
Deprecated.
Sets a path for the WAL archive directory.
|
PersistentStoreConfiguration |
setWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)
Deprecated.
Note: setting this value with
WALMode.FSYNC may generate file size overhead for WAL segments in case
grid is used rarely. |
PersistentStoreConfiguration |
setWalBufferSize(int walBuffSize)
Deprecated.
|
PersistentStoreConfiguration |
setWalFlushFrequency(long walFlushFreq)
Deprecated.
This property define how often WAL will be fsync-ed in
BACKGROUND mode. |
PersistentStoreConfiguration |
setWalFsyncDelayNanos(long walFsyncDelayNanos)
Deprecated.
|
PersistentStoreConfiguration |
setWalHistorySize(int walHistSize)
Deprecated.
Sets a total number of checkpoints to keep in the WAL history.
|
PersistentStoreConfiguration |
setWalMode(WALMode walMode)
Deprecated.
|
PersistentStoreConfiguration |
setWalRecordIteratorBufferSize(int walRecordIterBuffSize)
Deprecated.
|
PersistentStoreConfiguration |
setWalSegments(int walSegments)
Deprecated.
Sets a number of WAL segments to work with.
|
PersistentStoreConfiguration |
setWalSegmentSize(int walSegmentSize)
Deprecated.
Sets size of a WAL segment.
|
PersistentStoreConfiguration |
setWalStorePath(String walStorePath)
Deprecated.
Sets a path to the directory where WAL is stored .
|
PersistentStoreConfiguration |
setWriteThrottlingEnabled(boolean writeThrottlingEnabled)
Deprecated.
Sets flag indicating whether write throttling is enabled.
|
String |
toString()
Deprecated.
|
public static final int DFLT_CHECKPOINTING_FREQ
public static final int DFLT_LOCK_WAIT_TIME
public static final boolean DFLT_METRICS_ENABLED
public static final int DFLT_SUB_INTERVALS
public static final int DFLT_RATE_TIME_INTERVAL_MILLIS
public static final int DFLT_CHECKPOINTING_THREADS
public static final CheckpointWriteOrder DFLT_CHECKPOINT_WRITE_ORDER
public static final int DFLT_WAL_HISTORY_SIZE
public static final int DFLT_WAL_SEGMENTS
public static final int DFLT_WAL_SEGMENT_SIZE
public static final WALMode DFLT_WAL_MODE
public static final int DFLT_WAL_FLUSH_FREQ
public static final int DFLT_WAL_FSYNC_DELAY
public static final int DFLT_WAL_RECORD_ITERATOR_BUFFER_SIZE
public static final boolean DFLT_WAL_ALWAYS_WRITE_FULL_PAGES
public static final String DFLT_WAL_STORE_PATH
public static final String DFLT_WAL_ARCHIVE_PATH
public static final boolean DFLT_WRITE_THROTTLING_ENABLED
public String getPersistentStorePath()
public PersistentStoreConfiguration setPersistentStorePath(String persistenceStorePath)
persistenceStorePath
- Persistence store path.public long getCheckpointingFrequency()
public PersistentStoreConfiguration setCheckpointingFrequency(long checkpointingFreq)
checkpointingFreq
- checkpointing frequency in milliseconds.this
for chaining.public long getCheckpointingPageBufferSize()
0
for Ignite
to choose the buffer size automatically.public PersistentStoreConfiguration setCheckpointingPageBufferSize(long checkpointingPageBufSize)
checkpointingPageBufSize
- Checkpointing page buffer size in bytes or 0
for Ignite to
choose the buffer size automatically.this
for chaining.public int getCheckpointingThreads()
public PersistentStoreConfiguration setCheckpointingThreads(int checkpointingThreads)
checkpointingThreads
- Number of checkpointing threads. Four threads are used by default.this
for chaining.public long getLockWaitTime()
public PersistentStoreConfiguration setLockWaitTime(long lockWaitTime)
lockWaitTime
- Lock wait time in milliseconds.this
for chaining.public int getWalHistorySize()
public PersistentStoreConfiguration setWalHistorySize(int walHistSize)
walHistSize
- Number of checkpoints to keep after a checkpoint is finished.this
for chaining.public int getWalSegments()
public PersistentStoreConfiguration setWalSegments(int walSegments)
walSegments
- Number of WAL segments.this
for chaining.public int getWalSegmentSize()
public PersistentStoreConfiguration setWalSegmentSize(int walSegmentSize)
walSegmentSize
- WAL segment size. 64 MB is used by default. Maximum value is 2Gbthis
for chaining.public String getWalStorePath()
public PersistentStoreConfiguration setWalStorePath(String walStorePath)
walStorePath
- WAL persistence path, absolute or relative to Ignite work directory.this
for chaining.public String getWalArchivePath()
public PersistentStoreConfiguration setWalArchivePath(String walArchivePath)
walArchivePath
- WAL archive directory.this
for chaining.public boolean isMetricsEnabled()
DFLT_METRICS_ENABLED
.public PersistentStoreConfiguration setMetricsEnabled(boolean metricsEnabled)
metricsEnabled
- Metrics enabled flag.public boolean isWriteThrottlingEnabled()
public PersistentStoreConfiguration setWriteThrottlingEnabled(boolean writeThrottlingEnabled)
writeThrottlingEnabled
- Write throttling enabled flag.@Deprecated public long getRateTimeInterval()
MetricsMxBean.configureHitRateMetric(String, long)
instead.DFLT_RATE_TIME_INTERVAL_MILLIS
.@Deprecated public PersistentStoreConfiguration setRateTimeInterval(long rateTimeInterval)
MetricsMxBean.configureHitRateMetric(String, long)
instead.rateTimeInterval
- Time interval in milliseconds.@Deprecated public int getSubIntervals()
MetricsMxBean.configureHitRateMetric(String, long)
instead.getRateTimeInterval()
into to track the update history.
Default value is DFLT_SUB_INTERVALS
.@Deprecated public PersistentStoreConfiguration setSubIntervals(int subIntervals)
MetricsMxBean.configureHitRateMetric(String, long)
instead.getRateTimeInterval()
into to track the update history.subIntervals
- The number of sub-intervals for history tracking.public WALMode getWalMode()
public PersistentStoreConfiguration setWalMode(WALMode walMode)
walMode
- Wal mode.@Deprecated public int getTlbSize()
getWalBufferSize()
should be used.@Deprecated public PersistentStoreConfiguration setTlbSize(int tlbSize)
setWalBufferSize(int walBuffSize)
should be used.tlbSize
- WAL buffer size.@Deprecated public int getWalBufferSize()
@Deprecated public PersistentStoreConfiguration setWalBufferSize(int walBuffSize)
walBuffSize
- WAL buffer size.public long getWalFlushFrequency()
BACKGROUND
mode. Ignored for
all other WAL modes.public PersistentStoreConfiguration setWalFlushFrequency(long walFlushFreq)
BACKGROUND
mode. Ignored for
all other WAL modes.walFlushFreq
- WAL flush frequency, in milliseconds.public long getWalFsyncDelayNanos()
public PersistentStoreConfiguration setWalFsyncDelayNanos(long walFsyncDelayNanos)
walFsyncDelayNanos
- Wal fsync delay, in nanoseconds.public int getWalRecordIteratorBufferSize()
public PersistentStoreConfiguration setWalRecordIteratorBufferSize(int walRecordIterBuffSize)
walRecordIterBuffSize
- Wal record iterator buffer size.public boolean isAlwaysWriteFullPages()
public PersistentStoreConfiguration setAlwaysWriteFullPages(boolean alwaysWriteFullPages)
alwaysWriteFullPages
- Always write full pages.public org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory getFileIOFactory()
public PersistentStoreConfiguration setFileIOFactory(org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory fileIOFactory)
fileIOFactory
- File I/O factorypublic PersistentStoreConfiguration setWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)
WALMode.FSYNC
may generate file size overhead for WAL segments in case
grid is used rarely.walAutoArchiveAfterInactivity
- time in millis to run auto archiving segment (even if incomplete) after last
record logging. public long getWalAutoArchiveAfterInactivity()
public CheckpointWriteOrder getCheckpointWriteOrder()
public PersistentStoreConfiguration setCheckpointWriteOrder(CheckpointWriteOrder checkpointWriteOrder)
checkpointWriteOrder
- Checkpoint write order.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024