Class AccumuloReloadingVFSClassLoader

  • All Implemented Interfaces:
    ReloadingClassLoader, org.apache.commons.vfs2.FileListener

    public class AccumuloReloadingVFSClassLoader
    extends Object
    implements org.apache.commons.vfs2.FileListener, ReloadingClassLoader
    Classloader that delegates operations to a VFSClassLoader object. This class also listens for changes in any of the files/directories that are in the classpath and will recreate the delegate object if there is any change in the classpath.
    • Constructor Detail

      • AccumuloReloadingVFSClassLoader

        public AccumuloReloadingVFSClassLoader​(String uris,
                                               org.apache.commons.vfs2.FileSystemManager vfs,
                                               ReloadingClassLoader parent,
                                               long monitorDelay,
                                               boolean preDelegate)
                                        throws org.apache.commons.vfs2.FileSystemException
        Throws:
        org.apache.commons.vfs2.FileSystemException
      • AccumuloReloadingVFSClassLoader

        public AccumuloReloadingVFSClassLoader​(String uris,
                                               org.apache.commons.vfs2.FileSystemManager vfs,
                                               ReloadingClassLoader parent,
                                               boolean preDelegate)
                                        throws org.apache.commons.vfs2.FileSystemException
        Throws:
        org.apache.commons.vfs2.FileSystemException
    • Method Detail

      • stringify

        public String stringify​(org.apache.commons.vfs2.FileObject[] files)
      • forEachCatchRTEs

        public static <T> void forEachCatchRTEs​(Stream<T> stream,
                                                Consumer<T> consumer)
      • close

        public void close()
        Should be ok if this is not called because the thread started by DefaultFileMonitor is a daemon thread
      • fileCreated

        public void fileCreated​(org.apache.commons.vfs2.FileChangeEvent event)
                         throws Exception
        Specified by:
        fileCreated in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception
      • fileDeleted

        public void fileDeleted​(org.apache.commons.vfs2.FileChangeEvent event)
                         throws Exception
        Specified by:
        fileDeleted in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception
      • fileChanged

        public void fileChanged​(org.apache.commons.vfs2.FileChangeEvent event)
                         throws Exception
        Specified by:
        fileChanged in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception