/** * If the application requires and if the coordination protocol supports it, * then this method can be used to execute a coordination protocol on the * currently enlisted participants at any time prior to the termination of * the coordination scope. * * This implementation only supports coordination at the end of the * activity. * * @param cs The completion status to use when determining how to * execute the protocol. * * @exception WrongStateException * Thrown if the coordinator is in a state the does not allow * coordination to occur. * @exception ProtocolViolationException * Thrown if the protocol is violated in some manner during * execution. * @exception SystemException * Thrown if any other error occurs. * * @return The result of executing the protocol, or null. */ public Outcome coordinate (CompletionStatus cs) throws WrongStateException, ProtocolViolationException, SystemException { throw new ProtocolViolationException(); }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public static final void addHLS (HLS service) throws InvalidHLSException, SystemException { if (service == null) { throw new InvalidHLSException(); } else { String key = service.identity(); synchronized(_hlsMap) { _hlsMap.put(key, service); } } }
public synchronized void participantRolledBack (String participantId) throws InvalidParticipantException, WrongStateException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) changeParticipantStatus(participantId, ROLLEDBACK); else throw new WrongStateException(); }
public String serviceType() throws NoActivityException, SystemException { ActivityImple currentActivity = current(); if (currentActivity == null) { throw new NoActivityException(); } return currentActivity.serviceType(); }
public void fail (final QName exceptionIdentifier) throws SystemException { try { _theTx.participantFaulted(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public synchronized void participantRolledBack (String participantId) throws InvalidParticipantException, WrongStateException, SystemException { if (participantId == null) throw new SystemException( wscfLogger.i18NLogger.get_model_twophase_arjunacore_ATCoordinator_2()); if (status() == ActionStatus.RUNNING) changeParticipantStatus(participantId, ROLLEDBACK); else throw new WrongStateException(); }
public GlobalId activityId () throws NoActivityException, SystemException { ActivityImple curr = current(); if (curr == null) throw new NoActivityException(); // or return null? else return curr.getGlobalId(); }
public static final void addHLS (HLS service) throws InvalidHLSException, SystemException { if (service == null) { throw new InvalidHLSException(); } else { String key = service.identity(); synchronized(_hlsMap) { _hlsMap.put(key, service); } } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void fail (final QName exceptionIdentifier) throws SystemException { try { _theTx.participantFaulted(_participantId); } catch (com.arjuna.mw.wscf.exceptions.InvalidParticipantException ex) { throw new SystemException("UnknownParticipantException"); } catch (com.arjuna.mw.wsas.exceptions.SystemException ex) { throw new SystemException(ex.toString()); } }
public GlobalId activityId () throws NoActivityException, SystemException { ActivityImple curr = current(); if (curr == null) throw new NoActivityException(); // or return null? else return curr.getGlobalId(); }
public static final void addHLS (HLS service) throws InvalidHLSException, SystemException { if (service == null) { throw new InvalidHLSException(); } else { String key = service.identity(); synchronized(_hlsMap) { _hlsMap.put(key, service); } } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public String serviceType() throws NoActivityException, SystemException { ActivityImple currentActivity = current(); if (currentActivity == null) { throw new NoActivityException(); } return currentActivity.serviceType(); }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }
public void afterCompletion (int status) throws SystemException { try { _theRegistrar.disassociate(_cleanupId); } catch (Exception ex) { ex.printStackTrace(); throw new SystemException(ex.toString()); } }