Class GridDhtAffinityAssignmentRequest
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.GridCacheMessage
-
- org.apache.ignite.internal.processors.cache.GridCacheGroupIdMessage
-
- org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtAffinityAssignmentRequest
-
- All Implemented Interfaces:
Serializable,Message
public class GridDhtAffinityAssignmentRequest extends GridCacheGroupIdMessage
Affinity assignment request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.GridCacheGroupIdMessage
grpId
-
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 Constructor Description GridDhtAffinityAssignmentRequest()Empty constructor.GridDhtAffinityAssignmentRequest(long futId, int grpId, AffinityTopologyVersion topVer, boolean sndPartMap)
-
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.shortdirectType()Gets message type.bytefieldsCount()Gets fields count.longfutureId()booleanpartitionExchangeMessage()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.booleansendPartitionsState()AffinityTopologyVersiontopologyVersion()Gets topology version or -1 in case of topology version is not required for this message.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheGroupIdMessage
cacheGroupMessage, groupId, handlerId
-
Methods inherited from class org.apache.ignite.internal.processors.cache.GridCacheMessage
appendFlag, classError, deployInfo, error, finishUnmarshal, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lastAffinityChangedTopologyVersion, lastAffinityChangedTopologyVersion, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, partition, prepare, prepareMarshal, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx
-
-
-
-
Constructor Detail
-
GridDhtAffinityAssignmentRequest
public GridDhtAffinityAssignmentRequest()
Empty constructor.
-
GridDhtAffinityAssignmentRequest
public GridDhtAffinityAssignmentRequest(long futId, int grpId, AffinityTopologyVersion topVer, boolean sndPartMap)- Parameters:
futId- Future ID.grpId- Cache group ID.topVer- Topology version.sndPartMap-Trueif need send in response cache partitions state.
-
-
Method Detail
-
sendPartitionsState
public boolean sendPartitionsState()
- Returns:
Trueif need send in response cache partitions state.
-
futureId
public long futureId()
- Returns:
- Future ID.
-
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.
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
Description copied from class:GridCacheMessageGets topology version or -1 in case of topology version is not required for this message.- Overrides:
topologyVersionin classGridCacheMessage- Returns:
- Requested topology version.
-
directType
public short directType()
Gets message type.- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Overrides:
fieldsCountin classGridCacheGroupIdMessage- Returns:
- Fields count.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.- Specified by:
writeToin interfaceMessage- Overrides:
writeToin classGridCacheGroupIdMessage- 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 classGridCacheGroupIdMessage- Parameters:
buf- Byte buffer.reader- Reader.- Returns:
- Whether message was fully read.
-
toString
public String toString()
- Overrides:
toStringin classGridCacheGroupIdMessage
-
-