Tabnine Logo
DiskCache.cleanCache
Code IndexAdd Tabnine to your IDE (free)

How to use
cleanCache
method
in
ucar.nc2.util.DiskCache

Best Java code snippets using ucar.nc2.util.DiskCache.cleanCache (Showing top 6 results out of 315)

origin: edu.ucar/netcdf

/**
 * Remove files if needed to make cache have less than maxBytes bytes file sizes.
 * This will remove oldest files first.
 *
 * @param maxBytes max number of bytes in cache.
 * @param sbuff    write results here, null is ok.
 */
static public void cleanCache(long maxBytes, StringBuilder sbuff) {
 cleanCache(maxBytes, new FileAgeComparator(), sbuff);
}
origin: edu.ucar/cdm

/**
 * Remove files if needed to make cache have less than maxBytes bytes file sizes.
 * This will remove oldest files first.
 *
 * @param maxBytes max number of bytes in cache.
 * @param sbuff    write results here, null is ok.
 */
static public void cleanCache(long maxBytes, StringBuilder sbuff) {
 cleanCache(maxBytes, new FileAgeComparator(), sbuff);
}
origin: Unidata/thredds

/**
 * Remove files if needed to make cache have less than maxBytes bytes file sizes.
 * This will remove oldest files first.
 *
 * @param maxBytes max number of bytes in cache.
 * @param sbuff    write results here, null is ok.
 */
static public void cleanCache(long maxBytes, StringBuilder sbuff) {
 cleanCache(maxBytes, new FileAgeComparator(), sbuff);
}
origin: Unidata/thredds

static public void main(String[] args) throws IOException {
 DiskCache.setRootDirectory("C:/temp/chill/");
 make("C:/junk.txt");
 make("C:/some/enchanted/evening/joots+3478.txt");
 make("http://www.unidata.ucar.edu/some/enc hanted/eve'ning/nowrite.gibberish");
 showCache(System.out);
 StringBuilder sbuff = new StringBuilder();
 cleanCache(1000 * 1000 * 10, sbuff);
 System.out.println(sbuff);
}
origin: edu.ucar/netcdf

static public void main(String[] args) throws IOException {
 DiskCache.setRootDirectory("C:/temp/chill/");
 make("C:/junk.txt");
 make("C:/some/enchanted/evening/joots+3478.txt");
 make("http://www.unidata.ucar.edu/some/enc hanted/eve'ning/nowrite.gibberish");
 showCache(System.out);
 StringBuilder sbuff = new StringBuilder();
 cleanCache(1000 * 1000 * 10, sbuff);
 System.out.println(sbuff);
}
origin: edu.ucar/cdm

static public void main(String[] args) throws IOException {
 DiskCache.setRootDirectory("C:/temp/chill/");
 make("C:/junk.txt");
 make("C:/some/enchanted/evening/joots+3478.txt");
 make("http://www.unidata.ucar.edu/some/enc hanted/eve'ning/nowrite.gibberish");
 showCache(System.out);
 StringBuilder sbuff = new StringBuilder();
 cleanCache(1000 * 1000 * 10, sbuff);
 System.out.println(sbuff);
}
ucar.nc2.utilDiskCachecleanCache

Javadoc

Remove files if needed to make cache have less than maxBytes bytes file sizes. This will remove oldest files first.

Popular methods of DiskCache

  • getFileStandardPolicy
    Get a File if it exists. If not, get a File that can be written to. Use the standard policy to decid
  • getCacheFile
    Get a file in the cache. File may or may not exist. We assume its always writeable. If it does exist
  • getFile
    Get a File if it exists. If not, get a File that can be written to. If alwaysInCache, look only in t
  • make
    debug
  • makeCachePath
    Make the cache filename
  • makeRootDirectory
    Make sure that the current root directory exists.
  • setRootDirectory
    Set the cache root directory. Create it if it doesnt exist.
  • showCache

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JOptionPane (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now