public class IgfsBlocksMessage extends IgfsCommunicationMessage
MessageAdapter.Typereader, readState| Constructor and Description |
|---|
IgfsBlocksMessage()
Empty constructor required by
Externalizable |
IgfsBlocksMessage(IgniteUuid fileId,
long id,
Map<IgfsBlockKey,byte[]> blocks)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<IgfsBlockKey,byte[]> |
blocks() |
byte |
directType()
Gets message type.
|
IgniteUuid |
fileId() |
long |
id() |
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
finishUnmarshal, prepareMarshalsetReader, skipRecoverypublic IgfsBlocksMessage()
Externalizablepublic IgfsBlocksMessage(IgniteUuid fileId, long id, Map<IgfsBlockKey,byte[]> blocks)
fileId - File ID.id - Message id.blocks - Blocks to put in cache.public IgniteUuid fileId()
public long id()
public Map<IgfsBlockKey,byte[]> blocks()
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class IgfsCommunicationMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class IgfsCommunicationMessagebuf - Byte buffer.public byte directType()
directType in class MessageAdapter
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015