Codota Logo
SubordinateBACoordinator.phase2Abort
Code IndexAdd Codota to your IDE (free)

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

  • Common ways to obtain SubordinateBACoordinator
private void myMethod () {
SubordinateBACoordinator s =
  • Codota IconString coordinatorId;SubordinateBACoordinator.getRecoveredCoordinator(coordinatorId)
  • Codota IconUid uid;SubordinateBACoordinator.getRecoveredCoordinator(uid.stringForm())
  • Smart code suggestions by Codota
}
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 complete to all registered coordinator-completion participants.
 * @return the result of preparing the transaction
 */
public void complete ()  throws WrongStateException, SystemException
{
  // if this goes wrong here then we will throw an exception
  super.complete();
  // now we need to run phase one of commit
  // TODO -- need to do completion processing here?
  int outcome = super.prepare(true);
  // if we have prepared ok (or are read only) then status will be COMMITTING
  if (outcome == TwoPhaseOutcome.PREPARE_NOTOK) {
    // phase 1 failed so we need to run phase 2 abort
    // this will set status to ABORTED
    phase2Abort(true);
  }
  // no need to return anything as the caller can just check the status
}
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 complete to all registered coordinator-completion participants.
 * @return the result of preparing the transaction
 */
public void complete ()  throws WrongStateException, SystemException
{
  // if this goes wrong here then we will throw an exception
  super.complete();
  // now we need to run phase one of commit
  // TODO -- need to do completion processing here?
  int outcome = super.prepare(true);
  // if we have prepared ok (or are read only) then status will be COMMITTING
  if (outcome == TwoPhaseOutcome.PREPARE_NOTOK) {
    // phase 1 failed so we need to run phase 2 abort
    // this will set status to ABORTED
    phase2Abort(true);
  }
  // no need to return anything as the caller can just check the status
}
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/jbossxts

super.phase2Abort( _reportHeuristics ) ;
SubordinateBACoordinator.removeRecoveredCoordinator(this);
origin: org.jboss.jbossts.xts/jbossxts

super.phase2Abort( _reportHeuristics ) ;
SubordinateBACoordinator.removeRecoveredCoordinator(this);
origin: org.jboss.jbossts.xts/recovery

super.phase2Abort( _reportHeuristics ) ;
SubordinateBACoordinator.removeRecoveredCoordinator(this);
com.arjuna.mwlabs.wscf.model.sagas.arjunacore.subordinateSubordinateBACoordinatorphase2Abort

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,
  • removeActiveProxy

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now