Package org.elasticsearch.transport
Class TcpHeader
java.lang.Object
org.elasticsearch.transport.TcpHeader
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final 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:
-
MESSAGE_LENGTH_SIZE
public static final int MESSAGE_LENGTH_SIZE- See Also:
-
REQUEST_ID_SIZE
public static final int REQUEST_ID_SIZE- See Also:
-
STATUS_SIZE
public static final int STATUS_SIZE- See Also:
-
VERSION_ID_SIZE
public static final int VERSION_ID_SIZE- See Also:
-
VARIABLE_HEADER_SIZE
public static final int VARIABLE_HEADER_SIZE- See Also:
-
BYTES_REQUIRED_FOR_MESSAGE_SIZE
public static final int BYTES_REQUIRED_FOR_MESSAGE_SIZE- See Also:
-
VERSION_POSITION
public static final int VERSION_POSITION- See Also:
-
VARIABLE_HEADER_SIZE_POSITION
public static final int VARIABLE_HEADER_SIZE_POSITION- See Also:
-
BYTES_REQUIRED_FOR_VERSION
public static final int BYTES_REQUIRED_FOR_VERSION- See Also:
-
-
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
-