public enum ExitCode extends Enum<ExitCode>
Enum Constant and Description |
---|
ERROR_STARTING_ADMIN_SERVER
Unable to start admin server at ZooKeeper startup
|
EXECUTION_FINISHED
Execution finished normally
|
INVALID_INVOCATION
Invalid arguments during invocations
|
QUORUM_PACKET_ERROR
Unexpected packet from leader, or unable to truncate log on Leader.TRUNC
|
TXNLOG_ERROR_TAKING_SNAPSHOT
Severe error during snapshot IO
|
UNABLE_TO_ACCESS_DATADIR
Cannot access datadir when trying to replicate server
|
UNABLE_TO_BIND_QUORUM_PORT
Unable to bind to the quorum (election) port after multiple retry
|
UNEXPECTED_ERROR
Unexpected errors like IO Exceptions
|
UNMATCHED_TXN_COMMIT
zxid from COMMIT does not match the one from pendingTxns queue
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ExitCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExitCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExitCode EXECUTION_FINISHED
public static final ExitCode UNEXPECTED_ERROR
public static final ExitCode INVALID_INVOCATION
public static final ExitCode UNABLE_TO_ACCESS_DATADIR
public static final ExitCode ERROR_STARTING_ADMIN_SERVER
public static final ExitCode TXNLOG_ERROR_TAKING_SNAPSHOT
public static final ExitCode UNMATCHED_TXN_COMMIT
public static final ExitCode QUORUM_PACKET_ERROR
public static final ExitCode UNABLE_TO_BIND_QUORUM_PORT
public static ExitCode[] values()
for (ExitCode c : ExitCode.values()) System.out.println(c);
public static ExitCode 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 int getValue()
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.