org.sonatype.nexus.proxy.repository.Repository.getNotFoundCache()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(144)

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

Repository.getNotFoundCache介绍

[英]Gets the not found cache.
[中]获取未找到的缓存。

代码示例

代码示例来源:origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

protected NFCRepositoryResource createNFCRepositoryResource(Repository repository) {
 NFCRepositoryResource repoNfc = new NFCRepositoryResource();
 repoNfc.setRepositoryId(repository.getId());
 CacheStatistics stats = repository.getNotFoundCache().getStatistics();
 NFCStats restStats = new NFCStats();
 restStats.setSize(stats.getSize());
 restStats.setHits(stats.getHits());
 restStats.setMisses(stats.getMisses());
 repoNfc.setNfcStats(restStats);
 repoNfc.getNfcPaths().addAll(repository.getNotFoundCache().listKeysInCache());
 return repoNfc;
}

代码示例来源:origin: org.sonatype.nexus/nexus-rest-api

protected NFCRepositoryResource createNFCRepositoryResource( Repository repository )
{
  NFCRepositoryResource repoNfc = new NFCRepositoryResource();
  repoNfc.setRepositoryId( repository.getId() );
  CacheStatistics stats = repository.getNotFoundCache().getStatistics();
  NFCStats restStats = new NFCStats();
  restStats.setSize( stats.getSize() );
  restStats.setHits( stats.getHits() );
  restStats.setMisses( stats.getMisses() );
  repoNfc.setNfcStats( restStats );
  repoNfc.getNfcPaths().addAll( repository.getNotFoundCache().listKeysInCache() );
  return repoNfc;
}

代码示例来源:origin: org.sonatype.nexus/nexus-proxy

if ( repository.getNotFoundCache() != null )
  repository.getNotFoundCache().purge();

代码示例来源:origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin

CacheStatistics stats = repository.getNotFoundCache().getStatistics();

代码示例来源:origin: org.sonatype.nexus/nexus-rest-api

CacheStatistics stats = repository.getNotFoundCache().getStatistics();

相关文章

微信公众号

最新文章

更多