| Modifier and Type | Field and Description |
|---|---|
| private DRDAConnThread | |
| private DDMReader | |
| private DDMWriter | |
| private Xid | xid
Holds the Xid of the global transaction associated with the corresponding DRDAConnThread (and connection itself). |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | commitTransaction(Xid
- XID (formatId = -1 for local transaction) xid, int - xaflags xaflags)Commit the xa transaction. |
| private void | |
| private void | |
| private void | |
| pack-priv ResourceAdapter | |
| private XAResource | |
| protected void | |
| protected int | parseSYNCTYPE()
parse SYNCTYPE for XAMGR lvl 7 return synctype value CodePoint.SYNCTYPE_NEW_UOW -> XAResource.start() CodePoint.SYNCTYPE_END_UOW -> XAResource.end() CodePoint.SYNCTYPE_PREPARE -> XAResource.prepare() CodePoint.SYNCTYPE_MIGRATE -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_REQ_COMMIT -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_COMMITTED -> XAResource.commit() or local commit for null XID CodePoint.SYNCTYPE_REQ_LOG -> not supported CodePoint.SYNCTYPE_REQ_FORGET -> XAResource.forget() CodePoint.SYNCTYPE_ROLLBACK -> XAResource.rollback() CodePoint.SYNCTYPE_MIGRATED -> not supported CodePoint.SYNCTYPE_INDOUBT -> XAResource.recover(); |
| private int | |
| private long | |
| private Xid | |
| private void | |
| private int | |
| private void | |
| private void | |
| pack-priv void | rollbackCurrentTransaction()
This function rollbacks the current global transaction associated with the XAResource or a local transaction. |
| private void | rollbackLocalTransaction(boolean
Indicates whether the function should
send a SYNCCRD response sendSYNCCRD)Rollback a local transaction. |
| private void | rollbackTransaction(Xid
Xid for rollback for global transaction.
If xid formatid is -1 it represents a local transaction xid, boolean Indicates whether the function should
send a SYNCCRD response sendSYNCCRD)Rollback transaction. |
| private void | rollbackXATransaction(Xid
- XID xid, boolean Indicates whether the function should
send a SYNCCRD response sendSYNCCRD)Rollback the xa transaction. |
| private void | startXATransaction(Xid
- XID (formatId = -1 for local transaction) xid, int - xaflags xaflags, long - The timeout for the global transaction in millis
(or -1 if not specified) xaTimeout)Start the xa transaction. |
| private String | |
| private void | writePRPHRCLST(Xid[]
- list of indoubt xa transactions obtained from recover xids)write PRPHRCLST (indoubt list) |
| private void | writeSYNCCRD(int
- XA Command to send response for see parseSYNCTYPE synctype, int - return value from XA command xaRetVal, Xid[] - list of xids to return for recover.
null for other commands xids)Write SYNCCRD (SYNCCTL response) |
| private void | |
| private String |
| connThread | back to summary |
|---|---|
| private DRDAConnThread connThread | |
| reader | back to summary |
|---|---|
| private DDMReader reader | |
| writer | back to summary |
|---|---|
| private DDMWriter writer | |
| xid | back to summary |
|---|---|
| private Xid xid Holds the Xid of the global transaction associated with the corresponding DRDAConnThread (and connection itself). | |
| DRDAXAProtocol | back to summary |
|---|---|
| pack-priv DRDAXAProtocol(DRDAConnThread connThread) | |
| commitLocalTransaction | back to summary |
|---|---|
| private void commitLocalTransaction() throws DRDAProtocolException Commit local transaction. Send SYNCCRD response. | |
| commitTransaction | back to summary |
|---|---|
| private void commitTransaction(Xid xid, int xaflags) throws DRDAProtocolException Commit the xa transaction. Send SYNCCRD response
| |
| commitXATransaction | back to summary |
|---|---|
| private void commitXATransaction(Xid xid, int xaflags) throws DRDAProtocolException Commit the xa transaction. Send SYNCCRD response.
| |
| endXA | back to summary |
|---|---|
| private void endXA(Xid xid, int xaflags) throws DRDAProtocolException End the xa transaction. Send SYNCRRD response
| |
| forgetXATransaction | back to summary |
|---|---|
| private void forgetXATransaction(Xid xid) throws DRDAProtocolException Forget the xa transaction. Send SYNCCRD response.
| |
| getResourceAdapter | back to summary |
|---|---|
pack-priv ResourceAdapter getResourceAdapter()
| |
| getXAResource | back to summary |
|---|---|
| private XAResource getXAResource() get XAResource for the connection
| |
| parseSYNCCTL | back to summary |
|---|---|
| protected void parseSYNCCTL() throws DRDAProtocolException Parse SYNCCTL - Parse SYNCCTL command for XAMGR lvl 7 | |
| parseSYNCTYPE | back to summary |
|---|---|
| protected int parseSYNCTYPE() throws DRDAProtocolException parse SYNCTYPE for XAMGR lvl 7 return synctype value CodePoint.SYNCTYPE_NEW_UOW -> XAResource.start() CodePoint.SYNCTYPE_END_UOW -> XAResource.end() CodePoint.SYNCTYPE_PREPARE -> XAResource.prepare() CodePoint.SYNCTYPE_MIGRATE -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_REQ_COMMIT -> not supported //SYNCPT MGR LEVEL 5 CodePoint.SYNCTYPE_COMMITTED -> XAResource.commit() or local commit for null XID CodePoint.SYNCTYPE_REQ_LOG -> not supported CodePoint.SYNCTYPE_REQ_FORGET -> XAResource.forget() CodePoint.SYNCTYPE_ROLLBACK -> XAResource.rollback() CodePoint.SYNCTYPE_MIGRATED -> not supported CodePoint.SYNCTYPE_INDOUBT -> XAResource.recover(); | |
| parseXAFlags | back to summary |
|---|---|
| private int parseXAFlags() throws DRDAProtocolException parse XAFlags
| |
| parseXATimeout | back to summary |
|---|---|
| private long parseXATimeout() throws DRDAProtocolException Parses a XA transaction timout value.
| |
| parseXID | back to summary |
|---|---|
| private Xid parseXID() throws DRDAProtocolException Parse XID formatId -1 translates into a null XID and a local transaction | |
| prepareXATransaction | back to summary |
|---|---|
| private void prepareXATransaction(Xid xid) throws DRDAProtocolException Prepare the xa transaction. Send SYNCCRD response.
| |
| processXAException | back to summary |
|---|---|
| private int processXAException(XAException xe) return xa exception errorCode. print to console for debug output.
| |
| recoverXA | back to summary |
|---|---|
| private void recoverXA() throws DRDAProtocolException | |
| recoverXA | back to summary |
|---|---|
| private void recoverXA(int xaflags) throws DRDAProtocolException Call recover. Send SYNCCRD response with indoubt list | |
| rollbackCurrentTransaction | back to summary |
|---|---|
| pack-priv void rollbackCurrentTransaction() This function rollbacks the current global transaction associated with the XAResource or a local transaction. The function should be called only in exceptional cases - like client socket is closed. | |
| rollbackLocalTransaction | back to summary |
|---|---|
| private void rollbackLocalTransaction(boolean sendSYNCCRD) throws DRDAProtocolException Rollback a local transaction. Optionally send SYNCCRD response.
| |
| rollbackTransaction | back to summary |
|---|---|
| private void rollbackTransaction(Xid xid, boolean sendSYNCCRD) throws DRDAProtocolException Rollback transaction. Optionally send SYNCCRD response.
| |
| rollbackXATransaction | back to summary |
|---|---|
| private void rollbackXATransaction(Xid xid, boolean sendSYNCCRD) throws DRDAProtocolException Rollback the xa transaction. Optionally send SYNCCRD response.
| |
| startXATransaction | back to summary |
|---|---|
| private void startXATransaction(Xid xid, int xaflags, long xaTimeout) throws DRDAProtocolException Start the xa transaction. Send SYNCRRD response
| |
| syncTypeToString | back to summary |
|---|---|
| private String syncTypeToString(int syncType) printable syncType for debug output
| |
| writePRPHRCLST | back to summary |
|---|---|
| private void writePRPHRCLST(Xid[] xids) throws DRDAProtocolException write PRPHRCLST (indoubt list)
| |
| writeSYNCCRD | back to summary |
|---|---|
| private void writeSYNCCRD(int synctype, int xaRetVal, Xid[] xids) throws DRDAProtocolException Write SYNCCRD (SYNCCTL response)
| |
| writeXID | back to summary |
|---|---|
| private void writeXID(Xid xid) throws DRDAProtocolException write XID
| |
| xaflagsToString | back to summary |
|---|---|
| private String xaflagsToString(int xaflags) printable xaflags
| |