GigaSpaces XAP 9.7.2 API

net.jini.core.transaction.server
Class TransactionParticipantDataImpl

java.lang.Object
  extended by net.jini.core.transaction.server.TransactionParticipantDataImpl
All Implemented Interfaces:
com.gigaspaces.internal.cluster.node.impl.packets.data.IReplicationParticipantsMetadata, com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.ISwapExternalizable, ConsolidatedDistributedTransactionMetaData, TransactionParticipantMetaData, Externalizable, Serializable, TransactionParticipantData

public class TransactionParticipantDataImpl
extends Object
implements TransactionParticipantData, TransactionParticipantMetaData, ConsolidatedDistributedTransactionMetaData, Externalizable, com.gigaspaces.internal.cluster.node.impl.packets.data.IReplicationParticipantsMetadata

Contains ServerTransaction meta data for distributed transactions that have more than 1 participant.

Since:
7.1
Author:
anna
See Also:
Serialized Form

Constructor Summary
TransactionParticipantDataImpl()
           
TransactionParticipantDataImpl(TransactionUniqueId transactionUniqueId, int partitionIdOneBased, int numberOfParticipants)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object getContextId()
           
 int getParticipantId()
          The id of the space that committed the transaction.
 long getTransactionId()
          The id of the distributed transaction
 int getTransactionParticipantsCount()
          Number of participants in transaction
 TransactionUniqueId getTransactionUniqueId()
          The id of the transaction
 int hashCode()
           
 boolean isUnconsoliated()
           
 void readExternal(ObjectInput in)
           
 void readFromSwap(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 void writeToSwap(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionParticipantDataImpl

public TransactionParticipantDataImpl()

TransactionParticipantDataImpl

public TransactionParticipantDataImpl(TransactionUniqueId transactionUniqueId,
                                      int partitionIdOneBased,
                                      int numberOfParticipants)
Parameters:
transactionUniqueId -
partitionIdOneBased -
numberOfParticipants -
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Parameters:
in -
Throws:
IOException
ClassNotFoundException
See Also:
ServerTransaction.readExternal(java.io.ObjectInput)

readFromSwap

public void readFromSwap(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readFromSwap in interface com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.ISwapExternalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Parameters:
out -
Throws:
IOException
See Also:
ServerTransaction.writeExternal(java.io.ObjectOutput)

writeToSwap

public void writeToSwap(ObjectOutput out)
                 throws IOException
Specified by:
writeToSwap in interface com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.ISwapExternalizable
Throws:
IOException

getTransactionId

public long getTransactionId()
Description copied from interface: TransactionParticipantData
The id of the distributed transaction

Specified by:
getTransactionId in interface TransactionParticipantData
Returns:
the transactionId

getTransactionUniqueId

public TransactionUniqueId getTransactionUniqueId()
Description copied from interface: TransactionParticipantMetaData
The id of the transaction

Specified by:
getTransactionUniqueId in interface ConsolidatedDistributedTransactionMetaData
Specified by:
getTransactionUniqueId in interface TransactionParticipantMetaData
Returns:
the transactionId

getParticipantId

public int getParticipantId()
Description copied from interface: TransactionParticipantData
The id of the space that committed the transaction.

Specified by:
getParticipantId in interface com.gigaspaces.internal.cluster.node.impl.packets.data.IReplicationParticipantsMetadata
Specified by:
getParticipantId in interface TransactionParticipantMetaData
Specified by:
getParticipantId in interface TransactionParticipantData
Returns:
the participantId

getTransactionParticipantsCount

public int getTransactionParticipantsCount()
Description copied from interface: TransactionParticipantData
Number of participants in transaction

Specified by:
getTransactionParticipantsCount in interface com.gigaspaces.internal.cluster.node.impl.packets.data.IReplicationParticipantsMetadata
Specified by:
getTransactionParticipantsCount in interface ConsolidatedDistributedTransactionMetaData
Specified by:
getTransactionParticipantsCount in interface TransactionParticipantMetaData
Specified by:
getTransactionParticipantsCount in interface TransactionParticipantData
Returns:
the participantsCount

isUnconsoliated

public boolean isUnconsoliated()

toString

public String toString()
Overrides:
toString in class Object

getContextId

public Object getContextId()
Specified by:
getContextId in interface com.gigaspaces.internal.cluster.node.impl.packets.data.IReplicationParticipantsMetadata

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.