org.apache.accumulo.start.classloader.vfs
Class AccumuloReloadingVFSClassLoader

java.lang.Object
  extended by 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.


Constructor Summary
AccumuloReloadingVFSClassLoader(String uris, org.apache.commons.vfs2.FileSystemManager vfs, ReloadingClassLoader parent, boolean preDelegate)
           
AccumuloReloadingVFSClassLoader(String uris, org.apache.commons.vfs2.FileSystemManager vfs, ReloadingClassLoader parent, long monitorDelay, boolean preDelegate)
           
 
Method Summary
 void close()
          Should be ok if this is not called because the thread started by DefaultFileMonitor is a daemon thread
 void fileChanged(org.apache.commons.vfs2.FileChangeEvent event)
           
 void fileCreated(org.apache.commons.vfs2.FileChangeEvent event)
           
 void fileDeleted(org.apache.commons.vfs2.FileChangeEvent event)
           
 ClassLoader getClassLoader()
           
 org.apache.commons.vfs2.FileObject[] getFiles()
           
 String stringify(org.apache.commons.vfs2.FileObject[] files)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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.