Package org.apache.zookeeper.server
Enum Class ExitCode
- All Implemented Interfaces:
Serializable
,Comparable<ExitCode>
,Constable
Exit code used to exit server
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnable to start admin server at ZooKeeper startupExecution finished normallyInvalid arguments during invocationsUnexpected packet from leader, or unable to truncate log on Leader.TRUNCSevere error during snapshot IOCannot access datadir when trying to replicate serverUnable to bind to the quorum (election) port after multiple retryUnexpected errors like IO Exceptionszxid from COMMIT does not match the one from pendingTxns queue -
Method Summary
-
Enum Constant Details
-
EXECUTION_FINISHED
Execution finished normally -
UNEXPECTED_ERROR
Unexpected errors like IO Exceptions -
INVALID_INVOCATION
Invalid arguments during invocations -
UNABLE_TO_ACCESS_DATADIR
Cannot access datadir when trying to replicate server -
ERROR_STARTING_ADMIN_SERVER
Unable to start admin server at ZooKeeper startup -
TXNLOG_ERROR_TAKING_SNAPSHOT
Severe error during snapshot IO -
UNMATCHED_TXN_COMMIT
zxid from COMMIT does not match the one from pendingTxns queue -
QUORUM_PACKET_ERROR
Unexpected packet from leader, or unable to truncate log on Leader.TRUNC -
UNABLE_TO_BIND_QUORUM_PORT
Unable to bind to the quorum (election) port after multiple retry
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-