Codota Logo
SubordinateATCoordinator
Code IndexAdd Codota to your IDE (free)

How to use
SubordinateATCoordinator
in
com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate

Best Java code snippets using com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator (Showing top 20 results out of 315)

  • Common ways to obtain SubordinateATCoordinator
private void myMethod () {
SubordinateATCoordinator s =
  • Codota IconString coordinatorId;SubordinateATCoordinator.getRecoveredCoordinator(coordinatorId)
  • Codota IconUid uid;SubordinateATCoordinator.getRecoveredCoordinator(uid.stringForm())
  • Smart code suggestions by Codota
}
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 || !(subordinateCoordinatorRecoveryStarted && participantRecoveryStarted)) {
    return;
  }
  culledOrphanSubordinates = true;
  SubordinateATCoordinator[] coordinators = SubordinateATCoordinator.listRecoveredCoordinators();
  for (SubordinateATCoordinator coordinator : coordinators) {
    if (coordinator.getSubordinateType().equals(SubordinateATCoordinator.SUBORDINATE_TX_TYPE_AT_AT) && coordinator.isOrphaned()) {
      RecoveryLogger.i18NLogger.warn_participant_at_XTSATRecoveryModule_5(coordinator.get_uid());
      coordinator.rollback();
    }
  }
}

origin: org.jboss.jbossts/jbossxts

/**
 * test whether a transaction has been restored without its proxy participant. this indicates that
 * we crashed between preparing the suborindate TX and logging the proxy participant.
 * @return
 */
public boolean isOrphaned()
{
  String id = get_uid().stringForm();
  if (isActiveProxy(id)) {
    return false;
  }
  // the proxy may have been removed because this tx has been resolved while we were checking
  if (getRecoveredCoordinator(id) == null) {
    return false;
  }
  // ok we have a tx but no proxy so this is really an orphan
  return true;
}
origin: org.jboss.jbossts/jbossxts-api

/**
 * perform a phase 2 commit for the bridged-to transaction
 */
