Package org.eclipse.jgit.internal.ketch
Enum Proposal.State
- java.lang.Object
-
- java.lang.Enum<Proposal.State>
-
- org.eclipse.jgit.internal.ketch.Proposal.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Proposal.State>
- Enclosing class:
- Proposal
public static enum Proposal.State extends Enum<Proposal.State>
Current state of the proposal.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
Proposal was aborted and did not reach consensus.EXECUTED
Proposal was executed through a round.NEW
Proposal has not yet been given to aKetchLeader
.QUEUED
Proposal was validated and has entered the queue, but a round containing this proposal has not started yet.RUNNING
Round containing the proposal has begun and is in progress.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDone()
static Proposal.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Proposal.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEW
public static final Proposal.State NEW
Proposal has not yet been given to aKetchLeader
.
-
QUEUED
public static final Proposal.State QUEUED
Proposal was validated and has entered the queue, but a round containing this proposal has not started yet.
-
RUNNING
public static final Proposal.State RUNNING
Round containing the proposal has begun and is in progress.
-
EXECUTED
public static final Proposal.State EXECUTED
Proposal was executed through a round. Individual results fromProposal.getCommands()
,Command.getResult()
explain the success or failure outcome.
-
ABORTED
public static final Proposal.State ABORTED
Proposal was aborted and did not reach consensus.
-
-
Method Detail
-
values
public static Proposal.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Proposal.State c : Proposal.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Proposal.State valueOf(String name)
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
-
isDone
public boolean isDone()
- Returns:
- true if this is a terminal state.
-
-