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

How to use
status
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.status (Showing top 16 results out of 315)

origin: org.jboss.jbossts.xts/jbossxts

/**
 * this is driven by a coordinator-completion participant registered on behalf of the coordinator
 * and is required to propagate the close to all registered participants.
 */
public int close () throws SystemException
{
  int status = status();
  int result;
  if (status == ActionStatus.COMMITTING) {
    // TODO -- need to do completion processing here?
    // we already completed and ran phase 1 so do a phase 2 commit
    phase2Commit(true);
    result = status();
  } else {
    // we have not yet completed so we can rely upon the parent implementation to do
    // everything we need
    result = super.close();
  }
  // if we have completed then remove the coordinator from the recovered coordinators table
  if (status() != ActionStatus.COMMITTING) {
    SubordinateBACoordinator.removeRecoveredCoordinator(this);
  }
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
origin: org.jboss.jbossts/jbossxts

/**
 * this is driven by a coordinator-completion participant registered on behalf of the coordinator
 * and is required to propagate the close to all registered participants.
 */
public int close () throws SystemException
{
  int status = status();
  int result;
  if (status == ActionStatus.COMMITTING) {
    // TODO -- need to do completion processing here?
    // we already completed and ran phase 1 so do a phase 2 commit
    phase2Commit(true);
    result = status();
  } else {
    // we have not yet completed so we can rely upon the parent implementation to do
    // everything we need
    result = super.close();
  }
  // if we have completed then remove the coordinator from the recovered coordinators table
  if (status() != ActionStatus.COMMITTING) {
    SubordinateBACoordinator.removeRecoveredCoordinator(this);
  }
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
origin: org.jboss.jbossts/jbossxts

/**
 * 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.
 */
public int cancel ()
{
  int status = status();
  int result;
  // TODO -- check if there is a window here where status could change to COMMITTING
  if (status == ActionStatus.COMMITTING) {
    phase2Abort(true);
    result = status();
  } else {
    result = super.cancel();
  }
  SubordinateBACoordinator.removeRecoveredCoordinator(this);
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
origin: org.jboss.jbossts.xts/jbossxts

/**
 * 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.
 */
public int cancel ()
{
  int status = status();
  int result;
  // TODO -- check if there is a window here where status could change to COMMITTING
  if (status == ActionStatus.COMMITTING) {
    phase2Abort(true);
    result = status();
  } else {
    result = super.cancel();
  }
  SubordinateBACoordinator.removeRecoveredCoordinator(this);
  // run any callback associated with this transaction
  runCallback(get_uid().stringForm());
  return result;
}
origin: org.jboss.jbossts.xts/ws-t11

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts/jbossxts

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
origin: org.jboss.jbossts.xts/jbossxts

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
origin: org.jboss.jbossts/jbossxts

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts.xts/jbossxts

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts.xts/ws-t11

public void complete() throws WrongStateException, SystemException {
  if (!recovered) {
    // the coordinator will send complete to all participants and then
    // also run phase one commit. the former may throw an exception.
    // if the latter succeeds the tx state will be COMMITTING whereas
    // if it fails it will be ABORTED.
    try {
      coordinator.complete();
    } catch (com.arjuna.mw.wsas.exceptions.WrongStateException wse) {
      throw new WrongStateException(wse.getMessage());
    } catch (com.arjuna.mw.wsas.exceptions.SystemException se) {
      throw new SystemException(se.getMessage());
    }
    // if status is COMMITTING then we return allowing the participant to be logged
    // if status is ABORTED then the participant must fail avoiding any logging
    if (coordinator.status() == ActionStatus.ABORTED) {
      manager.fail(BusinessActivityConstants.WSBA_ELEMENT_FAIL_QNAME);
    } else {
      // null out the manager so we don't attempt to save it to the log
      manager = null;
    }
  } else {
    // we should never get asked to complete a recovered activity
    throw new WrongStateException();
  }
}
origin: org.jboss.jbossts.xts/jbossxts

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts.xts/ws-t11

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts/jbossxts

int status = coordinator.status();
  status = coordinator.status();
origin: org.jboss.jbossts.xts/ws-t11

int status = coordinator.status();
origin: org.jboss.jbossts.xts/jbossxts

int status = coordinator.status();
origin: org.jboss.jbossts/jbossxts

int status = coordinator.status();
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatorstatus

Popular methods of SubordinateBACoordinator

  • get_uid
  • cancel
    this is driven by a coordinator-completion participant registered on behalf of the coordinator and i
  • 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
  • enlistParticipant,
  • getCoordinatorCompletionParticipantid,
  • isActivated,
  • isOrphaned,
  • listRecoveredCoordinators,
  • participantCannotComplete,
  • participantCompleted,
  • participantFaulted,
  • phase2Abort,
  • removeActiveProxy

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer alternatives
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