org.infinispan.transaction.xa.recovery
Class InDoubtTxInfoImpl

java.lang.Object
  extended by org.infinispan.transaction.xa.recovery.InDoubtTxInfoImpl
All Implemented Interfaces:
RecoveryManager.InDoubtTxInfo

public class InDoubtTxInfoImpl
extends Object
implements RecoveryManager.InDoubtTxInfo

Since:
5.0
Author:
Mircea Markus

Nested Class Summary
static class InDoubtTxInfoImpl.Externalizer
           
 
Constructor Summary
InDoubtTxInfoImpl(Xid xid, long internalId)
           
InDoubtTxInfoImpl(Xid xid, Long internalId, Integer status)
           
InDoubtTxInfoImpl(Xid xid, long internalId, Set<Integer> status)
           
 
Method Summary
 void addOwner(Address owner)
           
 void addStatus(Set<Integer> statusSet)
           
 boolean equals(Object o)
           
 Long getInternalId()
          Each xid has a unique long object associated to it.
 Set<Address> getOwners()
          Returns the set of nodes where this transaction information is maintained.
 Set<Integer> getStatus()
          The value represent transaction's state as described by the Status field.
 Xid getXid()
          Transaction's id.
 int hashCode()
           
 boolean isLocal()
          Returns true if the transaction information is also present on this node.
 void setLocal(boolean local)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InDoubtTxInfoImpl

public InDoubtTxInfoImpl(Xid xid,
                         Long internalId,
                         Integer status)

InDoubtTxInfoImpl

public InDoubtTxInfoImpl(Xid xid,
                         long internalId,
                         Set<Integer> status)

InDoubtTxInfoImpl

public InDoubtTxInfoImpl(Xid xid,
                         long internalId)
Method Detail

getXid

public Xid getXid()
Description copied from interface: RecoveryManager.InDoubtTxInfo
Transaction's id.

Specified by:
getXid in interface RecoveryManager.InDoubtTxInfo

getInternalId

public Long getInternalId()
Description copied from interface: RecoveryManager.InDoubtTxInfo
Each xid has a unique long object associated to it. It makes possible the invocation of recovery operations.

Specified by:
getInternalId in interface RecoveryManager.InDoubtTxInfo

getStatus

public Set<Integer> getStatus()
Description copied from interface: RecoveryManager.InDoubtTxInfo
The value represent transaction's state as described by the Status field. Multiple values are returned as it is possible for an in-doubt transaction to be at the same time e.g. prepared on one node and committed on the other.

Specified by:
getStatus in interface RecoveryManager.InDoubtTxInfo

getOwners

public Set<Address> getOwners()
Description copied from interface: RecoveryManager.InDoubtTxInfo
Returns the set of nodes where this transaction information is maintained.

Specified by:
getOwners in interface RecoveryManager.InDoubtTxInfo

addStatus

public void addStatus(Set<Integer> statusSet)

addOwner

public void addOwner(Address owner)

isLocal

public boolean isLocal()
Description copied from interface: RecoveryManager.InDoubtTxInfo
Returns true if the transaction information is also present on this node.

Specified by:
isLocal in interface RecoveryManager.InDoubtTxInfo

setLocal

public void setLocal(boolean local)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.