Class ManifoldCF.FileTrack

  • All Implemented Interfaces:
    IShutdownHook
    Enclosing class:
    ManifoldCF

    protected static class ManifoldCF.FileTrack
    extends java.lang.Object
    implements IShutdownHook
    Class that tracks files that need to be cleaned up on exit
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Set<java.io.File> filesToDelete
      Set of File objects
    • Constructor Summary

      Constructors 
      Constructor Description
      FileTrack()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFile​(java.io.File f)
      Add a file to track
      void deleteFile​(java.io.File f)
      Delete a file
      void doCleanup​(IThreadContext threadContext)
      Delete all remaining files
      protected void finalize()
      Finalizer, which is designed to catch class unloading that tomcat 5.5 does.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • filesToDelete

        protected java.util.Set<java.io.File> filesToDelete
        Set of File objects
    • Constructor Detail

      • FileTrack

        public FileTrack()
        Constructor
    • Method Detail

      • addFile

        public void addFile​(java.io.File f)
        Add a file to track
      • deleteFile

        public void deleteFile​(java.io.File f)
        Delete a file
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Finalizer, which is designed to catch class unloading that tomcat 5.5 does.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable