/** * Remove the specified participant from the coordinator's list. * * @exception InvalidParticipantException * 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 delistParticipant (Participant act) throws InvalidParticipantException, WrongStateException, SystemException { if (act == null) throw new InvalidParticipantException(); else throw new WrongStateException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_1()); }
/** * Remove the specified participant from the coordinator's list. * * @exception InvalidParticipantException * 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 delistParticipant (Participant act) throws InvalidParticipantException, WrongStateException, SystemException { if (act == null) throw new InvalidParticipantException(); else throw new WrongStateException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_1()); }
public void close () throws InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.close(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void close () throws InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.close(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void close () throws InvalidParticipantException, WrongStateException, SystemException { try { if (_resource != null) { _resource.close(); } else throw new InvalidParticipantException(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } }
public void complete () throws InvalidParticipantException, WrongStateException, SystemException { if (_resource != null) { try { ((BusinessAgreementWithCoordinatorCompletionParticipant) _resource) .complete(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } } else throw new InvalidParticipantException(); } }
public void complete () throws InvalidParticipantException, WrongStateException, SystemException { if (_resource != null) { try { ((BusinessAgreementWithCoordinatorCompletionParticipant) _resource) .complete(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } } else throw new InvalidParticipantException(); } }
public void complete () throws InvalidParticipantException, WrongStateException, SystemException { if (_resource != null) { try { ((BusinessAgreementWithCoordinatorCompletionParticipant) _resource) .complete(); } catch (com.arjuna.wst.WrongStateException ex) { throw new WrongStateException(ex.toString()); } catch (com.arjuna.wst.SystemException ex) { throw new SystemException(ex.toString()); } } else throw new InvalidParticipantException(); } }
/** * Enrol the specified participant with the coordinator associated with the * current thread. * * @param act The participant. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateParticipantException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidParticipantException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistParticipant (Participant act) throws WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException { if (act == null) throw new InvalidParticipantException(); AbstractRecord rec = new ParticipantRecord(act, new Uid()); if (add(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }
/** * Enrol the specified participant with the coordinator associated with the * current thread. * * @param act The participant. * * @exception WrongStateException * Thrown if the coordinator is not in a state that allows * participants to be enrolled. * @exception DuplicateParticipantException * Thrown if the participant has already been enrolled and * the coordination protocol does not support multiple * entries. * @exception InvalidParticipantException * Thrown if the participant is invalid. * @exception SystemException * Thrown if any other error occurs. */ public void enlistParticipant (Participant act) throws WrongStateException, DuplicateParticipantException, InvalidParticipantException, SystemException { if (act == null) throw new InvalidParticipantException(); AbstractRecord rec = new ParticipantRecord(act, new Uid()); if (add(rec) != AddOutcome.AR_ADDED) throw new WrongStateException(); }
SystemException if (act == null) throw new InvalidParticipantException();
SystemException if (act == null) throw new InvalidParticipantException();