Package org.sonatype.nexus.proxy.cache

Examples of org.sonatype.nexus.proxy.cache.CacheStatistics


            */

      // mustang is able to get this with File.getUsableFreeSpace();
      resource.setFreeSpaceOnDisk(-1);

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

      resource.setNotFoundCacheSize(stats.getSize());

      resource.setNotFoundCacheHits(stats.getHits());

      resource.setNotFoundCacheMisses(stats.getMisses());

      resource.setLocalStorageErrorsCount(0);

      resource.setRemoteStorageErrorsCount(0);

View Full Code Here


  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());
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.cache.CacheStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.