org.apache.jackrabbit.core.data.DataStore.clearInUse()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.apache.jackrabbit.core.data.DataStore.clearInUse()方法的一些代码示例,展示了DataStore.clearInUse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataStore.clearInUse()方法的具体详情如下:
包路径:org.apache.jackrabbit.core.data.DataStore
类名称:DataStore
方法名:clearInUse

DataStore.clearInUse介绍

[英]Clear the in-use list. This is only used for testing to make the the garbage collection think that objects are no longer in use.
[中]

代码示例

代码示例来源:origin: apache/jackrabbit

/**
 * {@inheritDoc}
 */
public void clearInUse() {
  archiveDataStore.clearInUse();
}

代码示例来源:origin: apache/jackrabbit-oak

@Override
public void clearInUse() {
  delegate.clearInUse();
}

代码示例来源:origin: org.apache.jackrabbit/jackrabbit-data

/**
 * {@inheritDoc}
 */
public void clearInUse() {
  archiveDataStore.clearInUse();
}

代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

/**
 * {@inheritDoc}
 */
public void clearInUse() {
  archiveDataStore.clearInUse();
}

代码示例来源:origin: org.apache.sling/org.apache.sling.testing.sling-mock-oak

@Override
public void clearInUse() {
  delegate.clearInUse();
}

代码示例来源:origin: org.apache.jackrabbit/oak-blob-plugins

@Override
public void clearInUse() {
  delegate.clearInUse();
}

代码示例来源:origin: apache/jackrabbit-oak

@Override
public void clearInUse() {
  getDelegate().clearInUse();
}

代码示例来源:origin: org.apache.jackrabbit/oak-upgrade

@Override
public void clearInUse() {
  getDelegate().clearInUse();
}

代码示例来源:origin: apache/jackrabbit

DataStore ds = ((GarbageCollector) gc).getDataStore();
if (ds != null) {
  ds.clearInUse();
  boolean pmScan = gc.isPersistenceManagerScan();
  gc.setPersistenceManagerScan(allowPmScan);

代码示例来源:origin: apache/jackrabbit

gc.getDataStore().clearInUse();
gc.setPersistenceManagerScan(false);
gc.setMarkEventListener(this);
LOG.debug("stop scanning; currently " + count + " identifiers");
LOG.debug("deleting...");
gc.getDataStore().clearInUse();
assertTrue(gc.sweep() > 0);
int count2 = listIdentifiers(gc);

代码示例来源:origin: apache/jackrabbit-oak

ds.clearInUse();
Assert.assertEquals("only rec2 should be deleted", 1,
  ds.deleteAllOlderThan(updateTime));

代码示例来源:origin: apache/jackrabbit

ds.clearInUse();
assertEquals("only rec2 should be deleted", 1,
  ds.deleteAllOlderThan(updateTime));

代码示例来源:origin: apache/jackrabbit

private void runGC(Session session, boolean all) throws Exception {
  GarbageCollector gc = ((SessionImpl)session).createDataStoreGarbageCollector();
  gc.setMarkEventListener(this);
  gc.setPersistenceManagerScan(false);
  if (gc.getDataStore() instanceof FileDataStore) {
    // make sure the file is old (access time resolution is 2 seconds)
    Thread.sleep(2000);
  }
  gc.mark();
  gc.stopScan();
  if (all) {
    gc.getDataStore().clearInUse();
  }
  gc.sweep();
  gc.close();
}

代码示例来源:origin: apache/jackrabbit

setupNodes();
assertEquals(1, getBinaryCount(garbageCollector));
garbageCollector.getDataStore().clearInUse();
  garbageCollector.getDataStore().clearInUse();
  garbageCollector.mark();
  garbageCollector.stopScan();

相关文章