public class RaftStorageConfig
extends java.lang.Object
| Constructor and Description |
|---|
RaftStorageConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDirectory(java.lang.String groupName)
Returns the partition data directory.
|
StorageLevel |
getLevel()
Returns the partition storage level.
|
io.atomix.utils.memory.MemorySize |
getMaxEntrySize()
Returns the maximum entry size.
|
io.atomix.utils.memory.MemorySize |
getSegmentSize()
Returns the Raft log segment size.
|
boolean |
isFlushOnCommit()
Returns whether to flush logs to disk on commit.
|
RaftStorageConfig |
setDirectory(java.lang.String directory)
Sets the partition data directory.
|
RaftStorageConfig |
setFlushOnCommit(boolean flushOnCommit)
Sets whether to flush logs to disk on commit.
|
RaftStorageConfig |
setLevel(StorageLevel storageLevel)
Sets the partition storage level.
|
RaftStorageConfig |
setMaxEntrySize(io.atomix.utils.memory.MemorySize maxEntrySize)
Sets the maximum entry size.
|
RaftStorageConfig |
setSegmentSize(io.atomix.utils.memory.MemorySize segmentSize)
Sets the Raft log segment size.
|
public StorageLevel getLevel()
public RaftStorageConfig setLevel(StorageLevel storageLevel)
storageLevel - the partition storage levelpublic io.atomix.utils.memory.MemorySize getSegmentSize()
public RaftStorageConfig setSegmentSize(io.atomix.utils.memory.MemorySize segmentSize)
segmentSize - the Raft log segment sizepublic io.atomix.utils.memory.MemorySize getMaxEntrySize()
public RaftStorageConfig setMaxEntrySize(io.atomix.utils.memory.MemorySize maxEntrySize)
maxEntrySize - the maximum entry sizepublic boolean isFlushOnCommit()
public RaftStorageConfig setFlushOnCommit(boolean flushOnCommit)
flushOnCommit - whether to flush logs to disk on commitpublic java.lang.String getDirectory(java.lang.String groupName)
groupName - the partition group namepublic RaftStorageConfig setDirectory(java.lang.String directory)
directory - the partition data directoryCopyright © 2013-2019. All Rights Reserved.