Package org.elasticsearch.transport
Class TcpHeader
java.lang.Object
org.elasticsearch.transport.TcpHeader
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static Version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
headerSize(Version version)
static void
writeHeader(StreamOutput output, long requestId, byte status, Version version, int contentSize, int variableHeaderSize)
-
Field Details
-
VERSION_WITH_HEADER_SIZE
-
MARKER_BYTES_SIZE
public static final int MARKER_BYTES_SIZE- See Also:
- Constant Field Values
-
MESSAGE_LENGTH_SIZE
public static final int MESSAGE_LENGTH_SIZE- See Also:
- Constant Field Values
-
REQUEST_ID_SIZE
public static final int REQUEST_ID_SIZE- See Also:
- Constant Field Values
-
STATUS_SIZE
public static final int STATUS_SIZE- See Also:
- Constant Field Values
-
VERSION_ID_SIZE
public static final int VERSION_ID_SIZE- See Also:
- Constant Field Values
-
VARIABLE_HEADER_SIZE
public static final int VARIABLE_HEADER_SIZE- See Also:
- Constant Field Values
-
BYTES_REQUIRED_FOR_MESSAGE_SIZE
public static final int BYTES_REQUIRED_FOR_MESSAGE_SIZE- See Also:
- Constant Field Values
-
VERSION_POSITION
public static final int VERSION_POSITION- See Also:
- Constant Field Values
-
VARIABLE_HEADER_SIZE_POSITION
public static final int VARIABLE_HEADER_SIZE_POSITION- See Also:
- Constant Field Values
-
BYTES_REQUIRED_FOR_VERSION
public static final int BYTES_REQUIRED_FOR_VERSION- See Also:
- Constant Field Values
-
-
Constructor Details
-
TcpHeader
public TcpHeader()
-
-
Method Details
-
headerSize
-
writeHeader
public static void writeHeader(StreamOutput output, long requestId, byte status, Version version, int contentSize, int variableHeaderSize) throws IOException- Throws:
IOException
-