Package io.pravega.shared.protocol.netty
Class WireCommands
- java.lang.Object
-
- io.pravega.shared.protocol.netty.WireCommands
-
public final class WireCommands extends java.lang.ObjectThe complete list of all commands that go over the wire between clients and the server. Each command is self-contained providing both it's serialization and deserialization logic. Commands are not nested and contain only primitive types. The types are serialized in the obvious way using Java's DataOutput and DataInput. All data is written BigEndian. Because length and type are detected externally these are not necessary for the classes to supply. Compatible changes (i.e. Adding new members) that would not cause breakage if either the client or the server were running older code can be made at any time. Incompatible changes should instead create a new WireCommand object.
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static intMAX_WIRECOMMAND_SIZEstatic longNULL_ATTRIBUTE_VALUEstatic longNULL_TABLE_SEGMENT_OFFSETstatic intOLDEST_COMPATIBLE_VERSIONstatic intTYPE_PLUS_LENGTH_SIZEstatic intTYPE_SIZEstatic intWIRE_VERSION
-
Constructor Summary
Constructors Constructor Description WireCommands()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WireCommandTypegetType(int value)
-
-
-
Field Detail
-
WIRE_VERSION
public static final int WIRE_VERSION
- See Also:
- Constant Field Values
-
OLDEST_COMPATIBLE_VERSION
public static final int OLDEST_COMPATIBLE_VERSION
- See Also:
- Constant Field Values
-
TYPE_SIZE
public static final int TYPE_SIZE
- See Also:
- Constant Field Values
-
TYPE_PLUS_LENGTH_SIZE
public static final int TYPE_PLUS_LENGTH_SIZE
- See Also:
- Constant Field Values
-
MAX_WIRECOMMAND_SIZE
public static final int MAX_WIRECOMMAND_SIZE
- See Also:
- Constant Field Values
-
NULL_ATTRIBUTE_VALUE
public static final long NULL_ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
-
NULL_TABLE_SEGMENT_OFFSET
public static final long NULL_TABLE_SEGMENT_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public static WireCommandType getType(int value)
-
-