public class GridDhtTxPrepareRequest extends GridDistributedTxPrepareRequest
verCACHE_MSG_INDEX_FIELD_NAME, cacheId, MAX_CACHE_MSG_LOOKUP_INDEX| Constructor and Description |
|---|
GridDhtTxPrepareRequest()
Empty constructor required for
Externalizable. |
GridDhtTxPrepareRequest(IgniteUuid futId,
IgniteUuid miniId,
long topVer,
GridDhtTxLocalAdapter tx,
Collection<IgniteTxEntry> dhtWrites,
Collection<IgniteTxEntry> 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.
|
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. |
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> |
nearWrites() |
GridCacheVersion |
nearXidVersion() |
boolean |
needPreloadKey(int idx)
Checks whether entry info should be sent to primary node from backup.
|
Map<IgniteTxKey,GridCacheVersion> |
owned() |
void |
owned(IgniteTxKey key,
GridCacheVersion ownerMapped)
Sets owner and its mapped version.
|
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.
|
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, policy, reads, reads, system, threadId, timeout, transactionNodes, txSize, writes, writes, writeVersioncandidatesByIndex, candidatesByIndex, candidatesByKey, candidatesByKey, candidatesByKey, committedVersions, completedVersions, keysCount, rolledbackVersions, version, versioncacheId, cacheId, classError, deployInfo, finishUnmarshalCacheObjects, finishUnmarshalCacheObjects, ignoreClassErrors, lookupIndex, marshalBooleanLinkedMap, marshalCollection, marshalInfo, marshalInfos, marshalInvokeArguments, marshalTx, messageId, nextIndexId, onClassError, prepare, prepareMarshalCacheObjects, prepareMarshalCacheObjects, prepareObject, transferExpiryPolicy, unmarshalBooleanLinkedMap, unmarshalCollection, unmarshalInfo, unmarshalInfos, unmarshalInvokeArguments, unmarshalTxclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeployInfo, preparepublic GridDhtTxPrepareRequest()
Externalizable.public GridDhtTxPrepareRequest(IgniteUuid futId, IgniteUuid miniId, long topVer, GridDhtTxLocalAdapter tx, Collection<IgniteTxEntry> dhtWrites, Collection<IgniteTxEntry> 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 GridCacheMessageTrue if this message is preloader message.public UUID nearNodeId()
public int taskNameHash()
public Collection<IgniteTxEntry> 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 GridCacheMessagepublic void owned(IgniteTxKey key, GridCacheVersion ownerMapped)
key - Key.ownerMapped - Owner mapped version.public Map<IgniteTxKey,GridCacheVersion> owned()
public void prepareMarshal(GridCacheSharedContext ctx) throws IgniteCheckedException
prepareMarshal in class GridDistributedTxPrepareRequestctx - IgniteCheckedException - If failed.public void finishUnmarshal(GridCacheSharedContext ctx, ClassLoader ldr) throws IgniteCheckedException
GridCacheMessage.prepareMarshal(GridCacheSharedContext) method.finishUnmarshal in class GridDistributedTxPrepareRequestctx - Context.ldr - Class loader.IgniteCheckedException - If failed.public String toString()
toString in class GridDistributedTxPrepareRequestpublic boolean writeTo(ByteBuffer buf, MessageWriter writer)
writeTo in interface MessagewriteTo in class GridDistributedTxPrepareRequestbuf - Byte buffer.writer - Writer.public boolean readFrom(ByteBuffer buf, MessageReader reader)
readFrom in interface MessagereadFrom in class GridDistributedTxPrepareRequestbuf - Byte buffer.reader - Reader.public byte directType()
directType in interface MessagedirectType in class GridDistributedTxPrepareRequestpublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class GridDistributedTxPrepareRequest
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015