public class GridDhtTxPrepareRequest<K,V> extends GridDistributedTxPrepareRequest<K,V>
verCACHE_MSG_INDEX_FIELD_NAME, MAX_CACHE_MSG_LOOKUP_INDEXBIT_SET_NOT_READ, BOOLEAN_ARR_NOT_READ, BYTE_ARR_LIST_NOT_READ, BYTE_ARR_NOT_READ, CACHE_VER_NOT_READ, CHAR_ARR_NOT_READ, CLOCK_DELTA_VER_NOT_READ, commState, DHT_PART_EXCHANGE_ID_NOT_READ, DOUBLE_ARR_NOT_READ, DR_INT_REQ_ENTRY_NOT_READ, ENUM_NOT_READ, FLOAT_ARR_NOT_READ, GRID_UUID_NOT_READ, INT_ARR_NOT_READ, LONG_ARR_NOT_READ, LONG_LIST_NOT_READ, MSG_NOT_READ, NULL, SHORT_ARR_NOT_READ, STR_NOT_READ, UUID_NOT_READ, VAL_BYTES_NOT_READ| Constructor and Description |
|---|
GridDhtTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridDhtTxPrepareRequest(GridUuid futId,
GridUuid miniId,
long topVer,
GridDhtTxLocalAdapter<K,V> tx,
Collection<GridCacheTxEntry<K,V>> dhtWrites,
Collection<GridCacheTxEntry<K,V>> nearWrites,
Object grpLockKey,
boolean partLock,
Map<UUID,Collection<UUID>> txNodes,
GridCacheVersion nearXidVer,
boolean last,
UUID subjId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowForStartup() |
GridTcpCommunicationMessageAdapter |
clone() |
protected void |
clone0(GridTcpCommunicationMessageAdapter _msg)
Clones all fields of the provided message to
this. |
byte |
directType() |
void |
finishUnmarshal(GridCacheContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheContext) method. |
GridUuid |
futureId() |
boolean |
invalidateNearEntry(int idx) |
void |
invalidateNearEntry(int idx,
boolean invalidate) |
boolean |
last() |
GridUuid |
miniId() |
UUID |
nearNodeId() |
Collection<GridCacheTxEntry<K,V>> |
nearWrites() |
GridCacheVersion |
nearXidVersion() |
Map<K,GridCacheVersion> |
owned() |
void |
owned(K key,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
void |
prepareMarshal(GridCacheContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf) |
UUID |
subjectId() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf) |
addDhtVersion, commitVersion, concurrency, dhtVersions, groupLockKey, isInvalidate, isolation, partitionLock, reads, reads, threadId, timeout, transactionNodes, txSize, writes, writescandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versionclassError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalTx, unmarshalValueBytesCollectionarrayIterator, messageReader, messageWriterequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtTxPrepareRequest()
Externalizable.public GridDhtTxPrepareRequest(GridUuid futId, GridUuid miniId, long topVer, GridDhtTxLocalAdapter<K,V> tx, Collection<GridCacheTxEntry<K,V>> dhtWrites, Collection<GridCacheTxEntry<K,V>> nearWrites, Object grpLockKey, boolean partLock, Map<UUID,Collection<UUID>> txNodes, GridCacheVersion nearXidVer, boolean last, UUID subjId)
futId - Future ID.miniId - Mini future ID.topVer - Topology version.tx - Transaction.dhtWrites - DHT writes.nearWrites - Near writes.grpLockKey - Group lock key if preparing group-lock transaction.partLock - True if group-lock transaction locks partition.txNodes - Transaction nodes mapping.nearXidVer - Near transaction ID.last - True if this is last prepare request for node.public boolean last()
True if this is last prepare request for node.public GridCacheVersion nearXidVersion()
public boolean allowForStartup()
allowForStartup in class GridCacheMessage<K,V>True if this message is preloader message.public UUID nearNodeId()
public Collection<GridCacheTxEntry<K,V>> nearWrites()
public void invalidateNearEntry(int idx,
boolean invalidate)
idx - Entry index to set invalidation flag.invalidate - Invalidation flag value.public boolean invalidateNearEntry(int idx)
idx - Index to get invalidation flag value.public GridUuid futureId()
public GridUuid miniId()
public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public void owned(K key, GridCacheVersion ownerMapped)
key - Key.ownerMapped - Owner mapped version.public Map<K,GridCacheVersion> owned()
public void prepareMarshal(GridCacheContext<K,V> ctx) throws GridException
prepareMarshal in class GridDistributedTxPrepareRequest<K,V>ctx - Cache context.GridException - If failed.public void finishUnmarshal(GridCacheContext<K,V> ctx, ClassLoader ldr) throws GridException
GridCacheMessage.prepareMarshal(GridCacheContext) method.finishUnmarshal in class GridDistributedTxPrepareRequest<K,V>ctx - Context.ldr - Class loader.GridException - If failed.public String toString()
toString in class GridDistributedTxPrepareRequest<K,V>public GridTcpCommunicationMessageAdapter clone()
clone in class GridDistributedTxPrepareRequest<K,V>protected void clone0(GridTcpCommunicationMessageAdapter _msg)
this.clone0 in class GridDistributedTxPrepareRequest<K,V>_msg - Message to clone from.public boolean writeTo(ByteBuffer buf)
writeTo in class GridDistributedTxPrepareRequest<K,V>buf - Byte buffer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedTxPrepareRequest<K,V>buf - Byte buffer.public byte directType()
directType in class GridDistributedTxPrepareRequest<K,V>Copyright © 2014. All rights reserved.