public class PersistentStoreConfiguration extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_CHECKPOINTING_FREQ |
static int |
DFLT_CHECKPOINTING_THREADS
Default number of checkpointing threads.
|
static int |
DFLT_LOCK_WAIT_TIME
Lock default wait time, 10 sec.
|
static boolean |
DFLT_METRICS_ENABLED |
static int |
DFLT_RATE_TIME_INTERVAL_MILLIS
Default length of interval over which rate-based metric is calculated.
|
static int |
DFLT_SUB_INTERVALS
Default amount of sub intervals to calculate rate-based metric.
|
static int |
DFLT_TLB_SIZE
Default thread local buffer size.
|
static boolean |
DFLT_WAL_ALWAYS_WRITE_FULL_PAGES
Default wal always write full pages.
|
static String |
DFLT_WAL_ARCHIVE_PATH
Default wal archive directory.
|
static int |
DFLT_WAL_FLUSH_FREQ
Default Wal flush frequency.
|
static int |
DFLT_WAL_FSYNC_DELAY
Default wal fsync delay.
|
static int |
DFLT_WAL_HISTORY_SIZE
Default number of checkpoints to be kept in WAL after checkpoint is finished
|
static WALMode |
DFLT_WAL_MODE
Default wal mode.
|
static int |
DFLT_WAL_RECORD_ITERATOR_BUFFER_SIZE
Default wal record iterator buffer size.
|
static int |
DFLT_WAL_SEGMENT_SIZE
Default WAL file segment size, 64MBytes
|
static int |
DFLT_WAL_SEGMENTS |
static String |
DFLT_WAL_STORE_PATH
Default wal directory.
|
| Constructor and Description |
|---|
PersistentStoreConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
long |
getCheckpointingFrequency()
Gets checkpointing frequency.
|
long |
getCheckpointingPageBufferSize()
Gets amount of memory allocated for a checkpointing temporary buffer.
|
int |
getCheckpointingThreads()
Gets a number of threads to use for the checkpointing purposes.
|
FileIOFactory |
getFileIOFactory()
Factory to provide implementation of FileIO interface
which is used for any file read/write operations
|
long |
getLockWaitTime()
Time out in milliseonds to wait when acquiring persistence store lock file before failing the
local node.
|
String |
getPersistentStorePath()
Returns a path the root directory where the Persistent Store will persist data and indexes.
|
long |
getRateTimeInterval()
Gets the length of the time interval for rate-based metrics.
|
int |
getSubIntervals()
Gets the number of sub-intervals to split the
getRateTimeInterval() into to track the update history. |
int |
getTlbSize()
Property define size thread local buffer.
|
String |
getWalArchivePath()
Gets a path to the WAL archive directory.
|
long |
getWalAutoArchiveAfterInactivity() |
long |
getWalFlushFrequency()
This property define how often WAL will be fsync-ed in
BACKGROUND mode. |
long |
getWalFsyncDelayNanos()
Gets the fsync delay, in nanoseconds.
|
int |
getWalHistorySize()
Gets a total number of checkpoints to keep in the WAL history.
|
WALMode |
getWalMode()
Type define behavior wal fsync.
|
int |
getWalRecordIteratorBufferSize()
Property define how many bytes iterator read from
disk (for one reading), during go ahead wal.
|
int |
getWalSegments()
Gets a number of WAL segments to work with.
|
int |
getWalSegmentSize()
Gets size of a WAL segment in bytes.
|
String |
getWalStorePath()
Gets a path to the directory where WAL is stored.
|
boolean |
isAlwaysWriteFullPages() |
boolean |
isMetricsEnabled()
Gets flag indicating whether persistence metrics collection is enabled.
|
PersistentStoreConfiguration |
setAlwaysWriteFullPages(boolean alwaysWriteFullPages) |
PersistentStoreConfiguration |
setCheckpointingFrequency(long checkpointingFreq)
Sets the checkpointing frequency which is a minimal interval when the dirty pages will be written
to the Persistent Store.
|
PersistentStoreConfiguration |
setCheckpointingPageBufferSize(long checkpointingPageBufSize)
Sets amount of memory allocated for the checkpointing temporary buffer.
|
PersistentStoreConfiguration |
setCheckpointingThreads(int checkpointingThreads)
Sets a number of threads to use for the checkpointing purposes.
|
PersistentStoreConfiguration |
setFileIOFactory(FileIOFactory fileIOFactory) |
PersistentStoreConfiguration |
setLockWaitTime(long lockWaitTime)
Time out in milliseconds to wait when acquiring persistence store lock file before failing the
local node.
|
PersistentStoreConfiguration |
setMetricsEnabled(boolean metricsEnabled)
Sets flag indicating whether persistence metrics collection is enabled.
|
PersistentStoreConfiguration |
setPersistentStorePath(String persistenceStorePath)
Sets a path to the root directory where the Persistent Store will persist data and indexes.
|
PersistentStoreConfiguration |
setRateTimeInterval(long rateTimeInterval)
Sets the length of the time interval for rate-based metrics.
|
PersistentStoreConfiguration |
setSubIntervals(int subIntervals)
Sets the number of sub-intervals to split the
getRateTimeInterval() into to track the update history. |
PersistentStoreConfiguration |
setTlbSize(int tlbSize) |
PersistentStoreConfiguration |
setWalArchivePath(String walArchivePath)
Sets a path for the WAL archive directory.
|
PersistentStoreConfiguration |
setWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)
Note: setting this value with
WALMode.DEFAULT may generate file size overhead for WAL segments in case
grid is used rarely. |
PersistentStoreConfiguration |
setWalFlushFrequency(long walFlushFreq)
This property define how often WAL will be fsync-ed in
BACKGROUND mode. |
PersistentStoreConfiguration |
setWalFsyncDelayNanos(long walFsyncDelayNanos) |
PersistentStoreConfiguration |
setWalHistorySize(int walHistSize)
Sets a total number of checkpoints to keep in the WAL history.
|
PersistentStoreConfiguration |
setWalMode(WALMode walMode) |
PersistentStoreConfiguration |
setWalRecordIteratorBufferSize(int walRecordIterBuffSize) |
PersistentStoreConfiguration |
setWalSegments(int walSegments)
Sets a number of WAL segments to work with.
|
PersistentStoreConfiguration |
setWalSegmentSize(int walSegmentSize)
Sets size of a WAL segment.
|
PersistentStoreConfiguration |
setWalStorePath(String walStorePath)
Sets a path to the directory where WAL is stored .
|
String |
toString() |
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 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_TLB_SIZE
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 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. One thread is 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 long getRateTimeInterval()
DFLT_RATE_TIME_INTERVAL_MILLIS.public PersistentStoreConfiguration setRateTimeInterval(long rateTimeInterval)
rateTimeInterval - Time interval in milliseconds.public int getSubIntervals()
getRateTimeInterval() into to track the update history.
Default value is DFLT_SUB_INTERVALS.public PersistentStoreConfiguration setSubIntervals(int subIntervals)
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.public int getTlbSize()
public PersistentStoreConfiguration setTlbSize(int tlbSize)
tlbSize - Tlb 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 FileIOFactory getFileIOFactory()
public PersistentStoreConfiguration setFileIOFactory(FileIOFactory fileIOFactory)
fileIOFactory - File I/O factorypublic PersistentStoreConfiguration setWalAutoArchiveAfterInactivity(long walAutoArchiveAfterInactivity)
WALMode.DEFAULT 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()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.1.0 Release Date : July 20 2017