public SubordinateAtomicAction (int timeout) { super(); subordinate = true; start(); _timeout = timeout; // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); subordinate = true; start(); _timeout = timeout; // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); start(); // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper(true).insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); start(); // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); subordinate = true; start(); _timeout = timeout; // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); start(); // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); subordinate = true; start(); _timeout = timeout; // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public SubordinateAtomicAction (int timeout) { super(); start(); // if it has a non-negative timeout, add it to the reaper. if (timeout > AtomicAction.NO_TIMEOUT) TransactionReaper.transactionReaper().insert(this, timeout); }
public static ServerControl create_transaction (Uid u, Control parentControl, ArjunaTransactionImple parentImpl, Coordinator realCoord, Terminator realTerm, int time_out) { ServerControl tranControl = new ServerControl(u, parentControl, parentImpl, realCoord, realTerm); /* * We can't just add server transactions to the reaper list directly * because they are wrapped by the interposition hierarchy and if we * reap the transaction, we need to reap the hierarchy too. So, in the * interposition classes we add the hierarchy to the reaper list. */ if ((time_out != 0) && (parentImpl == null)) { TransactionReaper reaper = TransactionReaper.transactionReaper(); reaper.insert(new ServerControlWrapper((ControlImple) tranControl), time_out); } return tranControl; }
public static ServerControl create_transaction (Uid u, Control parentControl, ArjunaTransactionImple parentImpl, Coordinator realCoord, Terminator realTerm, int time_out) { ServerControl tranControl = new ServerControl(u, parentControl, parentImpl, realCoord, realTerm); /* * We can't just add server transactions to the reaper list directly * because they are wrapped by the interposition hierarchy and if we * reap the transaction, we need to reap the hierarchy too. So, in the * interposition classes we add the hierarchy to the reaper list. */ if ((time_out != 0) && (parentImpl == null)) { TransactionReaper reaper = TransactionReaper.transactionReaper(); reaper.insert(new ServerControlWrapper((ControlImple) tranControl), time_out); } return tranControl; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
/** * Start the transaction running. * * If the transaction is already running or has terminated, then an error * code will be returned. * * @param timeout the timeout associated with the transaction. If the * transaction is still active when this timeout elapses, the * system will automatically roll it back. * * @return <code>ActionStatus</code> indicating outcome. */ public int begin (int timeout) { int status = super.start(); if (status == ActionStatus.RUNNING) { /* * Now do thread/action tracking. */ ThreadActionData.pushAction(this); _timeout = timeout; if (_timeout == 0) _timeout = TxControl.getDefaultTimeout(); if (_timeout > 0) TransactionReaper.transactionReaper().insert(this, _timeout); } return status; }
public SubordinateAtomicTransaction (Uid actId, Xid xid, int timeout) { super(new ServerControlWrapper(new ServerControl(new ServerTransaction(actId, xid)))); // add this transaction to the reaper list. if (timeout > 0) { TransactionReaper reaper = TransactionReaper.transactionReaper(); reaper.insert(super.getControlWrapper(), timeout); } }
public SubordinateAtomicTransaction (Uid actId, Xid xid, int timeout) { super(new ServerControlWrapper(new ServerControl(new ServerTransaction(actId, xid)))); // add this transaction to the reaper list. if (timeout > 0) { TransactionReaper reaper = TransactionReaper.transactionReaper(); reaper.insert(super.getControlWrapper(), timeout); } }