/** * Remove the specified synchronization from the coordinator's list. * * @exception InvalidSynchronizationException * Thrown if the participant is not known of by the * coordinator. * @exception WrongStateException * Thrown if the state of the coordinator does not allow the * participant to be removed (e.g., in a two-phase protocol * the coordinator is committing.) * @exception SystemException * Thrown if any other error occurs. */ public void delistSynchronization (Synchronization act) throws InvalidSynchronizationException, WrongStateException, SystemException { if (act == null) throw new InvalidSynchronizationException(); else throw new WrongStateException( wscfLogger.i18NLogger.get_model_sagas_arjunacore_BACoordinator_4()); }
public void compensate () throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.compensate(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.FaultedException ex) { throw new CompensateFailedException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
throw new SystemException(ex.toString());
throw new CoordinatorConfirmedException(); case TwoPhaseResult.FINISH_OK: case TwoPhaseResult.CANCELLED:
case TwoPhaseResult.CANCELLED: case TwoPhaseResult.HEURISTIC_CANCEL: throw new CoordinatorCancelledException(); case TwoPhaseResult.HEURISTIC_MIXED: throw new ProtocolViolationException("HeuristicMixed");
public void compensate () throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.compensate(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.FaultedException ex) { throw new CompensateFailedException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
throw new SystemException(ex.toString());
/** * Remove the specified synchronization from the coordinator's list. * * @exception InvalidSynchronizationException * Thrown if the participant is not known of by the * coordinator. * @exception WrongStateException * Thrown if the state of the coordinator does not allow the * participant to be removed (e.g., in a two-phase protocol * the coordinator is committing.) * @exception SystemException * Thrown if any other error occurs. */ public void delistSynchronization (Synchronization act) throws InvalidSynchronizationException, WrongStateException, SystemException { if (act == null) throw new InvalidSynchronizationException(); else throw new WrongStateException( wscfLogger.i18NLogger.get_model_sagas_arjunacore_BACoordinator_4()); }
throw new CoordinatorConfirmedException(); case TwoPhaseResult.FINISH_OK: case TwoPhaseResult.CANCELLED:
case TwoPhaseResult.CANCELLED: case TwoPhaseResult.HEURISTIC_CANCEL: throw new CoordinatorCancelledException(); case TwoPhaseResult.HEURISTIC_MIXED: throw new ProtocolViolationException("HeuristicMixed");
public void compensate () throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.compensate(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.FaultedException ex) { throw new CompensateFailedException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void cancel () throws CancelFailedException, InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.cancel(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.FaultedException ex) { // we can see this in 1.1 throw new CancelFailedException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
throw new SystemException(ex.toString());
/** * Enrol the specified synchronization with the coordinator associated with * the current thread. * * @param act The synchronization to add. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateSynchronizationException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidSynchronizationException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistSynchronization (Synchronization act) throws WrongStateException, DuplicateSynchronizationException, InvalidSynchronizationException, SystemException { if (act == null) throw new InvalidSynchronizationException(); SynchronizationRecord rec = new SynchronizationRecord(act, new Uid()); if (addSynchronization(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }
/** * Enrol the specified synchronization with the coordinator associated with * the current thread. * * @param act The synchronization to add. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateSynchronizationException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidSynchronizationException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistSynchronization (Synchronization act) throws WrongStateException, DuplicateSynchronizationException, InvalidSynchronizationException, SystemException { if (act == null) throw new InvalidSynchronizationException(); SynchronizationRecord rec = new SynchronizationRecord(act, new Uid()); if (addSynchronization(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }