Class FileSystemPool
java.lang.Object
org.eclipse.jetty.util.resource.FileSystemPool
- All Implemented Interfaces:
 Dumpable
@ManagedObject("Pool of FileSystems used to mount Resources")
public class FileSystemPool
extends Object
implements Dumpable
TODO figure out if this should be a LifeCycle or not, how many instances of this class can reside in a JVM, who can call sweep and when.
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceListener for pool eventsstatic classstatic classShow a StackTraceNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendable - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionvoiddump(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.mounts()voidsetListener(FileSystemPool.Listener listener) Set a listener on the FileSystemPool to monitor for pool events.voidsweep()toString() 
- 
Field Details
- 
INSTANCE
 
 - 
 - 
Method Details
- 
mounts
 - 
dump
Description copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
 dumpin interfaceDumpable- Parameters:
 out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
 IOException- if unable to write to Appendable
 - 
sweep
@ManagedOperation(value="Sweep the pool for deleted mount points", impact="ACTION") public void sweep() - 
setListener
Set a listener on the FileSystemPool to monitor for pool events.- Parameters:
 listener- the listener for pool events
 - 
toString
 
 -