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; }
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; }
if ( repository.getNotFoundCache() != null ) repository.getNotFoundCache().purge();
CacheStatistics stats = repository.getNotFoundCache().getStatistics();
CacheStatistics stats = repository.getNotFoundCache().getStatistics();