public ResourceRecord (boolean propagate, Resource theResource, Uid recCoordUid) { super(new Uid(), null, ObjectType.ANDPERSISTENT); _parentCoordHandle = null; _resourceHandle = theResource; _stringifiedResourceHandle = null; _recCoordUid = (recCoordUid != null) ? (new Uid(recCoordUid)) : Uid.nullUid(); _propagateRecord = propagate; _committed = false; _rolledback = false; }
public OutputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("OutputObjectState::OutputObjectState()"); } bufferUid = new Uid(); super._valid = bufferUid.valid(); imageType = null; }
public InputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("InputObjectState::InputObjectState()"); } bufferUid = new Uid(Uid.nullUid()); super._valid = false; imageType = null; }
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(); } } }
public OutputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("OutputObjectState::OutputObjectState()"); } bufferUid = new Uid(); super._valid = bufferUid.valid(); imageType = null; }
public InputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("InputObjectState::InputObjectState()"); } bufferUid = new Uid(Uid.nullUid()); super._valid = false; imageType = null; }
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(); } } }
public OutputObjectState (Uid newUid, String tName) { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("OutputObjectState::OutputObjectState(" + newUid + ", " + tName + ")"); } bufferUid = new Uid(newUid); super._valid = bufferUid.valid(); imageType = (tName == null ? null : new String(tName)); }
public InputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("InputObjectState::InputObjectState()"); } bufferUid = new Uid(Uid.nullUid()); super._valid = false; imageType = null; }
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; }
public InputObjectState (Uid newUid, String tName, byte[] buff) { super(buff); // implicitly copies the array contents. if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("InputObjectState::InputObjectState(" + newUid + ", " + tName + ")"); } bufferUid = new Uid(newUid); super._valid = super._valid && bufferUid.valid(); imageType = new String(tName); }
public InputObjectState () { if (tsLogger.logger.isTraceEnabled()) { tsLogger.logger.trace("InputObjectState::InputObjectState()"); } bufferUid = new Uid(Uid.nullUid()); super._valid = false; imageType = null; }
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; }