Package org.apache.storm.messaging.netty
Enum Class ControlMessage
- All Implemented Interfaces:
- Serializable,- Comparable<ControlMessage>,- Constable,- INettySerializable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Method SummaryModifier and TypeMethodDescriptionintstatic ControlMessagemkMessage(short encoded) Create message.static ControlMessageread(byte[] serial) static ControlMessageReturns the enum constant of this class with the specified name.static ControlMessage[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwrite(org.apache.storm.shade.io.netty.buffer.ByteBuf buf) Serialize this object to ByteBuf.
- 
Enum Constant Details- 
CLOSE_MESSAGE
- 
EOB_MESSAGE
- 
OK_RESPONSE
- 
FAILURE_RESPONSE
- 
SASL_TOKEN_MESSAGE_REQUEST
- 
SASL_COMPLETE_REQUEST
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
mkMessageCreate message.- Parameters:
- encoded- status code
- Returns:
- a control message per an encoded status code
 
- 
read
- 
encodeLengthpublic int encodeLength()- Specified by:
- encodeLengthin interface- INettySerializable
 
- 
writepublic void write(org.apache.storm.shade.io.netty.buffer.ByteBuf buf) Description copied from interface:INettySerializableSerialize this object to ByteBuf.- Specified by:
- writein interface- INettySerializable
- Parameters:
- buf- The ByteBuf to serialize to
 
 
-