public static String getHierarchy (PropagationContext ctx) { int depth = ((ctx.parents != null) ? ctx.parents.length : 0); String hier = "PropagationContext:"; for (int i = depth -1; i >= 0; i--) { if (ctx.parents[i] != null) hier += "\n"+Utility.otidToUid(ctx.parents[i].otid); } hier += "\n"+Utility.otidToUid(ctx.current.otid); return hier; }
public static PrintWriter printStatus (PrintWriter strm, org.omg.CosTransactions.Status res) { strm.print(stringStatus(res)); return strm; }
/** * @since JTS 2.2. */ public static final org.omg.CosTransactions.otid_t uidToOtid (Uid theUid) { return ((theUid != null) ? uidToOtid(theUid.stringForm()) : null); }
public static String getHierarchy (PropagationContext ctx) { int depth = ((ctx.parents != null) ? ctx.parents.length : 0); String hier = "PropagationContext:"; for (int i = depth -1; i >= 0; i--) { if (ctx.parents[i] != null) hier += "\n"+Utility.otidToUid(ctx.parents[i].otid); } hier += "\n"+Utility.otidToUid(ctx.current.otid); return hier; }
public static PrintWriter printStatus (PrintWriter strm, org.omg.CosTransactions.Status res) { strm.print(stringStatus(res)); return strm; }
/** * @since JTS 2.2. */ public static final org.omg.CosTransactions.otid_t uidToOtid (Uid theUid) { return ((theUid != null) ? uidToOtid(theUid.stringForm()) : null); }
public void setOtid(otid_t o) { _otid = o; _hashCode = Utility.otidToUid(_otid).hashCode(); }
/** * @return the status of this transaction. */ public org.omg.CosTransactions.Status get_status () throws SystemException { _theStatus = getStatus(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::get_status called for " + _theAction + " returning " + Utility.stringStatus(_theStatus)); } return _theStatus; }
public void setOtid(otid_t o) { _otid = o; _hashCode = Utility.otidToUid(_otid).hashCode(); }
public org.omg.CosTransactions.Status get_status () throws SystemException { Status s = determineStatus(this); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("ArjunaTransactionImple::get_status for " + get_uid() + " returning " + Utility.stringStatus(s)); } return s; }
/** * Get the status of the transaction */ public synchronized Status get_status () throws SystemException { Status theStatus = TransactionCache.get_status(_theTransactionUid, _theTransactionType); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("CachedRecoveredTransaction.get_status [" + _theTransactionUid + ", " + _theTransactionType + "] = " + Utility.stringStatus(theStatus)); } return theStatus; }
public org.omg.CosTransactions.Status get_status () throws SystemException { ControlWrapper currentAction = _theManager.current(); org.omg.CosTransactions.Status stat = ((currentAction == null) ? org.omg.CosTransactions.Status.StatusNoTransaction : currentAction.get_status()); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("CurrentImple::get_status - returning " + Utility.stringStatus(stat)); } return stat; }
/** * @return information on a specific transaction. * @since JTS 2.1.2. */ public TransactionInfo getTransactionInfo (otid_t txid) throws org.omg.CosTransactions.NoTransaction, SystemException { Uid u = Utility.otidToUid(txid); if (u == null) throw new BAD_PARAM( "otid_t " + jtsLogger.i18NLogger.get_orbspecific_otiderror()); else return getTransactionInfo(u); }
/** * Get the status of the transaction */ public synchronized Status get_status () throws SystemException { Status theStatus = TransactionCache.get_status(_theTransactionUid, _theTransactionType); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_CRASH_RECOVERY, "CachedRecoveredTransaction.get_status [" +_theTransactionUid+", "+_theTransactionType+"] = " +Utility.stringStatus(theStatus)); } return theStatus; }
/** * @return the status of this transaction. */ public org.omg.CosTransactions.Status get_status () throws SystemException { _theStatus = getStatus(); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::get_status called for " + _theAction + " returning " + Utility.stringStatus(_theStatus)); } return _theStatus; }
public org.omg.CosTransactions.Status get_status () throws SystemException { Status s = determineStatus(this); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "ArjunaTransactionImple::get_status for " + get_uid() + " returning " + Utility.stringStatus(s)); } return s; }
public org.omg.CosTransactions.Status get_status () throws SystemException { ControlWrapper currentAction = _theManager.current(); org.omg.CosTransactions.Status stat = ((currentAction == null) ? org.omg.CosTransactions.Status.StatusNoTransaction : currentAction.get_status()); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::get_status - returning " + Utility.stringStatus(stat)); } return stat; }
protected void recoverTransaction (Uid tranUid) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("ServerTransactionRecoveryModule.recoverTransaction()" + tranUid + ")"); } Status currentStatus = Status.StatusUnknown; CachedRecoveredTransaction cachedRecoveredTransaction = new CachedRecoveredTransaction (tranUid, _transactionType); currentStatus = cachedRecoveredTransaction.get_status(); if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("Activated transaction "+tranUid+" status = "+Utility.stringStatus(currentStatus)); } // but first check that the original transaction isn't in mid-flight if ( cachedRecoveredTransaction.originalBusy() && (currentStatus != Status.StatusPrepared) ) { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug("Transaction "+tranUid+" still busy"); } return; } cachedRecoveredTransaction.replayPhase2(); cachedRecoveredTransaction = null; }