/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
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 the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
+ get_uid()); criticalStart(); doCleanup(pendingList); criticalEnd();
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }
/** * Remove the specified thread from the transaction. * * @return <code>true</code> if successful, <code>false</code> * otherwise. */ public final boolean removeChildThread (String threadId) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId); } if (threadId == null) return false; boolean result = false; criticalStart(); synchronized (this) { if (_childThreads != null) { _childThreads.remove(threadId); result = true; } } criticalEnd(); if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("BasicAction::removeChildThread () action "+get_uid()+" removing "+threadId+" result = "+result); } return result; }
/** * Add the specified CheckedAction object to this transaction. * * @see com.arjuna.ats.arjuna.coordinator.CheckedAction */ protected final synchronized void setCheckedAction (CheckedAction c) { criticalStart(); _checkedAction = c; criticalEnd(); }