public void run() { _purger.writeRemovalEntries(); // flush everything in the cache first. _purger.purge(); }
_purger.trigger(); InputObjectState logs = new InputObjectState(); OutputObjectState objUids = new OutputObjectState(); Uid logName = new Uid(Uid.nullUid()); if (logName.notEquals(Uid.nullUid())) ArrayList<InputObjectState> txs = scanLog(logName, tName); UidHelper.packInto(txs.get(i).stateUid(), objUids); UidHelper.packInto(Uid.nullUid(), objUids); state.setBuffer(objUids.buffer());
OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); _purger.addRemovedState(u, tn, s); throw new ObjectStoreException(ex.toString(), ex); throw new ObjectStoreException(ex.toString(), ex); removeFromLog(u);
_purger.trigger(); TransactionData td = getLogName(u, tn, -1); throw new ObjectStoreException(); ArrayList<InputObjectState> states = scanLog(td.container.getName(), tn); if (states.get(i).stateUid().equals(u)) return states.get(i);
public LogStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); // overrides parents use of isObjectStoreSync doSync = objectStoreEnvironmentBean.isTransactionSync(); _synchronousRemoval = objectStoreEnvironmentBean.isSynchronousRemoval(); _purgeTime = objectStoreEnvironmentBean.getPurgeTime(); _maxFileSize = objectStoreEnvironmentBean.getTxLogSize(); _purger = new LogPurger(this, _purgeTime); _purger.setDaemon(true); Runtime.getRuntime().addShutdownHook(new PurgeShutdownHook(_purger)); _purger.start(); }
protected synchronized boolean setupStore(String location) throws ObjectStoreException { if (!checkSync) { if(arjPropertyManager.getObjectStoreEnvironmentBean().isTransactionSync()) { syncOn(); } else { syncOff(); } } checkSync = true; if (_purger == null) { _purger = new LogPurger(this, _purgeTime); _purger.setDaemon(true); Runtime.getRuntime() .addShutdownHook(new PurgeShutdownHook(_purger)); _purger.start(); } return super.setupStore(location); }
_purger.trigger(); InputObjectState logs = new InputObjectState(); OutputObjectState objUids = new OutputObjectState(); Uid logName = new Uid(Uid.nullUid()); if (logName.notEquals(Uid.nullUid())) ArrayList<InputObjectState> txs = scanLog(logName, tName); UidHelper.packInto(txs.get(i).stateUid(), objUids); UidHelper.packInto(Uid.nullUid(), objUids); state.setBuffer(objUids.buffer());
OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); _purger.addRemovedState(u, tn, s); throw new ObjectStoreException(ex.toString(), ex); throw new ObjectStoreException(ex.toString(), ex); removeFromLog(u);
_purger.trigger(); TransactionData td = getLogName(u, tn, -1); throw new ObjectStoreException(); ArrayList<InputObjectState> states = scanLog(td.container.getName(), tn); if (states.get(i).stateUid().equals(u)) return states.get(i);
public LogStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); // overrides parents use of isObjectStoreSync doSync = objectStoreEnvironmentBean.isTransactionSync(); _synchronousRemoval = objectStoreEnvironmentBean.isSynchronousRemoval(); _purgeTime = objectStoreEnvironmentBean.getPurgeTime(); _maxFileSize = objectStoreEnvironmentBean.getTxLogSize(); _purger = new LogPurger(this, _purgeTime); _purger.setDaemon(true); Runtime.getRuntime().addShutdownHook(new PurgeShutdownHook(_purger)); _purger.start(); }
writeRemovalEntries(); _objStore.truncateLogs();
_purger.trigger(); InputObjectState logs = new InputObjectState(); OutputObjectState objUids = new OutputObjectState(); Uid logName = new Uid(Uid.nullUid()); if (logName.notEquals(Uid.nullUid())) ArrayList<InputObjectState> txs = scanLog(logName, tName); UidHelper.packInto(txs.get(i).stateUid(), objUids); UidHelper.packInto(Uid.nullUid(), objUids); state.setBuffer(objUids.buffer());
OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); _purger.addRemovedState(u, tn, s); throw new ObjectStoreException(ex.toString(), ex); throw new ObjectStoreException(ex.toString(), ex); removeFromLog(u);
_purger.trigger(); TransactionData td = getLogName(u, tn, -1); throw new ObjectStoreException(); ArrayList<InputObjectState> states = scanLog(td.container.getName(), tn); if (states.get(i).stateUid().equals(u)) return states.get(i);
public LogStore(ObjectStoreEnvironmentBean objectStoreEnvironmentBean) throws ObjectStoreException { super(objectStoreEnvironmentBean); // overrides parents use of isObjectStoreSync doSync = objectStoreEnvironmentBean.isTransactionSync(); _synchronousRemoval = objectStoreEnvironmentBean.isSynchronousRemoval(); _purgeTime = objectStoreEnvironmentBean.getPurgeTime(); _maxFileSize = objectStoreEnvironmentBean.getTxLogSize(); _purger = new LogPurger(this, _purgeTime); _purger.setDaemon(true); Runtime.getRuntime().addShutdownHook(new PurgeShutdownHook(_purger)); _purger.start(); }
public void run() { _purger.writeRemovalEntries(); // flush everything in the cache first. _purger.purge(); }
_purger.trigger(); InputObjectState logs = new InputObjectState(); OutputObjectState objUids = new OutputObjectState(); Uid logName = new Uid(Uid.nullUid()); if (logName.notEquals(Uid.nullUid())) ArrayList<InputObjectState> txs = scanLog(logName, tName); UidHelper.packInto(txs.get(i).stateUid(), objUids); UidHelper.packInto(Uid.nullUid(), objUids); state.setBuffer(objUids.buffer());
OutputObjectState removalState = new OutputObjectState(u, tn); removalState.packBytes(_removedState); if (!write_state(u, tn, removalState, s)) throw new ObjectStoreException(); _purger.addRemovedState(u, tn, s); throw new ObjectStoreException(ex.toString(), ex); throw new ObjectStoreException(ex.toString(), ex); removeFromLog(u);