Class GridDhtPartitionsAbstractMessage
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheMessage
-
- org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsAbstractMessage
-
- All Implemented Interfaces:
Serializable,Message
- Direct Known Subclasses:
GridDhtPartitionsFullMessage,GridDhtPartitionsSingleMessage,GridDhtPartitionsSingleRequest
public abstract class GridDhtPartitionsAbstractMessage extends GridCacheMessage
Request for single partition info.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected byteflags-
Fields inherited from class org.apache.ignite.internal.processors.cache.GridCacheMessage
addDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEX
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGridDhtPartitionsAbstractMessage()Required byExternalizable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddDeploymentInfo()Deployment enabled flag indicates whether deployment info has to be added to this message.booleancacheGroupMessage()booleancompressed()voidcompressed(boolean compressed)@Nullable GridDhtPartitionExchangeIdexchangeId()voidexchangeId(GridDhtPartitionExchangeId exchId)bytefieldsCount()Gets fields count.@Nullable GridCacheVersionlastVersion()intpartition()booleanpartitionExchangeMessage()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.booleanrestoreState()StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheMessage
appendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, handlerId, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.plugin.extensions.communication.Message
directType
-
-
-
-
Constructor Detail
-
GridDhtPartitionsAbstractMessage
protected GridDhtPartitionsAbstractMessage()
Required byExternalizable.
-
-
Method Detail
-
cacheGroupMessage
public boolean cacheGroupMessage()
- Specified by:
cacheGroupMessagein classGridCacheMessage- Returns:
Trueif cache group message.
-
partition
public int partition()
- Overrides:
partitionin classGridCacheMessage- Returns:
- Partition ID this message is targeted to or
-1if it cannot be determined.
-
addDeploymentInfo
public boolean addDeploymentInfo()
Deployment enabled flag indicates whether deployment info has to be added to this message.- Specified by:
addDeploymentInfoin classGridCacheMessage- Returns:
trueor if deployment info must be added to the the message,falseotherwise.
-
partitionExchangeMessage
public boolean partitionExchangeMessage()
- Overrides:
partitionExchangeMessagein classGridCacheMessage- Returns:
Trueif this message is partition exchange message.
-
exchangeId
@Nullable public @Nullable GridDhtPartitionExchangeId exchangeId()
- Returns:
- Exchange ID.
Nullif message doesn't belong to exchange process.
-
exchangeId
public void exchangeId(GridDhtPartitionExchangeId exchId)
- Parameters:
exchId- Exchange ID.
-
lastVersion
@Nullable public @Nullable GridCacheVersion lastVersion()
- Returns:
- Last used version among all nodes.
-
compressed
public final boolean compressed()
- Returns:
Trueif message data is compressed.
-
compressed
public final void compressed(boolean compressed)
- Parameters:
compressed-Trueif message data is compressed.
-
restoreState
public boolean restoreState()
- Returns:
- Restore exchange state flag.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Overrides:
fieldsCountin classGridCacheMessage- Returns:
- Fields count.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.- Specified by:
writeToin interfaceMessage- Overrides:
writeToin classGridCacheMessage- Parameters:
buf- Byte buffer.writer- Writer.- Returns:
- Whether message was fully written.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.- Specified by:
readFromin interfaceMessage- Overrides:
readFromin classGridCacheMessage- Parameters:
buf- Byte buffer.reader- Reader.- Returns:
- Whether message was fully read.
-
toString
public String toString()
- Overrides:
toStringin classGridCacheMessage
-
-