/** * @return the Current object implementation. This has the advantage of not * needing to register the object with the ORB, which can affect * performance. */ public static CurrentImple current () throws org.omg.CORBA.SystemException { init(); _current.contextManager().associate(); return OTSImpleManager._current; }
current.begin(); _theAction = current.getControlWrapper(); _theStatus = current.get_status();
current.commit(when_return);
Control control = current.get_control(); current.begin();
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }
cw = OTSImpleManager.current().getControlWrapper(); OTSImpleManager.current().resumeImple(controlHandle); OTSImpleManager.current().resumeWrapper(cw); else OTSImpleManager.current().suspend();
_oldControl = current.suspendWrapper(); current.resumeImple(cont);
OTSImpleManager.factory().createLocal(get_timeout())); else currentAction = new ControlWrapper( OTSImpleManager.get_factory().create(get_timeout())); rollback_only();
private final void resumeTransaction () { if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("TopLevelTransaction::resumeTransaction for " + _originalTransaction); } try { if (_originalTransaction != null) { CurrentImple current = OTSImpleManager.current(); current.resume(_originalTransaction); _originalTransaction = null; } } catch (Exception e) { } }
/** * @return the timeout associated with transactions created by the current * thread. */ public int get_timeout () throws SystemException { CurrentImple current = OTSImpleManager.current(); if (current != null) { int val = current.get_timeout(); if (jtsLogger.logger.isTraceEnabled()) { jtsLogger.logger.trace("AtomicTransaction::get_timeout returning " + val); } return val; } else throw new UNKNOWN(); }
ControlWrapper currentTransaction = current.getControlWrapper();
protected OTSThread () { try { CurrentImple current = OTSImpleManager.current(); if (current != null) { _currentControl = current.get_control(); current = null; } } catch (Exception e) { _currentControl = null; } }
OTSImpleManager._current = new CurrentImple(); OTSImpleManager._currentRef = OTSImpleManager._current;
cw = OTSImpleManager.current().getControlWrapper(); OTSImpleManager.current().resumeImple(controlHandle); OTSImpleManager.current().resumeWrapper(cw); else OTSImpleManager.current().suspend();
public void resumeWrapper (ControlWrapper which) throws InvalidControl, SystemException { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::resumeWrapper ( " + which + " )"); } if (which != null) { /* * If this is a local transaction and we haven't zero-ed the transaction * reference then resume it. Otherwise go with the Control. */ ArjunaTransactionImple tx = ((which.getImple() == null) ? null : which.getImple().getImplHandle()); if (which.isLocal() && (tx != null)) resumeImple(which.getImple()); else resume(which.getControl()); } else { resumeImple(null); } }
Control control = current.get_control(); current.begin();
_oldControl = current.suspendWrapper(); current.resumeImple(cont);
OTSImpleManager.factory().createLocal(get_timeout())); else currentAction = new ControlWrapper( OTSImpleManager.get_factory().create(get_timeout())); rollback_only();
private final void resumeTransaction () { if (jtsLogger.logger.isDebugEnabled()) { jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PRIVATE, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::resumeTransaction for "+_originalTransaction); } try { if (_originalTransaction != null) { CurrentImple current = OTSImpleManager.current(); current.resume(_originalTransaction); _originalTransaction = null; } } catch (Exception e) { } }
public int getTimeout () throws javax.transaction.SystemException { try { return OTSImpleManager.current().get_timeout(); } catch (Exception e) { javax.transaction.SystemException systemException = new javax.transaction.SystemException(e.toString()); systemException.initCause(e); throw systemException; } }