| java.lang.Object org.objectweb.jotm.XidImpl
XidImpl | public class XidImpl implements Xid,Serializable(Code) | | Xid implementation for JTA
XID has the following format as defined by X/Open Specification:
XID
long formatId format identifier
long gtrid_length value 1-64
long bqual_length value 1-64
byte data [XIDDATASIZE] where XIDDATASIZE = 128
The data field comprises at most two contiguous components:
a global transaction identifier (gtrid) and a branch qualifier (bqual)
which are defined as:
byte gtrid [1-64] global transaction identfier
byte bqual [1-64] branch qualifier
|
Constructor Summary | |
public | XidImpl(String serverName, int ipAddr) | public | XidImpl(int fid, int bqualsz, byte[] tid) | public | XidImpl(int formatId, byte[] gtrid, byte[] bqual) | public | XidImpl() | public | XidImpl(Xid oldXid, int index) build a new Xid from an existing Xid, preserving the gtrid,
and using the 'index' as part of the unique but recognizable BQual. | public | XidImpl(ByteBuffer XidByteBuffer) Construct an Xid from a byteBuffer. | public | XidImpl(byte[] XidByteArray) Construct an Xid from a byte array. | public | XidImpl(javax.transaction.xa.Xid passedXid) The xid was passed from an external EIS (inflow transaction). |
JOTM_FORMAT_ID | final public static int JOTM_FORMAT_ID(Code) | | |
XidImpl | public XidImpl(String serverName, int ipAddr)(Code) | | Build an Xid for a local transaction
|
XidImpl | public XidImpl(int fid, int bqualsz, byte[] tid)(Code) | | Build an Xid from an otid_t CORBA
|
XidImpl | public XidImpl(int formatId, byte[] gtrid, byte[] bqual)(Code) | | build Xid with all its components
(for performance on java serialization)
|
XidImpl | public XidImpl()(Code) | | build a new Xid with a null BQual
|
XidImpl | public XidImpl(Xid oldXid, int index)(Code) | | build a new Xid from an existing Xid, preserving the gtrid,
and using the 'index' as part of the unique but recognizable BQual.
The important thing is that this method must return the same result
on successive calls given the same input.
|
XidImpl | public XidImpl(ByteBuffer XidByteBuffer)(Code) | | Construct an Xid from a byteBuffer. This is necessary for use
during recovery when the Xid has been converted to a String so
that it can be written to a file. The Xid must be reconstructed
from the byte array resulting from toString(true). Note that the
byte array includes ':' characters as separators between
components.
NOTE: Current position of input ByteBuffer is employed!!
|
XidImpl | public XidImpl(byte[] XidByteArray)(Code) | | Construct an Xid from a byte array. This is necessary for use
during recovery when the Xid has been converted to a byte array so
that it can be written to the Howl log. The Xid must be reconstructed
from the byte array resulting from toString(true). Note that the
byte array includes ':' characters as separators between components.
|
XidImpl | public XidImpl(javax.transaction.xa.Xid passedXid)(Code) | | The xid was passed from an external EIS (inflow transaction).
Need to store the formatId, gtrid.length, bqual.length, gtrid,
and bqual from the passed xid.
|
IsThisOneOfOurs | public boolean IsThisOneOfOurs(byte[] gtrid_or_bqual)(Code) | | |
byteToHex | final static void byteToHex(byte inbyte, StringBuffer str_buff)(Code) | | Hex Dump of byte
|
equals | public boolean equals(Object obj2)(Code) | | return true if objects are identical
|
getBranchQualifier | public byte[] getBranchQualifier()(Code) | | Get the Branch Qualifier for that Xid
|
getFormatId | public int getFormatId()(Code) | | Get the format id for that Xid
|
getGlobalTransactionId | public byte[] getGlobalTransactionId()(Code) | | Get the Global Id for that Xid
|
hashCode | public int hashCode()(Code) | | return a hashcode value for this object
|
setUuids | public static void setUuids(long passedUuid0, long passedUuid1)(Code) | | Provide static interface to recover uuid0 & uuid1 after journal
replay.
|
toString | public String toString()(Code) | | String form
default toString() compresses Xid's
|
|
|