public class IgfsMarshaller extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SIZE
Packet header size.
|
| Constructor and Description |
|---|
IgfsMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createHeader(long reqId,
IgfsIpcCommand cmd)
Creates new header with given request ID and command.
|
static byte[] |
fillHeader(byte[] hdr,
long reqId,
IgfsIpcCommand cmd)
Creates new header with given request ID and command.
|
void |
marshall(IgfsMessage msg,
byte[] hdr,
ObjectOutput out)
Serializes the message and sends it into the given output stream.
|
IgfsMessage |
unmarshall(IgfsIpcCommand cmd,
byte[] hdr,
ObjectInput in) |
public static final int HEADER_SIZE
public static byte[] createHeader(long reqId,
IgfsIpcCommand cmd)
reqId - Request ID.cmd - Command.public static byte[] fillHeader(byte[] hdr,
long reqId,
IgfsIpcCommand cmd)
reqId - Request ID.cmd - Command.public void marshall(IgfsMessage msg, byte[] hdr, ObjectOutput out) throws IgniteCheckedException
msg - Message.hdr - Message header.out - Output.IgniteCheckedException - If failed.public IgfsMessage unmarshall(IgfsIpcCommand cmd, byte[] hdr, ObjectInput in) throws IgniteCheckedException
cmd - Command.hdr - Header.in - Input.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020