本文整理了Java中org.apache.jackrabbit.core.data.DataStore.updateModifiedDateOnAccess()
方法的一些代码示例,展示了DataStore.updateModifiedDateOnAccess()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataStore.updateModifiedDateOnAccess()
方法的具体详情如下:
包路径:org.apache.jackrabbit.core.data.DataStore
类名称:DataStore
方法名:updateModifiedDateOnAccess
[英]From now on, update the modified date of an object even when accessing it. 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.
[中]从现在起,即使在访问对象时也要更新对象的修改日期。通常,只有在创建新对象或向现有对象添加新链接时,修改日期才会更新。启用此设置后,即使getLength()也会更新修改的日期。
代码示例来源:origin: org.apache.jackrabbit/oak-blob-plugins
@Override
public void updateModifiedDateOnAccess(long before) {
delegate.updateModifiedDateOnAccess(before);
}
代码示例来源:origin: apache/jackrabbit-oak
@Override
public void updateModifiedDateOnAccess(long before) {
delegate.updateModifiedDateOnAccess(before);
}
代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak
@Override
public void updateModifiedDateOnAccess(long before) {
delegate.updateModifiedDateOnAccess(before);
}
代码示例来源:origin: apache/jackrabbit
/**
* 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);
}
代码示例来源:origin: org.apache.jackrabbit/jackrabbit-data
/**
* 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);
}
代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak
/**
* 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);
}
代码示例来源:origin: apache/jackrabbit-oak
@Override
public void updateModifiedDateOnAccess(long before) {
checkIfReadOnly();
getDelegate().updateModifiedDateOnAccess(before);
}
代码示例来源:origin: org.apache.jackrabbit/oak-upgrade
@Override
public void updateModifiedDateOnAccess(long before) {
checkIfReadOnly();
getDelegate().updateModifiedDateOnAccess(before);
}
代码示例来源:origin: org.apache.jackrabbit/jackrabbit-core
/**
* 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);
}
代码示例来源:origin: apache/jackrabbit
/**
* 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);
}
代码示例来源:origin: apache/jackrabbit
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;
}
}
};
代码示例来源:origin: org.apache.jackrabbit/jackrabbit-core
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);
}
}
}
代码示例来源:origin: apache/jackrabbit
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);
}
}
}
代码示例来源:origin: apache/jackrabbit-oak
long updateTime = System.currentTimeMillis();
LOG.debug("updateTime=" + updateTime);
ds.updateModifiedDateOnAccess(updateTime);
代码示例来源:origin: apache/jackrabbit
long updateTime = System.currentTimeMillis();
LOG.debug("updateTime=" + updateTime);
ds.updateModifiedDateOnAccess(updateTime);
代码示例来源:origin: apache/jackrabbit-oak
ds.updateModifiedDateOnAccess(updateTime);
代码示例来源:origin: apache/jackrabbit
ds.updateModifiedDateOnAccess(updateTime);
内容来源于网络,如有侵权,请联系作者删除!