public void commit ()
{
  coordinator.commit();
}
origin: org.jboss.jbossts.xts/ws-t11

  coordinator.rollback();
} else {
  boolean isRecoveryScanStarted = recoveryManager.isSubordinateCoordinatorRecoveryStarted();
  coordinator = SubordinateATCoordinator.getRecoveredCoordinator(coordinatorId);
  if (coordinator == null) {
    if (!isRecoveryScanStarted) {
  } else if(!coordinator.isActivated()) {
    int status = coordinator.status();
        (status == ActionStatus.ABORT_ONLY)) {
      coordinator.rollback();
      SubordinateATCoordinator.removeActiveProxy(coordinatorId);
      status = coordinator.status();
origin: org.jboss.jbossts.xts/ws-t11

  coordinator.commit();
} else {
  XTSATRecoveryManager recoveryManager = null;
    coordinator = SubordinateATCoordinator.getRecoveredCoordinator(coordinatorId);
  } else if(!coordinator.isActivated()) {
    int status = coordinator.status();
      coordinator.commit();
      SubordinateATCoordinator.removeActiveProxy(coordinatorId);
      status = coordinator.status();
origin: org.jboss.jbossts/jbossxts

/**
 * normal constructor used when the subordinate coordinator is registered as a durable participant
 * with its parent coordinator.
 *
 * @param coordinator
 */
public SubordinateDurable2PCStub(SubordinateATCoordinator coordinator)
{
  this.coordinator = coordinator;
  this.coordinatorId = coordinator.get_uid().stringForm();
  this.recovered = false;
}
origin: org.jboss.jbossts/jbossxts

SubordinateATCoordinator.removeRecoveredCoordinator(this);
runCallback(get_uid().stringForm());
origin: org.jboss.jbossts/jbossxts

String vtppid = subTx.getVolatile2PhaseId();
String dtppid = subTx.getDurable2PhaseId();
Volatile2PCParticipant vtpp = new SubordinateVolatile2PCStub(subTx);
Durable2PCParticipant dtpp = new SubordinateDurable2PCStub(subTx);
coordinationContext.setCoordinationType(coordinationTypeURI);
CoordinationContextType.Identifier identifier = new CoordinationContextType.Identifier();
String txId = subTx.get_uid().stringForm();
identifier.setValue("urn:" + txId);
coordinationContext.setIdentifier(identifier) ;
origin: org.jboss.jbossts/jbossxts-api

SubordinateATCoordinator[] coordinators = SubordinateATCoordinator.listRecoveredCoordinators();
int count = 0;
  if (coordinators[i].getSubordinateType().equals(subordinateType)) {
    count++;
  if (coordinator.getSubordinateType().equals(subordinateType)) {
    BridgeWrapper bridgeWrapper = new BridgeWrapper();
    bridgeWrapper.context = null;
    bridgeWrapper.coordinator = coordinator;
    bridgeWrapper.id = coordinator.get_uid().stringForm();
    bridgeWrapper.subordinateType = coordinator.getSubordinateType();
    result[count++] = bridgeWrapper;
origin: org.jboss.jbossts/jbossxts-api

/**
 * recreate a wrapper for a bridged-to WS-AT 1.1 transaction recovered from the log
 * @param identifier the identifier of a previously created bridged-to transaction
 * @return a wrapper for the bridged-to transaction or null if it may still be awaiting recovery
 * @throws UnknownTransactionException if recovery has been performed and no transaction with the
 * given identifier has been found in the log
 */
public static BridgeWrapper recover(String identifier) throws UnknownTransactionException
{
  SubordinateATCoordinator coordinator = SubordinateATCoordinator.getRecoveredCoordinator(identifier);
  if (coordinator != null) {
    BridgeWrapper bridgeWrapper = new BridgeWrapper();
    bridgeWrapper.context = null;
    bridgeWrapper.coordinator =coordinator;
    bridgeWrapper.id = identifier;
    bridgeWrapper.subordinateType = coordinator.getSubordinateType();
    return bridgeWrapper;
  } else {
    XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
    if (recoveryManager != null && recoveryManager.isCoordinatorRecoveryStarted()) {
      throw new UnknownTransactionException();
    } else {
      return null;
    }
  }
}
origin: org.jboss.jbossts/jbossxts

if (SubordinateATCoordinator.getRecoveredCoordinator(recoverUid.stringForm()) != null) {
  return;
origin: org.jboss.jbossts/jbossxts-api

/**
 * initiate synchronization beforeCompletion processing for the bridged-to transaction
 *
 * @return true if the beforeCompletion succeeds otherwise false.
 */
public boolean prepareVolatile()
{
  return coordinator.prepareVolatile();
}
origin: org.jboss.jbossts/jbossxts-api

/**
 * prepare the bridged-to transaction
 * @return the result of preparing the transaction
 */
public int prepare ()
{
  return coordinator.prepare();
}

origin: org.jboss.jbossts.xts/jbossxts

/**
 * this is called as part of the after completion processing and should ensure that the interposed
 * coordinator performs its afterCompletion processing
 * @throws WrongStateException
 * @throws SystemException
 */
public void commit() throws WrongStateException, SystemException {
  coordinator.commitVolatile();
}
origin: org.jboss.jbossts/jbossxts-api

/**
 * initiate synchronization afterCompletion processing for the bridged-to transaction following a
 * rollback
 */
public void rollbackVolatile()
{
  coordinator.rollbackVolatile();
}
origin: org.jboss.jbossts/jbossxts-api

/**
 * rollback the bridged-to transaction
 */
public void rollback ()
{
  coordinator.rollback();
}
origin: org.jboss.jbossts.xts/jbossxts

  coordinator.rollback();
} else {
  boolean isRecoveryScanStarted = recoveryManager.isSubordinateCoordinatorRecoveryStarted();
  coordinator = SubordinateATCoordinator.getRecoveredCoordinator(coordinatorId);
  if (coordinator == null) {
    if (!isRecoveryScanStarted) {
  } else if(!coordinator.isActivated()) {
    int status = coordinator.status();
        (status == ActionStatus.ABORT_ONLY)) {
      coordinator.rollback();
      SubordinateATCoordinator.removeActiveProxy(coordinatorId);
      status = coordinator.status();
origin: org.jboss.jbossts.xts/jbossxts

  coordinator.commit();
} else {
  XTSATRecoveryManager recoveryManager = null;
    coordinator = SubordinateATCoordinator.getRecoveredCoordinator(coordinatorId);
  } else if(!coordinator.isActivated()) {
    int status = coordinator.status();
      coordinator.commit();
      SubordinateATCoordinator.removeActiveProxy(coordinatorId);
      status = coordinator.status();
origin: org.jboss.jbossts.xts/jbossxts

/**
 * return a uid for the durable participant registered on behalf of this corodinator
 */
public String getDurable2PhaseId()
{
  return PARTICIPANT_PREFIX + get_uid().stringForm() + "_D";
}
origin: org.jboss.jbossts.xts/jbossxts

SubordinateATCoordinator.removeRecoveredCoordinator(this);
runCallback(get_uid().stringForm());
com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinateSubordinateATCoordinator

Javadoc

This class represents a specific coordination instance. It is essentially an ArjunaCore TwoPhaseCoordinator, which gives us access to two-phase with synchronization support but without thread management. This is the subordinate coordinator implementation which we use when doing interposition.

Most used methods

  • get_uid
  • getRecoveredCoordinator
  • rollback
    this is driven by a durable participant registered on behalf of the coordinator and does a normal co
  • commit
    this is driven by a durable participant registered on behalf of the coordinator and does a normal co
  • commitVolatile
    this is driven by a volatile participant registered on behalf of the coordinator
  • getSubordinateType
  • listRecoveredCoordinators
  • prepare
    this is driven by a durable participant registered on behalf of the coordinator and does a normal pr
  • prepareVolatile
    this is driven by a volatile participant registered on behalf of the coordinator
  • rollbackVolatile
    this is driven by a volatile participant registered on behalf of the coordinator
  • activate
  • addActiveProxy
  • activate,
  • addActiveProxy,
  • addCallback,
  • addRecoveredCoordinator,
  • enlistParticipant,
  • enlistSynchronization,
  • error,
  • getDurable2PhaseId,
  • getVolatile2PhaseId,
  • isActivated

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
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