public enum RaftError extends Enum<RaftError>
| 枚举常量和说明 |
|---|
EACCES
Permission denied
|
EAGAIN
Retry again
|
EBADNODE
Node Is In Error
EBADNODE = 10009; |
EBUSY
Server is in busy state
|
ECANCELED
Task is canceled
|
ECATCHUP
Catchup Failed
ECATCHUP = 10003; |
EEXISTS
File/folder already exists
|
EHIGHERTERMREQUEST
Receive Higher Term Requests
EHIGHERTERMREQUEST = 10007; |
EHIGHERTERMRESPONSE
Receive Higher Term Response
EHIGHERTERMRESPONSE = 10008; |
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
ELEADERCONFLICT = 10012; |
ELEADERREMOVED
Trigger step_down(Not All)
ELEADERREMOVED = 10004; |
ELOGDELETED
The log at the given index is deleted
ELOGDELETED = 10014; |
ENEWLEADER
Follower(without leader) or Candidate Receives
ENEWLEADER = 10011; |
ENODESHUTDOWN
Shut_down
ENODESHUTDOWN = 10006; |
ENOENT
Something not found
|
ENOMOREUSERLOG
No available user log to read
ENOMOREUSERLOG = 10015; |
EPERM
Permission issue
|
ERAFTTIMEDOUT
All Kinds of Timeout(Including Election_timeout, Timeout_now, Stepdown_timeout)
ERAFTTIMEDOUT = 10001; |
EREQUEST
Invalid rpc request
|
ESETPEER
Leader Is Not In The New Configuration
ESETPEER = 10005; |
ESHUTDOWN
Service is shutdown
|
ESTALE
Data is stale
|
ESTATEMACHINE
Bad User State Machine
ESTATEMACHINE = 10002; |
ESTOP
Task is stopped
|
ETIMEDOUT
Timed out
|
ETRANSFERLEADERSHIP
Trigger on_leader_stop
ETRANSFERLEADERSHIP = 10013; |
EVOTEFORCANDIDATE
Node Votes For Some Candidate
EVOTEFORCANDIDATE = 10010; |
SUCCESS
Success, no error.
|
UNKNOWN
Unknown error
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
describeCode(int code) |
static RaftError |
forNumber(int value) |
int |
getNumber() |
static RaftError |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RaftError[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
public static RaftError forNumber(int value)
public static String describeCode(int code)
Copyright © 2021. All rights reserved.