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

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

Best Java code snippets using com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinate.SubordinateATCoordinator.getSubordinateType (Showing top 5 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/jbossxts-api

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.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.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 || !(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

/**
 * 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-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;
    }
  }
}
com.arjuna.mwlabs.wscf.model.twophase.arjunacore.subordinateSubordinateATCoordinatorgetSubordinateType

Popular methods of SubordinateATCoordinator

  • 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
  • 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
  • addCallback
    register a callback to be called when a subordinate transaction with a specific key executes a commi
  • addActiveProxy,
  • addCallback,
  • addRecoveredCoordinator,
  • enlistParticipant,
  • enlistSynchronization,
  • error,
  • getDurable2PhaseId,
  • getVolatile2PhaseId,
  • isActivated

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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