org.apache.accumulo.start.classloader.vfs
Class AccumuloReloadingVFSClassLoader
java.lang.Object
org.apache.accumulo.start.classloader.vfs.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.
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
stringify
public String stringify(org.apache.commons.vfs2.FileObject[] files)
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface ReloadingClassLoader
getFiles
public org.apache.commons.vfs2.FileObject[] getFiles()
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.