Package io.microraft.report
Enum RaftNodeReport.RaftNodeReportReason
java.lang.Object
java.lang.Enum<RaftNodeReport.RaftNodeReportReason>
io.microraft.report.RaftNodeReport.RaftNodeReportReason
- All Implemented Interfaces:
Serializable
,Comparable<RaftNodeReport.RaftNodeReportReason>
,java.lang.constant.Constable
- Enclosing interface:
- RaftNodeReport
public static enum RaftNodeReport.RaftNodeReportReason
extends Enum<RaftNodeReport.RaftNodeReportReason>
Denotes the reason for a given report
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe report is created for aRaftNode.getReport()
call.The report is created when aRaftNode
moves to a new Raft group member list.The report is created when aRaftNode
installs a snapshot that is sent by the currentRaftRole.LEADER
.The report is created on a periodic reporting tick of theRaftNode
.The report is created on when aRaftNode
changes its role or discovers the leader in the current term.The report is created when aRaftNode
changes itsRaftNodeStatus
.The report is created when aRaftNode
takes a snapshot of theStateMachine
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static RaftNodeReport.RaftNodeReportReason[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PERIODIC
The report is created on a periodic reporting tick of theRaftNode
. -
STATUS_CHANGE
The report is created when aRaftNode
changes itsRaftNodeStatus
. -
ROLE_CHANGE
The report is created on when aRaftNode
changes its role or discovers the leader in the current term. -
GROUP_MEMBERS_CHANGE
The report is created when aRaftNode
moves to a new Raft group member list. -
TAKE_SNAPSHOT
The report is created when aRaftNode
takes a snapshot of theStateMachine
-
INSTALL_SNAPSHOT
The report is created when aRaftNode
installs a snapshot that is sent by the currentRaftRole.LEADER
. -
API_CALL
The report is created for aRaftNode.getReport()
call.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-