/** * @return the unique coordinator identifier. */ public CoordinatorId identifier () throws NoActivityException, SystemException { ActivityImple curr = current(); if (curr == null) throw new NoActivityException(); return _coordManager.identifier(); }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { _coordManager.participantCannotComplete(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public final Object createSubordinate () throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; BACoordinator subordinateTransaction = coordManager.createSubordinate(); /* * Now add the registrar for this specific coordinator to the * mapper. */ subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar)); _theRegistrar.associate(subordinateTransaction); return subordinateTransaction; } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public SagasHLSImple() { try { ActivityManagerFactory.activityManager().addHLS((HLS) this); } catch (Exception ex) { throw new HLSError(ex.toString()); } _coordinatorService = new CoordinatorServiceImple(); _coordManager = new CoordinatorControl(); }
public final Object createSubordinate () throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; BACoordinator subordinateTransaction = coordManager.createSubordinate(); /* * Now add the registrar for this specific coordinator to the * mapper. */ subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar)); _theRegistrar.associate(subordinateTransaction); return subordinateTransaction; } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public SagasHLSImple() { try { ActivityManagerFactory.activityManager().addHLS((HLS) this); } catch (Exception ex) { throw new HLSError(ex.toString()); } _coordinatorService = new CoordinatorServiceImple(); _coordManager = new CoordinatorControl(); }
public final Object createSubordinate () throws NoActivityException, InvalidProtocolException, SystemException { try { CoordinatorServiceImple coordManager = (CoordinatorServiceImple) _coordManager; BACoordinator subordinateTransaction = coordManager.createSubordinate(); /* * Now add the registrar for this specific coordinator to the * mapper. */ subordinateTransaction.enlistSynchronization(new CleanupSynchronization(subordinateTransaction.get_uid().stringForm(), _theRegistrar)); _theRegistrar.associate(subordinateTransaction); return subordinateTransaction; } catch (Exception ex) { throw new SystemException(ex.toString()); } }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { _coordManager.participantFaulted(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
/** * @return the unique coordinator identifier. */ public CoordinatorId identifier () throws NoActivityException, SystemException { ActivityImple curr = current(); if (curr == null) throw new NoActivityException(); return _coordManager.identifier(); }
public void participantCannotComplete (String participantId) throws NoActivityException, InvalidParticipantException, WrongStateException, SystemException { _coordManager.participantCannotComplete(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
/** * @exception SystemException Thrown if any error occurs. * * @return the status of the current activity. If there is no * activity associated with the thread then NoActivity * will be returned. * * @see com.arjuna.mw.wsas.status.Status */ public com.arjuna.mw.wsas.status.Status status () throws SystemException { ActivityImple curr = current(); if (curr == null) return NoActivity.instance(); return _coordManager.status(); }
public void participantFaulted (String participantId) throws NoActivityException, InvalidParticipantException, SystemException { _coordManager.participantFaulted(participantId); try { setCancelOnly(); } catch (Exception ex) { throw new SystemException(ex.toString()); } }
/** * @exception SystemException Thrown if any error occurs. * * @return the status of the current activity. If there is no * activity associated with the thread then NoActivity * will be returned. * * @see com.arjuna.mw.wsas.status.Status */ public com.arjuna.mw.wsas.status.Status status () throws SystemException { ActivityImple curr = current(); if (curr == null) return NoActivity.instance(); return _coordManager.status(); }