Enum ControlCommand.Action
- java.lang.Object
- 
- java.lang.Enum<ControlCommand.Action>
- 
- org.apache.zookeeper.server.controller.ControlCommand.Action
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<ControlCommand.Action>
 - Enclosing class:
- ControlCommand
 
 public static enum ControlCommand.Action extends Enum<ControlCommand.Action> Actions available to the controller
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ADDDELAYCLOSECONNECTIONELECTNEWLEADEREXPIRESESSIONFAILREQUESTSNORESPONSEPINGREJECTCONNECTIONSRESETSHUTDOWN
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ControlCommand.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static ControlCommand.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
PINGpublic static final ControlCommand.Action PING 
 - 
SHUTDOWNpublic static final ControlCommand.Action SHUTDOWN 
 - 
CLOSECONNECTIONpublic static final ControlCommand.Action CLOSECONNECTION 
 - 
EXPIRESESSIONpublic static final ControlCommand.Action EXPIRESESSION 
 - 
REJECTCONNECTIONSpublic static final ControlCommand.Action REJECTCONNECTIONS 
 - 
ADDDELAYpublic static final ControlCommand.Action ADDDELAY 
 - 
FAILREQUESTSpublic static final ControlCommand.Action FAILREQUESTS 
 - 
NORESPONSEpublic static final ControlCommand.Action NORESPONSE 
 - 
RESETpublic static final ControlCommand.Action RESET 
 - 
ELECTNEWLEADERpublic static final ControlCommand.Action ELECTNEWLEADER 
 
- 
 - 
Method Detail- 
valuespublic static ControlCommand.Action[] 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 (ControlCommand.Action c : ControlCommand.Action.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ControlCommand.Action 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
 
 
- 
 
-