congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
CommitMarkableResourceRecordRecoveryModule
Code IndexAdd Tabnine to your IDE (free)

How to use
CommitMarkableResourceRecordRecoveryModule
in
com.arjuna.ats.internal.jta.recovery.arjunacore

Best Java code snippets using com.arjuna.ats.internal.jta.recovery.arjunacore.CommitMarkableResourceRecordRecoveryModule (Showing top 20 results out of 315)

origin: org.jboss.jbossts.jta/narayana-jta

/**
 * Can only be called after the first phase has executed
 * 
 * @param xid
 * @return
 */
public synchronized boolean wasCommitted(String jndiName, Xid xid)
    throws ObjectStoreException {
  if (!queriedResourceManagers.contains(jndiName) || committedXidsToJndiNames.get(xid) == null) {
    periodicWorkFirstPass();
  }
  if (!queriedResourceManagers.contains(jndiName)) {
    throw new ObjectStoreException(jndiName + " was not online");
  }
  String committed = committedXidsToJndiNames.get(xid);
  if (tsLogger.logger.isTraceEnabled()) {
    tsLogger.logger.trace("wasCommitted" + xid + " " + committed);
  }
  return committed != null;
}
origin: jbosstm/narayana

preparedAtomicActions.addAll(convertToList(aa_uids));
  preparedAtomicActions.addAll(convertToList(aa_uids));
    delete(jndiName, toDelete);
origin: jbosstm/narayana

  @Override
  public void afterCompletion(int status) {
    if (!onePhase && status == Status.STATUS_COMMITTED) {
      commitMarkableResourceRecoveryModule
          .notifyOfCompletedBranch(
              commitMarkableJndiName, xid);
    }
  }
});
origin: org.jboss.narayana.jts/narayana-jts-idlj

delete(e.getKey(), e.getValue());
            moveRecord(currentUid,
                CONNECTABLE_ATOMIC_ACTION_TYPE,
                ATOMIC_ACTION_TYPE);
          moveRecord(currentUid,
              CONNECTABLE_ATOMIC_ACTION_TYPE,
              ATOMIC_ACTION_TYPE);                                
    if (!isTransactionInMidFlight(transactionStatusConnectionMgr
        .getTransactionStatus(ATOMIC_ACTION_TYPE,
            currentUid))) {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
          } else {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
origin: jbosstm/narayana

recoveryModule.periodicWorkFirstPass();
recoveryModule.periodicWorkSecondPass();
assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
origin: jbosstm/narayana

recoveryModule = new CommitMarkableResourceRecordRecoveryModule();
recoveryModule.periodicWorkFirstPass();
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
recoveryModule.periodicWorkSecondPass();
assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
origin: jbosstm/narayana

committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
origin: jbosstm/narayana

crrrm.periodicWorkFirstPass();
crrrm.periodicWorkSecondPass();
long endTime = System.currentTimeMillis();
origin: org.jboss.jbossts.jta/narayana-jta

delete(e.getKey(), e.getValue());
            moveRecord(currentUid,
                CONNECTABLE_ATOMIC_ACTION_TYPE,
                ATOMIC_ACTION_TYPE);
          moveRecord(currentUid,
              CONNECTABLE_ATOMIC_ACTION_TYPE,
              ATOMIC_ACTION_TYPE);                                
    if (!isTransactionInMidFlight(transactionStatusConnectionMgr
        .getTransactionStatus(ATOMIC_ACTION_TYPE,
            currentUid))) {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
          } else {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
origin: jbosstm/narayana

commitMarkableResourceRecoveryModule.periodicWorkFirstPass();
assertTrue(commitMarkableResourceRecoveryModule.wasCommitted(
    "commitmarkableresource", committed));
commitMarkableResourceRecoveryModule.periodicWorkSecondPass();
assertTrue(commitMarkableResourceRecoveryModule.wasCommitted(
    "commitmarkableresource", committed));
manager.scan();
commitMarkableResourceRecoveryModule.periodicWorkFirstPass();
commitMarkableResourceRecoveryModule.periodicWorkSecondPass();
assertFalse(commitMarkableResourceRecoveryModule.wasCommitted(
    "commitmarkableresource", committed));
origin: org.jboss.narayana.jta/jta

committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
origin: jbosstm/narayana

    recoveryDataSource);
long startTime = System.currentTimeMillis();
crrrm.periodicWorkFirstPass();
crrrm.periodicWorkSecondPass();
long endTime = System.currentTimeMillis();
origin: org.jboss.narayana.jta/jta

delete(e.getKey(), e.getValue());
            moveRecord(currentUid,
                CONNECTABLE_ATOMIC_ACTION_TYPE,
                ATOMIC_ACTION_TYPE);
          moveRecord(currentUid,
              CONNECTABLE_ATOMIC_ACTION_TYPE,
              ATOMIC_ACTION_TYPE);                                
    if (!isTransactionInMidFlight(transactionStatusConnectionMgr
        .getTransactionStatus(ATOMIC_ACTION_TYPE,
            currentUid))) {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
          } else {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
origin: jbosstm/narayana

recoveryModule.periodicWorkFirstPass();
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
recoveryModule.periodicWorkSecondPass();
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
recoveryModule.periodicWorkFirstPass();
recoveryModule.periodicWorkSecondPass();
assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
origin: jbosstm/narayana

preparedAtomicActions.addAll(convertToList(aa_uids));
  preparedAtomicActions.addAll(convertToList(aa_uids));
    delete(jndiName, toDelete);
origin: org.jboss.narayana.jts/narayana-jts-idlj

committed = commitMarkableResourceRecoveryModule.wasCommitted(commitMarkableJndiName, xid);
origin: org.jboss.narayana.jta/jta

/**
 * Can only be called after the first phase has executed
 * 
 * @param xid
 * @throws ObjectStoreException if the resource manager was offline
 * @return whether the Xid was commited by the resource manager
 */
public synchronized boolean wasCommitted(String jndiName, Xid xid)
    throws ObjectStoreException {
  if (!queriedResourceManagers.contains(jndiName) || committedXidsToJndiNames.get(xid) == null) {
    periodicWorkFirstPass();
  }
  if (!queriedResourceManagers.contains(jndiName)) {
    throw new ObjectStoreException(jndiName + " was not online");
  }
  String committed = committedXidsToJndiNames.get(xid);
  if (tsLogger.logger.isTraceEnabled()) {
    tsLogger.logger.trace("wasCommitted" + xid + " " + committed);
  }
  return committed != null;
}
origin: jbosstm/narayana

  @Override
  public void afterCompletion(int status) {
    if (!onePhase && status == Status.STATUS_COMMITTED) {
      commitMarkableResourceRecoveryModule
          .notifyOfCompletedBranch(
              commitMarkableJndiName, xid);
    }
  }
});
origin: jbosstm/narayana

