/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
crrrm.periodicWorkFirstPass(); crrrm.periodicWorkSecondPass(); long endTime = System.currentTimeMillis();
recoveryDataSource); long startTime = System.currentTimeMillis(); crrrm.periodicWorkFirstPass(); crrrm.periodicWorkSecondPass(); long endTime = System.currentTimeMillis();
recoveryModule.periodicWorkFirstPass(); recoveryModule.periodicWorkSecondPass(); assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
recoveryModule.periodicWorkFirstPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed));
commitMarkableResourceRecoveryModule.periodicWorkFirstPass(); assertTrue(commitMarkableResourceRecoveryModule.wasCommitted( "commitmarkableresource", committed)); "commitmarkableresource", committed)); manager.scan(); commitMarkableResourceRecoveryModule.periodicWorkFirstPass(); commitMarkableResourceRecoveryModule.periodicWorkSecondPass();
commitMarkableResourceRecoveryModule.periodicWorkFirstPass(); XAResourceOrphanFilter.Vote vote = new JTATransactionLogXAResourceOrphanFilter().checkXid(preparedXid); assertTrue(vote == XAResourceOrphanFilter.Vote.LEAVE_ALONE);
recoveryModule.periodicWorkFirstPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed)); recoveryModule.periodicWorkFirstPass(); recoveryModule.periodicWorkSecondPass(); assertFalse(recoveryModule.wasCommitted("commitmarkableresource",
recoveryModule.periodicWorkFirstPass(); recoveryModule.periodicWorkSecondPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", recoveryModule.periodicWorkFirstPass(); assertTrue(recoveryModule.wasCommitted("commitmarkableresource", committed));