GigaSpaces XAP 8.0 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, Externalizable, Serializable, TransactionParticipantData

public class TransactionParticipantDataImpl
extends Object
implements TransactionParticipantData, 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(long id, int participantId, int participantsCount)
           
TransactionParticipantDataImpl(Object id, int participantId, int participantsCount)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getContextId()
           
 int getParticipantId()
          The id of the space that committed the transaction.
 int getParticipantsCount()
          Number of participants in transaction
 long getTransactionId()
          The id of the distributed transaction
 Object getXid()
           
 int hashCode()
           
 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(long id,
                                      int participantId,
                                      int participantsCount)
Parameters:
mgr -
id -

TransactionParticipantDataImpl

public TransactionParticipantDataImpl(Object id,
                                      int participantId,
                                      int participantsCount)
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

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 TransactionParticipantData
Returns:
the participantId

getParticipantsCount

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

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

getXid

public Object getXid()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getContextId

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

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.