Package org.eclipse.jetty.util.resource
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
Modifier and TypeClassDescriptionstatic interface
Listener for pool eventsstatic class
static class
Show a StackTraceNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.mounts()
void
setListener
(FileSystemPool.Listener listener) Set a listener on the FileSystemPool to monitor for pool events.void
sweep()
-
Field Details
-
INSTANCE
-
-
Method Details
-
mounts
-
dump
Description copied from interface:Dumpable
Dump 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:
dump
in 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
-