public enum RaftError extends Enum<RaftError>
| Enum Constant and Description |
|---|
EACCES
Permission denied
|
EAGAIN
Retry again
|
EBADNODE
Node Is In Error
|
EBUSY
Server is in busy state
|
ECANCELED
Task is canceled
|
ECATCHUP
Catchup Failed
|
EEXISTS
File/folder already exists
|
EHIGHERTERMREQUEST
Receive Higher Term Requests
|
EHIGHERTERMRESPONSE
Receive Higher Term Response
|
EHOSTDOWN
Host is down
|
EINTERNAL
Internal exception
|
EINTR
Interrupted
|
EINVAL
Invalid value.
|
EIO
IO error
|
ELEADERCONFLICT
Append_entries/Install_snapshot Request from a new leader
|
ELEADERREMOVED
Trigger step_down(Not All)
|
ELOGDELETED
The log at the given index is deleted
|
ENEWLEADER
Follower(without leader) or Candidate Receives
|
ENODESHUTDOWN
Shut_down
|
ENOENT
Something not found
|
ENOMOREUSERLOG
No available user log to read
|
EPERM
Permission issue
|
ERAFTTIMEDOUT
All Kinds of Timeout(Including Election_timeout, Timeout_now, Stepdown_timeout)
|
EREQUEST
Invalid rpc request
|
ESETPEER
Leader Is Not In The New Configuration
|
ESHUTDOWN
Service is shutdown
|
ESTALE
Data is stale
|
ESTATEMACHINE
Bad User State Machine
|
ESTOP
Task is stopped
|
ETIMEDOUT
Timed out
|
ETRANSFERLEADERSHIP
Trigger on_leader_stop
|
EVOTEFORCANDIDATE
Node Votes For Some Candidate
|
SUCCESS
Success, no error.
|
UNKNOWN
Unknown error
|
| Modifier and Type | Method and Description |
|---|---|
static String |
describeCode(int code) |
static RaftError |
forNumber(int value) |
int |
getNumber() |
static RaftError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RaftError UNKNOWN
public static final RaftError SUCCESS
public static final RaftError ERAFTTIMEDOUT
All Kinds of Timeout(Including Election_timeout, Timeout_now, Stepdown_timeout)
ERAFTTIMEDOUT = 10001;
public static final RaftError ESTATEMACHINE
Bad User State Machine
ESTATEMACHINE = 10002;
public static final RaftError ECATCHUP
Catchup Failed
ECATCHUP = 10003;
public static final RaftError ELEADERREMOVED
Trigger step_down(Not All)
ELEADERREMOVED = 10004;
public static final RaftError ESETPEER
Leader Is Not In The New Configuration
ESETPEER = 10005;
public static final RaftError ENODESHUTDOWN
Shut_down
ENODESHUTDOWN = 10006;
public static final RaftError EHIGHERTERMREQUEST
Receive Higher Term Requests
EHIGHERTERMREQUEST = 10007;
public static final RaftError EHIGHERTERMRESPONSE
Receive Higher Term Response
EHIGHERTERMRESPONSE = 10008;
public static final RaftError EBADNODE
Node Is In Error
EBADNODE = 10009;
public static final RaftError EVOTEFORCANDIDATE
Node Votes For Some Candidate
EVOTEFORCANDIDATE = 10010;
public static final RaftError ENEWLEADER
Follower(without leader) or Candidate Receives
ENEWLEADER = 10011;
public static final RaftError ELEADERCONFLICT
Append_entries/Install_snapshot Request from a new leader
ELEADERCONFLICT = 10012;
public static final RaftError ETRANSFERLEADERSHIP
Trigger on_leader_stop
ETRANSFERLEADERSHIP = 10013;
public static final RaftError ELOGDELETED
The log at the given index is deleted
ELOGDELETED = 10014;
public static final RaftError ENOMOREUSERLOG
No available user log to read
ENOMOREUSERLOG = 10015;
public static final RaftError EREQUEST
public static final RaftError ESTOP
public static final RaftError EAGAIN
public static final RaftError EINTR
public static final RaftError EINTERNAL
public static final RaftError ECANCELED
public static final RaftError EHOSTDOWN
public static final RaftError ESHUTDOWN
public static final RaftError EPERM
public static final RaftError EBUSY
public static final RaftError ETIMEDOUT
public static final RaftError ESTALE
public static final RaftError ENOENT
public static final RaftError EEXISTS
public static final RaftError EIO
public static final RaftError EINVAL
public static final RaftError EACCES
public static RaftError[] values()
for (RaftError c : RaftError.values()) System.out.println(c);
public static RaftError 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 final int getNumber()
public static RaftError forNumber(int value)
public static String describeCode(int code)
Copyright © 2024. All rights reserved.