private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
private Collection<Uid> getUids(String type) { Collection<Uid> uids = new ArrayList<Uid>(); ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), type); while (true) { Uid u = iter.iterate(); if (u == null || Uid.nullUid().equals(u)) break; uids.add(u); } return uids; }
private final boolean supportedLog (String logID) { Uid id = new Uid(logID); if (id.equals(Uid.nullUid())) return false; ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), _transactionType); Uid u; do { u = iter.iterate(); if (u.equals(id)) return true; } while (Uid.nullUid().notEquals(u)); return false; }
Uid NULL_UID = Uid.nullUid(); Uid theUid = null; theUid = UidHelper.unpackFrom( uids ) ; if (theUid.equals( NULL_UID))
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
private final boolean supportedLog (String logID) { Uid id = new Uid(logID); if (id.equals(Uid.nullUid())) return false; ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), _transactionType); Uid u; do { u = iter.iterate(); if (u.equals(id)) return true; } while (Uid.nullUid().notEquals(u)); return false; }
private Vector processTransactions( InputObjectState uids ) { Vector uidVector = new Vector() ; if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("processing " + _transactionType + " transactions"); } final Uid NULL_UID = Uid.nullUid(); Uid theUid = null; while (true) { try { theUid = UidHelper.unpackFrom( uids ) ; } catch ( Exception ex ) { break; } if (theUid.equals(NULL_UID )) { break; } if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("found transaction " + theUid); } uidVector.addElement( theUid ) ; } return uidVector ; }
private Collection<Uid> getUids(String type) { Collection<Uid> uids = new ArrayList<Uid>(); ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), type); while (true) { Uid u = iter.iterate(); if (u == null || Uid.nullUid().equals(u)) break; uids.add(u); } return uids; }
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
private final boolean supportedLog (String logID) { Uid id = new Uid(logID); if (id.equals(Uid.nullUid())) return false; ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), _transactionType); Uid u; do { u = iter.iterate(); if (u.equals(id)) return true; } while (Uid.nullUid().notEquals(u)); return false; }
private Vector processTransactions( InputObjectState uids ) { Vector uidVector = new Vector() ; if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("processing " + _transactionType + " transactions"); } final Uid NULL_UID = Uid.nullUid(); Uid theUid = null; while (true) { try { theUid = UidHelper.unpackFrom( uids ) ; } catch ( Exception ex ) { break; } if (theUid.equals(NULL_UID )) { break; } if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("found transaction " + theUid); } uidVector.addElement( theUid ) ; } return uidVector ; }
private Collection<Uid> getUids(String type) { Collection<Uid> uids = new ArrayList<Uid>(); ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), type); while (true) { Uid u = iter.iterate(); if (u == null || Uid.nullUid().equals(u)) break; uids.add(u); } return uids; }
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
private final boolean supportedLog (String logID) { Uid id = new Uid(logID); if (id.equals(Uid.nullUid())) return false; ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), _transactionType); Uid u; do { u = iter.iterate(); if (u.equals(id)) return true; } while (Uid.nullUid().notEquals(u)); return false; }
private Vector processTransactions( InputObjectState uids ) { Vector uidVector = new Vector() ; if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("processing " + _transactionType + " transactions"); } final Uid NULL_UID = Uid.nullUid(); Uid theUid = null; while (true) { try { theUid = UidHelper.unpackFrom( uids ) ; } catch ( Exception ex ) { break; } if (theUid.equals(NULL_UID )) { break; } if (RecoveryLogger.logger.isDebugEnabled()) { RecoveryLogger.logger.debug("found transaction " + theUid); } uidVector.addElement( theUid ) ; } return uidVector ; }
private Collection<Uid> getUids(String type) throws MBeanException { Collection<Uid> uids = new ArrayList<Uid>(); try { ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), type); while (true) { Uid u = iter.iterate(); if (u == null || Uid.nullUid().equals(u)) break; uids.add(u); } } catch (ObjectStoreException | IOException e) { throw new MBeanException(e); } return uids; }
private List<Uid> convertToList(InputObjectState aa_uids) { List<Uid> uids = new ArrayList<Uid>(); boolean moreUids = true; while (moreUids) { Uid theUid = null; try { theUid = UidHelper.unpackFrom(aa_uids); if (theUid.equals(Uid.nullUid())) { moreUids = false; } else { Uid newUid = new Uid(theUid); if (tsLogger.logger.isDebugEnabled()) { tsLogger.logger.debug("found transaction " + newUid); } uids.add(newUid); } } catch (IOException ex) { moreUids = false; } } return uids; }
void unpackHeader(InputObjectState os) throws IOException { if (os != null) { state = os.unpackString(); byte[] txIdBytes = os.unpackBytes(); txId = new Uid(txIdBytes); if (state.equals("#ARJUNA#")) { if (!txId.equals(Uid.nullUid())) { byte[] pUidBytes = os.unpackBytes(); processUid = new Uid(pUidBytes); } birthDate = os.unpackLong(); } } }
private Collection<Uid> getUids(String type) throws MBeanException { Collection<Uid> uids = new ArrayList<Uid>(); try { ObjectStoreIterator iter = new ObjectStoreIterator(StoreManager.getRecoveryStore(), type); while (true) { Uid u = iter.iterate(); if (u == null || Uid.nullUid().equals(u)) break; uids.add(u); } } catch (ObjectStoreException | IOException e) { throw new MBeanException(e); } return uids; }
private int getUidsCountInStore() throws Exception { final InputObjectState uids = new InputObjectState(); recoveryStore.allObjUids(ATOMIC_ACTION_TYPE, uids); int counter = 0; for (Uid uid = UidHelper.unpackFrom(uids); !uid.equals(Uid.nullUid()); uid = UidHelper.unpackFrom(uids)) { counter++; } return counter; }