/** * The current activity is completing and informs the participants * that all work they need to know about has been received. */ public void complete () throws WrongStateException, SystemException { currentCoordinator().complete(); }
/** * Not supported by basic ArjunaCore. * * @exception SystemException Thrown if any error occurs. * * @return the complete list of qualifiers that have been registered with * the current coordinator. */ public Qualifier[] qualifiers () throws NoCoordinatorException, SystemException { return currentCoordinator().qualifiers(); }
/** * The current activity is completing and informs the participants * that all work they need to know about has been received. */ public void complete () throws WrongStateException, SystemException { currentCoordinator().complete(); }
/** * @exception SystemException Thrown if any error occurs. * * @return The unique identity of the current coordinator. */ public CoordinatorId identifier () throws NoCoordinatorException, SystemException { return currentCoordinator().identifier(); }
/** * @exception SystemException Thrown if any error occurs. * * @return The unique identity of the current coordinator. */ public CoordinatorId identifier () throws NoCoordinatorException, SystemException { return currentCoordinator().identifier(); }
/** * Not supported by basic ArjunaCore. * * @exception SystemException Thrown if any error occurs. * * @return the complete list of qualifiers that have been registered with * the current coordinator. */ public Qualifier[] qualifiers () throws NoCoordinatorException, SystemException { return currentCoordinator().qualifiers(); }
public void participantCompleted (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { currentCoordinator().participantCompleted(participantId); }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { currentCoordinator().participantCannotComplete(participantId); }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { currentCoordinator().participantFaulted(participantId); }
public void participantCompleted (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { currentCoordinator().participantCompleted(participantId); }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { currentCoordinator().participantFaulted(participantId); }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { currentCoordinator().participantCannotComplete(participantId); }
/** * 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 (String participantId) throws InvalidParticipantException, NoCoordinatorException, WrongStateException, SystemException { currentCoordinator().delistParticipant(participantId); }
/** * 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 (String participantId) throws InvalidParticipantException, NoCoordinatorException, WrongStateException, SystemException { currentCoordinator().delistParticipant(participantId); }
/** * 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, NoCoordinatorException, SystemException { currentCoordinator().enlistParticipant(act); }
/** * 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, NoCoordinatorException, SystemException { currentCoordinator().enlistParticipant(act); }
/** * Return the context augmentation for this HLS, if any on the current * activity. * * @return a context object or null if no augmentation is necessary. */ public Context context () throws SystemException { ensureContextInitialised(); if (CONTEXT_IMPLE_CLASS != null) { try { SOAPContext ctx = (SOAPContext) CONTEXT_IMPLE_CLASS.newInstance(); ctx.initialiseContext(_coordManager.currentCoordinator()); return ctx; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } } else { throw new SystemException("Unable to create SOAPContext for SAGAS 1.1 service"); } }
/** * Return the context augmentation for this HLS, if any on the current * activity. * * @return a context object or null if no augmentation is necessary. */ public Context context () throws SystemException { ensureContextInitialised(); if (CONTEXT_IMPLE_CLASS != null) { try { SOAPContext ctx = (SOAPContext) CONTEXT_IMPLE_CLASS.newInstance(); ctx.initialiseContext(_coordManager.currentCoordinator()); return ctx; } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } } else { throw new SystemException("Unable to create SOAPContext for SAGAS 1.1 service"); } }
int currentStatus = currentCoordinator().status();
int currentStatus = currentCoordinator().status();