org.elasticsearch.transport.support
Class TransportStreams
java.lang.Object
org.elasticsearch.transport.support.TransportStreams
public class TransportStreams
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEADER_SIZE
public static final int HEADER_SIZE
- See Also:
- Constant Field Values
TransportStreams
public TransportStreams()
writeHeader
public static void writeHeader(byte[] data,
int dataLength,
long requestId,
byte status)
statusIsRequest
public static boolean statusIsRequest(byte value)
statusSetRequest
public static byte statusSetRequest(byte value)
statusSetResponse
public static byte statusSetResponse(byte value)
statusIsError
public static boolean statusIsError(byte value)
statusSetError
public static byte statusSetError(byte value)
statusIsCompress
public static boolean statusIsCompress(byte value)
statusSetCompress
public static byte statusSetCompress(byte value)
buildRequest
public static byte[] buildRequest(long requestId,
java.lang.String action,
Streamable message,
TransportRequestOptions options)
throws java.io.IOException
- Throws:
java.io.IOException
buildResponse
public static byte[] buildResponse(long requestId,
Streamable message,
TransportResponseOptions options)
throws java.io.IOException
- Throws:
java.io.IOException