Package org.apache.zookeeper.server
Enum ExitCode
- java.lang.Object
- 
- java.lang.Enum<ExitCode>
- 
- org.apache.zookeeper.server.ExitCode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<ExitCode>
 
 public enum ExitCode extends Enum<ExitCode> Exit code used to exit server
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ERROR_STARTING_ADMIN_SERVERUnable to start admin server at ZooKeeper startupEXECUTION_FINISHEDExecution finished normallyINVALID_INVOCATIONInvalid arguments during invocationsQUORUM_PACKET_ERRORUnexpected packet from leader, or unable to truncate log on Leader.TRUNCTXNLOG_ERROR_TAKING_SNAPSHOTSevere error during snapshot IOUNABLE_TO_ACCESS_DATADIRCannot access datadir when trying to replicate serverUNABLE_TO_BIND_QUORUM_PORTUnable to bind to the quorum (election) port after multiple retryUNEXPECTED_ERRORUnexpected errors like IO ExceptionsUNMATCHED_TXN_COMMITzxid from COMMIT does not match the one from pendingTxns queue
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ExitCodevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
EXECUTION_FINISHEDpublic static final ExitCode EXECUTION_FINISHED Execution finished normally
 - 
UNEXPECTED_ERRORpublic static final ExitCode UNEXPECTED_ERROR Unexpected errors like IO Exceptions
 - 
INVALID_INVOCATIONpublic static final ExitCode INVALID_INVOCATION Invalid arguments during invocations
 - 
UNABLE_TO_ACCESS_DATADIRpublic static final ExitCode UNABLE_TO_ACCESS_DATADIR Cannot access datadir when trying to replicate server
 - 
ERROR_STARTING_ADMIN_SERVERpublic static final ExitCode ERROR_STARTING_ADMIN_SERVER Unable to start admin server at ZooKeeper startup
 - 
TXNLOG_ERROR_TAKING_SNAPSHOTpublic static final ExitCode TXNLOG_ERROR_TAKING_SNAPSHOT Severe error during snapshot IO
 - 
UNMATCHED_TXN_COMMITpublic static final ExitCode UNMATCHED_TXN_COMMIT zxid from COMMIT does not match the one from pendingTxns queue
 - 
QUORUM_PACKET_ERRORpublic static final ExitCode QUORUM_PACKET_ERROR Unexpected packet from leader, or unable to truncate log on Leader.TRUNC
 - 
UNABLE_TO_BIND_QUORUM_PORTpublic static final ExitCode UNABLE_TO_BIND_QUORUM_PORT Unable to bind to the quorum (election) port after multiple retry
 
- 
 - 
Method Detail- 
valuespublic static ExitCode[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExitCode c : ExitCode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ExitCode valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
getValuepublic int getValue() 
 
- 
 
-