delete(e.getKey(), e.getValue());
            moveRecord(currentUid,
                CONNECTABLE_ATOMIC_ACTION_TYPE,
                ATOMIC_ACTION_TYPE);
          moveRecord(currentUid,
              CONNECTABLE_ATOMIC_ACTION_TYPE,
              ATOMIC_ACTION_TYPE);                                
    if (!isTransactionInMidFlight(transactionStatusConnectionMgr
        .getTransactionStatus(ATOMIC_ACTION_TYPE,
            currentUid))) {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
          } else {
            moveRecord(currentUid, ATOMIC_ACTION_TYPE,
                CONNECTABLE_ATOMIC_ACTION_TYPE);
origin: jbosstm/narayana

recoveryModule.periodicWorkFirstPass();
recoveryModule.periodicWorkSecondPass();
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
recoveryModule.periodicWorkFirstPass();
assertTrue(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
recoveryModule.periodicWorkSecondPass();
assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
    committed));
com.arjuna.ats.internal.jta.recovery.arjunacoreCommitMarkableResourceRecordRecoveryModule

Javadoc

This CommitMarkableResourceRecord assumes the following table has been created: create table xids (xid varbinary(255), transactionManagerID varchar(255)) (ora/syb/mysql) create table xids (xid bytea, transactionManagerID varchar(255)) (psql) sp_configure "lock scheme",0,datarows (syb) The CommitMarkableResourceRecord does not support nested transactions TODO you have to set max_allowed_packet for large reaps on mysql

Most used methods

  • periodicWorkFirstPass
  • wasCommitted
    Can only be called after the first phase has executed
  • convertToList
  • delete
  • isTransactionInMidFlight
  • moveRecord
  • notifyOfCompletedBranch
  • <init>
  • periodicWorkSecondPass

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ImageIO (javax.imageio)
  • Reference (javax.naming)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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