Class VFSManagerFactory


  • public class VFSManagerFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.commons.vfs.impl.StandardFileSystemManager getManager()
      Method getVFSManager creates an instance of VFS manager and set configuration file
      static net.sf.ehcache.Cache getVFSCache()
      gets VFS cahe instance
      static boolean isVFSactive()
      if virtual file system is in current application active
      static org.apache.commons.vfs.FileObject[] readAllChildren()
      reads all children of VFS in database
      static net.sf.ehcache.Cache registerCacheCatalog()
      reads all DB files from VFS and registers files in catalog
      static void shutdown()
      force-shutdown on the filesystem and the manager
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getManager

        public static org.apache.commons.vfs.impl.StandardFileSystemManager getManager()
                                                                                throws org.apache.commons.vfs.FileSystemException
        Method getVFSManager creates an instance of VFS manager and set configuration file
        Throws:
        org.apache.commons.vfs.FileSystemException
      • readAllChildren

        public static org.apache.commons.vfs.FileObject[] readAllChildren()
                                                                   throws org.apache.commons.vfs.FileSystemException
        reads all children of VFS in database
        Throws:
        org.apache.commons.vfs.FileSystemException
      • shutdown

        public static void shutdown()
        force-shutdown on the filesystem and the manager
      • registerCacheCatalog

        public static net.sf.ehcache.Cache registerCacheCatalog()
                                                         throws org.apache.commons.vfs.FileSystemException
        reads all DB files from VFS and registers files in catalog
        Throws:
        org.apache.commons.vfs.FileSystemException
      • getVFSCache

        public static net.sf.ehcache.Cache getVFSCache()
        gets VFS cahe instance