public class RaftPartitionGroupConfig extends PartitionGroupConfig<RaftPartitionGroupConfig>
| Constructor and Description |
|---|
RaftPartitionGroupConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDataDirectory()
Returns the partition data directory.
|
Set<String> |
getMembers()
Returns the set of members in the partition group.
|
int |
getPartitionSize()
Returns the partition size.
|
io.atomix.utils.memory.MemorySize |
getSegmentSize()
Returns the Raft log segment size.
|
String |
getStorageLevel()
Returns the partition storage level.
|
PartitionGroup.Type |
getType()
Returns the type name.
|
boolean |
isFlushOnCommit()
Returns whether to flush logs to disk on commit.
|
RaftPartitionGroupConfig |
setDataDirectory(String dataDirectory)
Sets the partition data directory.
|
RaftPartitionGroupConfig |
setFlushOnCommit(boolean flushOnCommit)
Sets whether to flush logs to disk on commit.
|
RaftPartitionGroupConfig |
setMembers(Set<String> members)
Sets the set of members in the partition group.
|
RaftPartitionGroupConfig |
setPartitionSize(int partitionSize)
Sets the partition size.
|
RaftPartitionGroupConfig |
setSegmentSize(io.atomix.utils.memory.MemorySize segmentSize)
Sets the Raft log segment size.
|
RaftPartitionGroupConfig |
setStorageLevel(String storageLevel)
Sets the partition storage level.
|
getName, getPartitions, setName, setPartitionspublic PartitionGroup.Type getType()
TypedConfigpublic Set<String> getMembers()
public RaftPartitionGroupConfig setMembers(Set<String> members)
members - the set of members in the partition grouppublic int getPartitionSize()
public RaftPartitionGroupConfig setPartitionSize(int partitionSize)
partitionSize - the partition sizepublic String getStorageLevel()
public RaftPartitionGroupConfig setStorageLevel(String storageLevel)
storageLevel - the partition storage levelpublic io.atomix.utils.memory.MemorySize getSegmentSize()
public RaftPartitionGroupConfig setSegmentSize(io.atomix.utils.memory.MemorySize segmentSize)
segmentSize - the Raft log segment sizepublic boolean isFlushOnCommit()
public RaftPartitionGroupConfig setFlushOnCommit(boolean flushOnCommit)
flushOnCommit - whether to flush logs to disk on commitpublic String getDataDirectory()
public RaftPartitionGroupConfig setDataDirectory(String dataDirectory)
dataDirectory - the partition data directoryCopyright © 2013–2018. All rights reserved.