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.
  • Field Details

  • Method Details

    • mounts

      @ManagedAttribute("The mounted FileSystems") public Collection<FileSystemPool.Mount> mounts()
    • dump

      public void dump(Appendable out, String indent) throws IOException
      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 interface Dumpable
      Parameters:
      out - The appendable to dump to
      indent - 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

      public void setListener(FileSystemPool.Listener listener)
      Set a listener on the FileSystemPool to monitor for pool events.
      Parameters:
      listener - the listener for pool events