/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
/** * Perform a top-level one phase commit. * * @return <code>TwoPhaseOutcome</code> to indicate success/failure. * @see com.arjuna.ats.arjuna.coordinator.TwoPhaseOutcome */ public int topLevelOnePhaseCommit () { int res = topLevelPrepare(); switch (res) { case TwoPhaseOutcome.PREPARE_OK: return topLevelCommit(); case TwoPhaseOutcome.PREPARE_READONLY: return TwoPhaseOutcome.FINISH_OK; case TwoPhaseOutcome.ONE_PHASE_ERROR: return TwoPhaseOutcome.ONE_PHASE_ERROR; default: return TwoPhaseOutcome.FINISH_ERROR; } }
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());
p = ((actionType == ActionType.TOP_LEVEL) ? record.topLevelPrepare() : record.nestedPrepare());