Class BambooXidFactoryImpl
java.lang.Object
com.atlassian.bamboo.v2.build.agent.BambooXidFactoryImpl
- All Implemented Interfaces:
org.apache.geronimo.transaction.manager.XidFactory
public class BambooXidFactoryImpl
extends Object
implements org.apache.geronimo.transaction.manager.XidFactory
Factory for transaction ids.
The Xid is constructed of three parts:
- 8 byte count (LSB first)
- 4 byte system id
- 2 byte entropy
- 4 or 16 byte IP address of host
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBranch
(Xid globalId, int branch) boolean
matchesBranchId
(byte[] branchQualifier) boolean
matchesGlobalId
(byte[] globalTransactionId) recover
(int formatId, byte[] globalTransactionid, byte[] branchQualifier)
-
Constructor Details
-
BambooXidFactoryImpl
public BambooXidFactoryImpl(byte[] tmId) -
BambooXidFactoryImpl
public BambooXidFactoryImpl()
-
-
Method Details
-
createXid
- Specified by:
createXid
in interfaceorg.apache.geronimo.transaction.manager.XidFactory
-
createBranch
- Specified by:
createBranch
in interfaceorg.apache.geronimo.transaction.manager.XidFactory
-
matchesGlobalId
public boolean matchesGlobalId(byte[] globalTransactionId) - Specified by:
matchesGlobalId
in interfaceorg.apache.geronimo.transaction.manager.XidFactory
-
matchesBranchId
public boolean matchesBranchId(byte[] branchQualifier) - Specified by:
matchesBranchId
in interfaceorg.apache.geronimo.transaction.manager.XidFactory
-
recover
- Specified by:
recover
in interfaceorg.apache.geronimo.transaction.manager.XidFactory
-