Package org.elasticsearch.transport
Class TcpHeader
java.lang.Object
org.elasticsearch.transport.TcpHeader
public class TcpHeader
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static intBYTES_REQUIRED_FOR_MESSAGE_SIZEstatic intBYTES_REQUIRED_FOR_VERSIONstatic intMARKER_BYTES_SIZEstatic intMESSAGE_LENGTH_SIZEstatic intREQUEST_ID_SIZEstatic intSTATUS_SIZEstatic intVARIABLE_HEADER_SIZEstatic intVARIABLE_HEADER_SIZE_POSITIONstatic intVERSION_ID_SIZEstatic intVERSION_POSITIONstatic VersionVERSION_WITH_HEADER_SIZE -
Constructor Summary
Constructors Constructor Description TcpHeader() -
Method Summary
Modifier and Type Method Description static intheaderSize(Version version)static voidwriteHeader(StreamOutput output, long requestId, byte status, Version version, int contentSize, int variableHeaderSize)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 java.io.IOException- Throws:
java.io.IOException
-