public class GridDhtTxPrepareRequest<K,V> extends GridDistributedTxPrepareRequest<K,V>
MessageAdapter.TypeverCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEXreader, readState| Constructor and Description |
|---|
GridDhtTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridDhtTxPrepareRequest(IgniteUuid futId,
IgniteUuid miniId,
long topVer,
GridDhtTxLocalAdapter<K,V> tx,
Collection<IgniteTxEntry<K,V>> dhtWrites,
Collection<IgniteTxEntry<K,V>> nearWrites,
IgniteTxKey grpLockKey,
boolean partLock,
Map<UUID,Collection<UUID>> txNodes,
GridCacheVersion nearXidVer,
boolean last,
boolean onePhaseCommit,
UUID subjId,
int taskNameHash) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowForStartup() |
byte |
directType()
Gets message type.
|
void |
finishUnmarshal(GridCacheSharedContext<K,V> ctx,
ClassLoader ldr)
This method is called after the message is deserialized and is responsible for
unmarshalling state marshalled in
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method. |
IgniteUuid |
futureId() |
boolean |
invalidateNearEntry(int idx) |
void |
invalidateNearEntry(int idx,
boolean invalidate) |
boolean |
last() |
void |
markKeyForPreload(int idx)
Marks last added key for preloading.
|
IgniteUuid |
miniId() |
UUID |
nearNodeId() |
Collection<IgniteTxEntry<K,V>> |
nearWrites() |
GridCacheVersion |
nearXidVersion() |
boolean |
needPreloadKey(int idx)
Checks whether entry info should be sent to primary node from backup.
|
Map<IgniteTxKey<K>,GridCacheVersion> |
owned() |
void |
owned(IgniteTxKey<K> key,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
void |
prepareMarshal(GridCacheSharedContext<K,V> ctx)
This method is called before the whole message is serialized
and is responsible for pre-marshalling state.
|
boolean |
readFrom(ByteBuffer buf)
Reads this message from provided byte buffer.
|
UUID |
subjectId() |
int |
taskNameHash() |
long |
topologyVersion()
Gets topology version or -1 in case of topology version is not required for this message.
|
String |
toString() |
boolean |
writeTo(ByteBuffer buf,
MessageWriter writer)
Writes this message to provided byte buffer.
|
addDhtVersion, concurrency, dhtVersions, groupLockKey, isInvalidate, isolation, onePhaseCommit, partitionLock, reads, reads, system, threadId, timeout, transactionNodes, txSize, writes, writes, writeVersioncandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versioncacheId, cacheId, classError, deployInfo, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalFilter, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, marshalValuesCollection, messageId, nextIndexId, onClassError, prepare, prepareFilter, prepareObject, prepareObjects, transactional, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalFilter, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTx, unmarshalValueBytesCollectionsetReader, skipRecoveryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtTxPrepareRequest()
Externalizable.public GridDhtTxPrepareRequest(IgniteUuid futId, IgniteUuid miniId, long topVer, GridDhtTxLocalAdapter<K,V> tx, Collection<IgniteTxEntry<K,V>> dhtWrites, Collection<IgniteTxEntry<K,V>> nearWrites, IgniteTxKey grpLockKey, boolean partLock, Map<UUID,Collection<UUID>> txNodes, GridCacheVersion nearXidVer, boolean last, boolean onePhaseCommit, UUID subjId, int taskNameHash)
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.onePhaseCommit - One phase commit flag.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 int taskNameHash()
public Collection<IgniteTxEntry<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 void markKeyForPreload(int idx)
public boolean needPreloadKey(int idx)
idx - Index.True if value should be sent, false otherwise.public IgniteUuid futureId()
public IgniteUuid miniId()
public long topologyVersion()
GridCacheMessagetopologyVersion in class GridCacheMessage<K,V>public void owned(IgniteTxKey<K> key, GridCacheVersion ownerMapped)
key - Key.ownerMapped - Owner mapped version.public Map<IgniteTxKey<K>,GridCacheVersion> owned()
public void prepareMarshal(GridCacheSharedContext<K,V> ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedTxPrepareRequest<K,V>ctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext<K,V> ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedTxPrepareRequest<K,V>ctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public String toString()
toString in class GridDistributedTxPrepareRequest<K,V>public boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in class GridDistributedTxPrepareRequest<K,V>buf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf)
readFrom in class GridDistributedTxPrepareRequest<K,V>buf - Byte buffer.public byte directType()
directType in class GridDistributedTxPrepareRequest<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015