/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
private final void removeAllChildThreads () { /* * Do not remove the current thread as it is committing/aborting! */ criticalStart(); if ((_childThreads != null) && (_childThreads.size() != 0)) { Thread currentThread = Thread.currentThread(); /* * Iterate through all registered threads and tell them to ignore * the action pointer, i.e., they are now no longer within this * action. */ Enumeration iter = _childThreads.elements(); Thread t = null; while (iter.hasMoreElements()) { t = (Thread) iter.nextElement(); if (tsLogger.arjLoggerI18N.isDebugEnabled()) { tsLogger.arjLoggerI18N.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PRIVATE, FacilityCode.FAC_ATOMIC_ACTION, "com.arjuna.ats.arjuna.coordinator.BasicAction_63", new Object[] { get_uid(), t }); } if (t != currentThread) ThreadActionData.purgeAction(this, t); } } criticalEnd(); }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
+ get_uid()); criticalStart(); doCleanup(pendingList); criticalEnd();
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
/** * Return a transaction propagation context for the transaction * currently associated with the invoking thread, or <code>null</code> * if the invoking thread is not associated with a transaction. */ public Object getTransactionPropagationContext() { if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext - called"); } String txid = ((BasicAction.Current() == null) ? null : BasicAction.Current().get_uid().stringForm()); if (jbossatxLogger.logger.isTraceEnabled()) { jbossatxLogger.logger.trace("PropagationContextManager.getTransactionPropagationContext() - returned tpc = " + txid); } return txid; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int topLevelCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelCommit() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_4()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int nestedAbort () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::nestedAbort() for "+order()); } if (doRelease) { CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_1()); } return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int topLevelAbort () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelAbort() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_3()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int topLevelAbort () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelAbort() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_3()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int topLevelAbort () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelAbort() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_3()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }
/** * Remove a child action. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildAction (BasicAction act) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+((act != null) ? act.get_uid() : Uid.nullUid())); } if (act == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childActions != null) { _childActions.remove(act); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildAction () action "+get_uid()+" removing "+act.get_uid()+" result = "+result); } return result; }
public int topLevelCommit () { if (txojLogger.logger.isTraceEnabled()) { txojLogger.logger.trace("CadaverLockRecord::topLevelCommit() for "+order()); } if (doRelease) { if (super.actionHandle == null) { throw new FatalError(txojLogger.i18NLogger.get_CadaverLockRecord_4()); } CadaverLockManager manager = new CadaverLockManager(order(), objectTypeName); return (manager.releaseAll(super.actionHandle.get_uid()) ? TwoPhaseOutcome.FINISH_OK : TwoPhaseOutcome.FINISH_ERROR); } else return TwoPhaseOutcome.FINISH_OK; }