/** * prepare the bridged-to transaction * @return the result of preparing the transaction */ public int prepare () { return coordinator.prepare(); }
/** * This will be called when the parent coordinator is preparing its durable participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws com.arjuna.wst.WrongStateException if the subordinate coordinator does the same * @throws com.arjuna.wst.SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { switch (coordinator.prepare()) { case TwoPhaseOutcome.PREPARE_OK: return new Prepared(); case TwoPhaseOutcome.PREPARE_READONLY: return new ReadOnly(); case TwoPhaseOutcome.PREPARE_NOTOK: default: return new Aborted(); } }
/** * This will be called when the parent coordinator is preparing its durable participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws com.arjuna.wst.WrongStateException if the subordinate coordinator does the same * @throws com.arjuna.wst.SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { switch (coordinator.prepare()) { case TwoPhaseOutcome.PREPARE_OK: return new Prepared(); case TwoPhaseOutcome.PREPARE_READONLY: return new ReadOnly(); case TwoPhaseOutcome.PREPARE_NOTOK: default: return new Aborted(); } }
/** * This will be called when the parent coordinator is preparing its durable participants and should ensure * that the interposed cooordinator does the same. * * @return the Vote returned by the subordinate coordinator. * @throws com.arjuna.wst.WrongStateException if the subordinate coordinator does the same * @throws com.arjuna.wst.SystemException if the subordinate coordinator does the same */ public Vote prepare() throws WrongStateException, SystemException { switch (coordinator.prepare()) { case TwoPhaseOutcome.PREPARE_OK: return new Prepared(); case TwoPhaseOutcome.PREPARE_READONLY: return new ReadOnly(); case TwoPhaseOutcome.PREPARE_NOTOK: default: return new Aborted(); } }