Tabnine Logo
SubordinateBACoordinator.cancel
Code IndexAdd Tabnine to your IDE (free)

How to use
cancel
method
in
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator

Best Java code snippets using com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinate.SubordinateBACoordinator.cancel (Showing top 9 results out of 315)

origin: org.jboss.jbossts/jbossxts

/**
 * look for recovered subordinate transactions which do not have an associated proxy participant
 * rolling back any that are found. this only needs doing once after the first participant and
 * subordinate transaction recovery passes have both completed
 */
private void cullOrphanedSubordinates()
{
  if (culledOrphanSubordinates || !(subordinateCoordinateRecoveryStarted && participantRecoveryStarted)) {
    return;
  }
  culledOrphanSubordinates = true;
  SubordinateBACoordinator[] coordinators = SubordinateBACoordinator.listRecoveredCoordinators();
  for (SubordinateBACoordinator coordinator : coordinators) {
    if (coordinator.isOrphaned()) {
      RecoveryLogger.i18NLogger.warn_participant_ba_XTSBARecoveryModule_5(coordinator.get_uid());
      coordinator.cancel();
    }
  }
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * look for recovered subordinate transactions which do not have an associated proxy participant
 * rolling back any that are found. this only needs doing once after the first participant and
 * subordinate transaction recovery passes have both completed
 */
private void cullOrphanedSubordinates()
{
  if (culledOrphanSubordinates || !(subordinateCoordinateRecoveryStarted && participantRecoveryStarted)) {
    return;
  }
  culledOrphanSubordinates = true;
  SubordinateBACoordinator[] coordinators = SubordinateBACoordinator.listRecoveredCoordinators();
  for (SubordinateBACoordinator coordinator : coordinators) {
    if (coordinator.isOrphaned()) {
      RecoveryLogger.i18NLogger.warn_participant_ba_XTSBARecoveryModule_5(coordinator.get_uid());
      coordinator.cancel();
    }
  }
}
origin: org.jboss.jbossts.xts/recovery

/**
 * look for recovered subordinate transactions which do not have an associated proxy participant
 * rolling back any that are found. this only needs doing once after the first participant and
 * subordinate transaction recovery passes have both completed
 */
private void cullOrphanedSubordinates()
{
  if (culledOrphanSubordinates || !(subordinateCoordinateRecoveryStarted && participantRecoveryStarted)) {
    return;
  }
  culledOrphanSubordinates = true;
  SubordinateBACoordinator[] coordinators = SubordinateBACoordinator.listRecoveredCoordinators();
  for (SubordinateBACoordinator coordinator : coordinators) {
    if (coordinator.isOrphaned()) {
      RecoveryLogger.i18NLogger.warn_participant_ba_XTSBARecoveryModule_5(coordinator.get_uid());
      coordinator.cancel();
    }
  }
}
origin: org.jboss.jbossts.xts/ws-t11

public void compensate() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
        status = coordinator.status();
origin: org.jboss.jbossts.xts/jbossxts

public void cancel() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
    if (result != ActionStatus.ABORTED) {
      throw new FaultedException("failed to compensate subordinate transaction " + coordinatorId);
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
origin: org.jboss.jbossts.xts/jbossxts

public void compensate() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
        status = coordinator.status();
origin: org.jboss.jbossts/jbossxts

public void cancel() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
    if (result != ActionStatus.ABORTED) {
      throw new FaultedException("failed to compensate subordinate transaction " + coordinatorId);
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
origin: org.jboss.jbossts/jbossxts

public void compensate() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
        status = coordinator.status();
origin: org.jboss.jbossts.xts/ws-t11

public void cancel() throws FaultedException, WrongStateException, SystemException {
  if (!recovered) {
    int result = coordinator.cancel();
    if (result != ActionStatus.ABORTED) {
      throw new FaultedException("failed to compensate subordinate transaction " + coordinatorId);
        coordinator.cancel();
        SubordinateBACoordinator.removeActiveProxy(coordinatorId);
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatorcancel

Javadoc

this is driven by a coordinator-completion participant registered on behalf of the coordinator and is required to propagate the cancel to all registered participants.

Popular methods of SubordinateBACoordinator

  • get_uid
  • getRecoveredCoordinator
  • activate
  • addActiveProxy
  • addCallback
    register a callback to be called when a subordinate transaction with a specific key executes a commi
  • addRecoveredCoordinator
  • close
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • complete
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • delistParticipant
  • enlistParticipant
  • getCoordinatorCompletionParticipantid
    return a uid for the corodinator completion participant registered on behalf of this coordinator
  • isActivated
  • getCoordinatorCompletionParticipantid,
  • isActivated,
  • isOrphaned,
  • listRecoveredCoordinators,
  • participantCannotComplete,
  • participantCompleted,
  • participantFaulted,
  • phase2Abort,
  • removeActiveProxy

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ImageIO (javax.imageio)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Option (scala)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now