public final java.lang.Object[] toRecover () { final int numScanN = (_scanN == null ? 0 : _scanN.length) ; final int numScanM = (_scanM == null ? 0 : _scanM.length) ; final int numScan = Math.min(numScanN, numScanM) ; if (numScan == 0) { return null ; } final Vector workingVector = new Vector() ; for (int count = 0 ; count < numScan ; count++) { if (XAHelper.sameXID(_scanN[count], _scanM[count])) { workingVector.add(_scanN[count]); } } return workingVector.toArray(); }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }
/** * Is the Xid is in the failure list, i.e., the list of those transactions * we couldn't recover, possibly because of transient failures. If so, * return the uid of (one of) the records and remove it from the list. */ private final Uid previousFailure(Xid xid) { if (_failures == null) { return null; } Enumeration e = _failures.keys(); while (e.hasMoreElements()) { Xid theXid = (Xid) e.nextElement(); if (XAHelper.sameXID(xid, theXid)) { // remove uid from failure list Vector failureItem = (Vector) _failures.get(theXid); Uid u = (Uid) failureItem.remove(0); if (failureItem.size() == 0) _failures.remove(theXid); return u; } } // not present in the failures list. return null; }