Class DataStoreCacheUtils


  • public class DataStoreCacheUtils
    extends java.lang.Object
    Common utility methods used for DataStore caches.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File getFile​(java.lang.String id, java.io.File root)
      Obtain a placeholder in the file system folder for the given identifier.
      static void recursiveDelete​(java.io.File f, java.io.File root)
      Delete the file from the given root directory all its empty parent-directories.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataStoreCacheUtils

        public DataStoreCacheUtils()
    • Method Detail

      • recursiveDelete

        public static void recursiveDelete​(java.io.File f,
                                           java.io.File root)
                                    throws java.io.IOException
        Delete the file from the given root directory all its empty parent-directories.
        Parameters:
        f - the file to be deleted
        Throws:
        java.io.IOException
      • getFile

        public static java.io.File getFile​(java.lang.String id,
                                           java.io.File root)
        Obtain a placeholder in the file system folder for the given identifier.
        Parameters:
        id - of the file
        Returns:
        file handle