cdm/src/main/java/ucar/nc2/util/cache/FileCache.java
@Override
  public void showCache(Formatter format) {
    ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size());
    for (CacheElement elem : cache.values()) {
      synchronized (elem) {
        allFiles.addAll(elem.list);
      }
    }
    Collections.sort(allFiles); // sort so oldest are on top

    format.format("%nFileCache %s (min=%d softLimit=%d hardLimit=%d scour=%d secs):%n", name, minElements, softLimit, hardLimit, period/1000);
    format.format(" isLocked  accesses lastAccess                   location %n");
    for (CacheElement.CacheFile file : allFiles) {
      String loc = file.ncfile != null ? file.ncfile.getLocation() : "null";
      format.format("%8s %9d %s == %s %n", file.isLocked, file.countAccessed, CalendarDateFormatter.toDateTimeStringISO(file.lastAccessed), loc);
    }
    showStats(format);
  }
@Override
  public void showCache(Formatter format) {
    ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size());
    for (CacheElement elem : cache.values()) {
      synchronized (elem) {
        allFiles.addAll(elem.list);
      }
    }
    Collections.sort(allFiles); // sort so oldest are on top

    format.format("%nFileCache %s (min=%d softLimit=%d hardLimit=%d scour=%d secs):%n", name, minElements, softLimit, hardLimit, period/1000);
    format.format(" isLocked  accesses lastAccess                   location %n");
    for (CacheElement.CacheFile file : allFiles) {
      String loc = file.ncfile != null ? file.ncfile.getLocation() : "null";
      format.format("%8s %9d %s == %s %n", file.isLocked, file.countAccessed, CalendarDateFormatter.toDateTimeStringISO(file.lastAccessed), loc);
    }
    showStats(format);
  }
@ Override public void showCache ( Formatter format ) { ArrayList < CacheElement . CacheFile > allFiles = new ArrayList <> ( files . size ( ) ) ; for ( CacheElement elem : cache . values ( ) ) { synchronized ( elem ) { allFiles . addAll ( elem . list ) ; } } Collections . sort ( allFiles ) ; // sort so oldest are on top
 format . format ( "%nFileCache %s (min=%d softLimit=%d hardLimit=%d scour=%d secs):%n" , name , minElements , softLimit , hardLimit , period / 1000 ) ; format . format ( " isLocked  accesses lastAccess                   location %n" ) ; for ( CacheElement . CacheFile file : allFiles ) { String loc = file . ncfile != null ? file . ncfile . getLocation ( ) : "null" ; format . format ( "%8s %9d %s == %s %n" , file . isLocked , file . countAccessed , CalendarDateFormatter . toDateTimeStringISO ( file . lastAccessed ) , loc ) ; } showStats ( format ) ; }
Show individual cache entries, add to formatter.

@param format add to this
Show individual cache entries add to formatter .