Package io.pravega.shared.protocol.netty
Enum WireCommandType
- java.lang.Object
-
- java.lang.Enum<WireCommandType>
-
- io.pravega.shared.protocol.netty.WireCommandType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WireCommandType>
public enum WireCommandType extends java.lang.Enum<WireCommandType>
The various types of commands that can be sent over the wire. Each has two fields the first is a code that identifies it in the wire protocol. (This is the first thing written) The second is a constructor method, that is used to decode commands of that type. (Types below that are grouped into pairs where there is a corresponding request and reply.)
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()WireCommandreadFrom(EnhancedByteBufInputStream in, int length)static WireCommandTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WireCommandType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HELLO
public static final WireCommandType HELLO
-
PADDING
public static final WireCommandType PADDING
-
PARTIAL_EVENT
public static final WireCommandType PARTIAL_EVENT
-
EVENT
public static final WireCommandType EVENT
-
SETUP_APPEND
public static final WireCommandType SETUP_APPEND
-
APPEND_SETUP
public static final WireCommandType APPEND_SETUP
-
APPEND_BLOCK
public static final WireCommandType APPEND_BLOCK
-
APPEND_BLOCK_END
public static final WireCommandType APPEND_BLOCK_END
-
CONDITIONAL_APPEND
public static final WireCommandType CONDITIONAL_APPEND
-
DATA_APPENDED
public static final WireCommandType DATA_APPENDED
-
CONDITIONAL_CHECK_FAILED
public static final WireCommandType CONDITIONAL_CHECK_FAILED
-
READ_SEGMENT
public static final WireCommandType READ_SEGMENT
-
SEGMENT_READ
public static final WireCommandType SEGMENT_READ
-
GET_STREAM_SEGMENT_INFO
public static final WireCommandType GET_STREAM_SEGMENT_INFO
-
STREAM_SEGMENT_INFO
public static final WireCommandType STREAM_SEGMENT_INFO
-
CREATE_SEGMENT
public static final WireCommandType CREATE_SEGMENT
-
SEGMENT_CREATED
public static final WireCommandType SEGMENT_CREATED
-
SEAL_SEGMENT
public static final WireCommandType SEAL_SEGMENT
-
SEGMENT_SEALED
public static final WireCommandType SEGMENT_SEALED
-
DELETE_SEGMENT
public static final WireCommandType DELETE_SEGMENT
-
SEGMENT_DELETED
public static final WireCommandType SEGMENT_DELETED
-
UPDATE_SEGMENT_POLICY
public static final WireCommandType UPDATE_SEGMENT_POLICY
-
SEGMENT_POLICY_UPDATED
public static final WireCommandType SEGMENT_POLICY_UPDATED
-
GET_SEGMENT_ATTRIBUTE
public static final WireCommandType GET_SEGMENT_ATTRIBUTE
-
SEGMENT_ATTRIBUTE
public static final WireCommandType SEGMENT_ATTRIBUTE
-
UPDATE_SEGMENT_ATTRIBUTE
public static final WireCommandType UPDATE_SEGMENT_ATTRIBUTE
-
SEGMENT_ATTRIBUTE_UPDATED
public static final WireCommandType SEGMENT_ATTRIBUTE_UPDATED
-
TRUNCATE_SEGMENT
public static final WireCommandType TRUNCATE_SEGMENT
-
SEGMENT_TRUNCATED
public static final WireCommandType SEGMENT_TRUNCATED
-
WRONG_HOST
public static final WireCommandType WRONG_HOST
-
SEGMENT_IS_SEALED
public static final WireCommandType SEGMENT_IS_SEALED
-
SEGMENT_ALREADY_EXISTS
public static final WireCommandType SEGMENT_ALREADY_EXISTS
-
NO_SUCH_SEGMENT
public static final WireCommandType NO_SUCH_SEGMENT
-
INVALID_EVENT_NUMBER
public static final WireCommandType INVALID_EVENT_NUMBER
-
SEGMENT_IS_TRUNCATED
public static final WireCommandType SEGMENT_IS_TRUNCATED
-
OPERATION_UNSUPPORTED
public static final WireCommandType OPERATION_UNSUPPORTED
-
MERGE_SEGMENTS
public static final WireCommandType MERGE_SEGMENTS
-
SEGMENTS_MERGED
public static final WireCommandType SEGMENTS_MERGED
-
AUTH_TOKEN_CHECK_FAILED
public static final WireCommandType AUTH_TOKEN_CHECK_FAILED
-
ERROR_MESSAGE
public static final WireCommandType ERROR_MESSAGE
-
CREATE_TABLE_SEGMENT
public static final WireCommandType CREATE_TABLE_SEGMENT
-
DELETE_TABLE_SEGMENT
public static final WireCommandType DELETE_TABLE_SEGMENT
-
MERGE_TABLE_SEGMENTS
public static final WireCommandType MERGE_TABLE_SEGMENTS
-
SEAL_TABLE_SEGMENT
public static final WireCommandType SEAL_TABLE_SEGMENT
-
UPDATE_TABLE_ENTRIES
public static final WireCommandType UPDATE_TABLE_ENTRIES
-
TABLE_ENTRIES_UPDATED
public static final WireCommandType TABLE_ENTRIES_UPDATED
-
REMOVE_TABLE_KEYS
public static final WireCommandType REMOVE_TABLE_KEYS
-
TABLE_KEYS_REMOVED
public static final WireCommandType TABLE_KEYS_REMOVED
-
READ_TABLE
public static final WireCommandType READ_TABLE
-
TABLE_READ
public static final WireCommandType TABLE_READ
-
TABLE_SEGMENT_NOT_EMPTY
public static final WireCommandType TABLE_SEGMENT_NOT_EMPTY
-
TABLE_KEY_DOES_NOT_EXIST
public static final WireCommandType TABLE_KEY_DOES_NOT_EXIST
-
TABLE_KEY_BAD_VERSION
public static final WireCommandType TABLE_KEY_BAD_VERSION
-
READ_TABLE_KEYS
public static final WireCommandType READ_TABLE_KEYS
-
TABLE_KEYS_READ
public static final WireCommandType TABLE_KEYS_READ
-
READ_TABLE_ENTRIES
public static final WireCommandType READ_TABLE_ENTRIES
-
TABLE_ENTRIES_READ
public static final WireCommandType TABLE_ENTRIES_READ
-
TABLE_ENTRIES_DELTA_READ
public static final WireCommandType TABLE_ENTRIES_DELTA_READ
-
READ_TABLE_ENTRIES_DELTA
public static final WireCommandType READ_TABLE_ENTRIES_DELTA
-
CONDITIONAL_BLOCK_END
public static final WireCommandType CONDITIONAL_BLOCK_END
-
KEEP_ALIVE
public static final WireCommandType KEEP_ALIVE
-
-
Method Detail
-
values
public static WireCommandType[] 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 (WireCommandType c : WireCommandType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireCommandType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
-
readFrom
public WireCommand readFrom(EnhancedByteBufInputStream in, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
-