/** * Return true if the procedure is started. * @param procId the ID of the procedure to check * @return true if the procedure execution is started, otherwise false. */ public boolean isStarted(long procId) { Procedure<?> proc = procedures.get(procId); if (proc == null) { return completed.get(procId) != null; } return proc.wasExecuted(); }
/** * Send an abort notification to the specified procedure. * Depending on the procedure implementation, the abort can be considered or ignored. * @param procId the procedure to abort * @param mayInterruptIfRunning if the proc completed at least one step, should it be aborted? * @return true if the procedure exists and has received the abort, otherwise false. */ public boolean abort(long procId, boolean mayInterruptIfRunning) { Procedure<TEnvironment> proc = procedures.get(procId); if (proc != null) { if (!mayInterruptIfRunning && proc.wasExecuted()) { return false; } return proc.abort(getEnvironment()); } return false; }
if (!proc.wasExecuted()) { switch (executeRollback(proc)) { case LOCK_ACQUIRED:
/** * Return true if the procedure is started. * @param procId the ID of the procedure to check * @return true if the procedure execution is started, otherwise false. */ public boolean isStarted(final long procId) { final Procedure proc = procedures.get(procId); if (proc == null) { return completed.get(procId) != null; } return proc.wasExecuted(); }
/** * Return true if the procedure is started. * @param procId the ID of the procedure to check * @return true if the procedure execution is started, otherwise false. */ public boolean isStarted(long procId) { Procedure<?> proc = procedures.get(procId); if (proc == null) { return completed.get(procId) != null; } return proc.wasExecuted(); }
/** * Return true if the procedure is started. * @param procId the ID of the procedure to check * @return true if the procedure execution is started, otherwise false. */ public boolean isStarted(final long procId) { Procedure proc = procedures.get(procId); if (proc == null) { return completed.get(procId) != null; } return proc.wasExecuted(); }
/** * Send an abort notification to the specified procedure. * Depending on the procedure implementation, the abort can be considered or ignored. * @param procId the procedure to abort * @param mayInterruptIfRunning if the proc completed at least one step, should it be aborted? * @return true if the procedure exists and has received the abort, otherwise false. */ public boolean abort(final long procId, final boolean mayInterruptIfRunning) { final Procedure proc = procedures.get(procId); if (proc != null) { if (!mayInterruptIfRunning && proc.wasExecuted()) { return false; } return proc.abort(getEnvironment()); } return false; }
/** * Send an abort notification to the specified procedure. * Depending on the procedure implementation, the abort can be considered or ignored. * @param procId the procedure to abort * @param mayInterruptIfRunning if the proc completed at least one step, should it be aborted? * @return true if the procedure exists and has received the abort, otherwise false. */ public boolean abort(long procId, boolean mayInterruptIfRunning) { Procedure<TEnvironment> proc = procedures.get(procId); if (proc != null) { if (!mayInterruptIfRunning && proc.wasExecuted()) { return false; } return proc.abort(getEnvironment()); } return false; }
/** * Send an abort notification the specified procedure. * Depending on the procedure implementation the abort can be considered or ignored. * @param procId the procedure to abort * @param mayInterruptIfRunning if the proc completed at least one step, should it be aborted? * @return true if the procedure exist and has received the abort, otherwise false. */ public boolean abort(final long procId, final boolean mayInterruptIfRunning) { Procedure proc = procedures.get(procId); if (proc != null) { if (!mayInterruptIfRunning && proc.wasExecuted()) { return false; } else { return proc.abort(getEnvironment()); } } return false; }
sendProcedureLoadedNotification(proc.getProcId()); if (proc.wasExecuted()) { scheduler.addFront(proc); } else {
if (!proc.wasExecuted()) { switch (executeRollback(proc)) { case LOCK_ACQUIRED:
if (!proc.wasExecuted()) { switch (executeRollback(proc)) { case LOCK_ACQUIRED:
sendProcedureLoadedNotification(proc.getProcId()); if (proc.wasExecuted()) { runnables.addFront(proc); } else {
if (!proc.wasExecuted()) { if (!executeRollback(proc)) { runnables.yield(proc);