@Override public void updateModifiedDateOnAccess(long before) { delegate.updateModifiedDateOnAccess(before); }
@Override public void updateModifiedDateOnAccess(long before) { delegate.updateModifiedDateOnAccess(before); }
@Override public void updateModifiedDateOnAccess(long before) { delegate.updateModifiedDateOnAccess(before); }
/** * From now on, update the modified date of an object even when accessing it * in the archive data store. Usually, the modified date is only updated * when creating a new object, or when a new link is added to an existing * object. When this setting is enabled, even getLength() will update the * modified date. * * @param before * - update the modified date to the current time if it is older * than this value */ public void updateModifiedDateOnAccess(long before) { archiveDataStore.updateModifiedDateOnAccess(before); }
/** * From now on, update the modified date of an object even when accessing it * in the archive data store. Usually, the modified date is only updated * when creating a new object, or when a new link is added to an existing * object. When this setting is enabled, even getLength() will update the * modified date. * * @param before * - update the modified date to the current time if it is older * than this value */ public void updateModifiedDateOnAccess(long before) { archiveDataStore.updateModifiedDateOnAccess(before); }
/** * From now on, update the modified date of an object even when accessing it * in the archive data store. Usually, the modified date is only updated * when creating a new object, or when a new link is added to an existing * object. When this setting is enabled, even getLength() will update the * modified date. * * @param before * - update the modified date to the current time if it is older * than this value */ public void updateModifiedDateOnAccess(long before) { archiveDataStore.updateModifiedDateOnAccess(before); }
@Override public void updateModifiedDateOnAccess(long before) { checkIfReadOnly(); getDelegate().updateModifiedDateOnAccess(before); }
@Override public void updateModifiedDateOnAccess(long before) { checkIfReadOnly(); getDelegate().updateModifiedDateOnAccess(before); }
/** * Reset modifiedDateOnAccess to 0 and stop the observation * listener if any are installed. */ public void stopScan() throws RepositoryException { // reset updateModifiedDateOnAccess to OL store.updateModifiedDateOnAccess(0L); if (listeners.size() > 0) { for (Listener listener : listeners) { listener.stop(); } listeners.clear(); } checkObservationException(); context.setGcRunning(false); }
/** * Reset modifiedDateOnAccess to 0 and stop the observation * listener if any are installed. */ public void stopScan() throws RepositoryException { // reset updateModifiedDateOnAccess to OL store.updateModifiedDateOnAccess(0L); if (listeners.size() > 0) { for (Listener listener : listeners) { listener.stop(); } listeners.clear(); } checkObservationException(); context.setGcRunning(false); }
public void run() { try { while (!gcLoopStop) { if (ids.size() > 0) { // store.clearInUse(); long now = System.currentTimeMillis(); LOG.debug("gc now: " + now); store.updateModifiedDateOnAccess(now); for (DataIdentifier id : new ArrayList<DataIdentifier>(ids)) { LOG.debug(" gc touch " + id); store.getRecord(id); } int count = store.deleteAllOlderThan(now); LOG.debug("gc now: " + now + " done, deleted: " + count); } } } catch (DataStoreException e) { gcException = e; } } };
public void mark() throws RepositoryException { if (store == null) { throw new RepositoryException("No DataStore configured."); } long now = System.currentTimeMillis(); if (startScanTimestamp == 0) { startScanTimestamp = now; store.updateModifiedDateOnAccess(startScanTimestamp); } if (pmList == null || !persistenceManagerScan) { for (SessionImpl s : sessionList) { scanNodes(s); } } else { try { if (!NODE_ID_SCAN) { scanPersistenceManagersByNodeInfos(); } else { scanPersistenceManagersByNodeIds(); } } catch (ItemStateException e) { throw new RepositoryException(e); } } }
public void mark() throws RepositoryException { if (store == null) { throw new RepositoryException("No DataStore configured."); } long now = System.currentTimeMillis(); if (startScanTimestamp == 0) { startScanTimestamp = now; store.updateModifiedDateOnAccess(startScanTimestamp); } if (pmList == null || !persistenceManagerScan) { for (SessionImpl s : sessionList) { scanNodes(s); } } else { try { if (!NODE_ID_SCAN) { scanPersistenceManagersByNodeInfos(); } else { scanPersistenceManagersByNodeIds(); } } catch (ItemStateException e) { throw new RepositoryException(e); } } }
long updateTime = System.currentTimeMillis(); LOG.debug("updateTime=" + updateTime); ds.updateModifiedDateOnAccess(updateTime);
long updateTime = System.currentTimeMillis(); LOG.debug("updateTime=" + updateTime); ds.updateModifiedDateOnAccess(updateTime);
ds.updateModifiedDateOnAccess(updateTime);
ds.updateModifiedDateOnAccess(updateTime);