public static enum Proposal.State extends Enum<Proposal.State>
| Enum Constant and 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 a
KetchLeader. |
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.
|
| Modifier and Type | Method and 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.
|
public static final Proposal.State NEW
KetchLeader.public static final Proposal.State QUEUED
public static final Proposal.State RUNNING
public static final Proposal.State EXECUTED
Proposal.getCommands(), Command.getResult() explain
the success or failure outcome.public static final Proposal.State ABORTED
public static Proposal.State[] values()
for (Proposal.State c : Proposal.State.values()) System.out.println(c);
public static Proposal.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isDone()
Copyright © 2019 Eclipse JGit Project. All rights reserved.