| Constructor and Description |
|---|
RaftPartition(PartitionId partitionId,
StorageLevel storageLevel,
long segmentSize,
boolean flushOnCommit,
File dataDirectory) |
| Modifier and Type | Method and Description |
|---|---|
Collection<MemberId> |
backups()
Returns the partition's backups.
|
File |
dataDirectory()
Returns the partition data directory.
|
CompletableFuture<Void> |
delete()
Deletes the partition.
|
boolean |
flushOnCommit()
Returns whether to flush logs to disk on commit.
|
io.atomix.protocols.raft.partition.impl.RaftPartitionClient |
getClient()
Returns the partition client.
|
PartitionId |
id()
Returns the partition identifier.
|
Collection<MemberId> |
members()
Returns the collection of all members in the partition.
|
String |
name()
Returns the partition name.
|
MemberId |
primary()
Returns the partition's current primary.
|
long |
segmentSize()
Returns the log segment size.
|
StorageLevel |
storageLevel()
Returns the Raft partition storage level.
|
long |
term()
Returns the partition term.
|
String |
toString() |
public RaftPartition(PartitionId partitionId, StorageLevel storageLevel, long segmentSize, boolean flushOnCommit, File dataDirectory)
public PartitionId id()
Partitionpublic String name()
public long term()
Partitionpublic MemberId primary()
Partitionpublic Collection<MemberId> backups()
Partitionpublic Collection<MemberId> members()
Partitionpublic StorageLevel storageLevel()
public long segmentSize()
public boolean flushOnCommit()
public File dataDirectory()
public io.atomix.protocols.raft.partition.impl.RaftPartitionClient getClient()
Partitionpublic CompletableFuture<Void> delete()
Copyright © 2013–2018. All rights reserved.