public class GridDhtPartitionsSingleMessage extends GridDhtPartitionsAbstractMessage
flagsaddDepInfo, CACHE_MSG_INDEX_FIELD_NAME, forceAddDepInfo, MAX_CACHE_MSG_LOOKUP_INDEXDIRECT_TYPE_SIZE| Constructor and Description |
|---|
GridDhtPartitionsSingleMessage()
Required by
Externalizable. |
GridDhtPartitionsSingleMessage(GridDhtPartitionExchangeId exchId,
boolean client,
GridCacheVersion lastVer,
boolean compress) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalPartitionMap(int cacheId,
GridDhtPartitionMap locMap,
Integer dupDataCache) |
void |
addPartitionSizes(int grpId,
Map<Integer,Long> partSizesMap)
Adds partition sizes map for specified
grpId to the current message. |
void |
addPartitionUpdateCounters(int grpId,
Object cntrMap) |
Collection<Integer> |
cacheGroupsAffinityRequest() |
boolean |
client() |
short |
directType()
Gets message type.
|
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(GridCacheSharedContext ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
Exception |
getError() |
int |
handlerId() |
void |
partitionHistoryCounters(int grpId,
Map<Integer,Long> cntrMap) |
Map<Integer,GridDhtPartitionMap> |
partitions() |
Map<Integer,Long> |
partitionSizes(int grpId)
Returns partition sizes map for specified
grpId. |
CachePartitionPartialCountersMap |
partitionUpdateCounters(int grpId,
int partsCnt) |
void |
prepareMarshal(GridCacheSharedContext ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf,
MessageReader reader)
Reads this message from provided byte buffer.
|
void |
setError(Exception ex) |
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDeploymentInfo, cacheGroupMessage, compressed, compressed, exchangeId, exchangeId, lastVersion, partition, partitionExchangeMessage, restoreStateappendFlag, classError, deployInfo, error, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, messageLogger, nextIndexId, onAckReceived, onClassError, prepare, prepareMarshalCacheObject, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, prepareObject, topologyVersion, transferExpiryPolicy, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxpublic GridDhtPartitionsSingleMessage()
Externalizable.public GridDhtPartitionsSingleMessage(GridDhtPartitionExchangeId exchId, boolean client, @Nullable GridCacheVersion lastVer, boolean compress)
exchId - Exchange ID.client - Client message flag.lastVer - Last version.compress - True if it is possible to use compression for message.@Nullable public Collection<Integer> cacheGroupsAffinityRequest()
public int handlerId()
handlerId in class GridCacheMessagepublic boolean client()
True if sent from client node.public void addLocalPartitionMap(int cacheId,
GridDhtPartitionMap locMap,
@Nullable
Integer dupDataCache)
cacheId - Cache ID to add local partition for.locMap - Local partition map.dupDataCache - Optional ID of cache with the same partition state map.public void addPartitionUpdateCounters(int grpId,
Object cntrMap)
grpId - Cache group ID.cntrMap - Partition update counters.public CachePartitionPartialCountersMap partitionUpdateCounters(int grpId, int partsCnt)
grpId - Cache group ID.partsCnt - Total cache partitions.public void addPartitionSizes(int grpId,
Map<Integer,Long> partSizesMap)
grpId to the current message.grpId - Group id.partSizesMap - Partition sizes map.public Map<Integer,Long> partitionSizes(int grpId)
grpId.grpId - Group id.public void partitionHistoryCounters(int grpId,
Map<Integer,Long> cntrMap)
grpId - Cache group ID.cntrMap - Partition history counters.public Map<Integer,GridDhtPartitionMap> partitions()
public void setError(Exception ex)
ex - Exception.@Nullable public Exception getError()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridCacheMessagectx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridCacheMessagectx - Context.ldr - Class loader.IgniteCheckedException - If failed.public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDhtPartitionsAbstractMessagebuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDhtPartitionsAbstractMessagebuf - Byte buffer.reader - Reader.public short directType()
public byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDhtPartitionsAbstractMessagepublic String toString()
toString in class GridDhtPartitionsAbstractMessage
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018