Class SnapshotFilesRequestMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotFilesRequestMessage
-
- All Implemented Interfaces:
Serializable,Message
public class SnapshotFilesRequestMessage extends Object
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortTYPE_CODESnapshot request message type (value is178).-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description SnapshotFilesRequestMessage()Empty constructor required forExternalizable.SnapshotFilesRequestMessage(String msgId, UUID reqId, String snpName, @Nullable String snpPath, Map<Integer,Set<Integer>> parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortdirectType()Gets message type.bytefieldsCount()Gets fields count.Stringid()voidonAckReceived()Method called when ack message received.Map<Integer,Set<Integer>>parts()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.UUIDrequestId()StringsnapshotName()StringsnapshotPath()StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Field Detail
-
TYPE_CODE
public static final short TYPE_CODE
Snapshot request message type (value is178).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SnapshotFilesRequestMessage
public SnapshotFilesRequestMessage()
Empty constructor required forExternalizable.
-
SnapshotFilesRequestMessage
public SnapshotFilesRequestMessage(String msgId, UUID reqId, String snpName, @Nullable @Nullable String snpPath, Map<Integer,Set<Integer>> parts)
- Parameters:
msgId- Unique message id.reqId- Snapshot operation request ID.snpName- Snapshot name to request.snpPath- Snapshot directory path.parts- Map of cache group ids and corresponding set of its partition ids to be snapshot.
-
-
Method Detail
-
parts
public Map<Integer,Set<Integer>> parts()
- Returns:
- The demanded cache group partitions per each cache group.
-
snapshotName
public String snapshotName()
- Returns:
- Requested snapshot name.
-
snapshotPath
public String snapshotPath()
- Returns:
- Snapshot directory path.
-
requestId
public UUID requestId()
- Returns:
- Snapshot operation request ID.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Returns:
- Fields count.
-
directType
public short directType()
Gets message type.- Returns:
- Message type.
-
toString
public String toString()
-
id
public String id()
- Returns:
- Unique message ID.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
-