public class GridGgfsMarshaller extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SIZE
Packet header size.
|
| Constructor and Description |
|---|
GridGgfsMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createHeader(long reqId,
GridGgfsIpcCommand cmd)
Creates new header with given request ID and command.
|
static byte[] |
fillHeader(byte[] hdr,
long reqId,
GridGgfsIpcCommand cmd)
Creates new header with given request ID and command.
|
void |
marshall(GridGgfsMessage msg,
byte[] hdr,
ObjectOutput out) |
GridGgfsMessage |
unmarshall(GridGgfsIpcCommand cmd,
byte[] hdr,
ObjectInput in) |
public static final int HEADER_SIZE
public static byte[] createHeader(long reqId,
GridGgfsIpcCommand cmd)
reqId - Request ID.cmd - Command.public static byte[] fillHeader(byte[] hdr,
long reqId,
GridGgfsIpcCommand cmd)
reqId - Request ID.cmd - Command.public void marshall(GridGgfsMessage msg, byte[] hdr, ObjectOutput out) throws org.gridgain.grid.GridException
msg - Message.hdr - Message header.out - Output.org.gridgain.grid.GridException - If failed.public GridGgfsMessage unmarshall(GridGgfsIpcCommand cmd, byte[] hdr, ObjectInput in) throws org.gridgain.grid.GridException
cmd - Command.hdr - Header.in - Input.org.gridgain.grid.GridException - If failed.Copyright © 2014. All rights reserved.