Class ManifoldCF.FileTrack
- java.lang.Object
-
- org.apache.manifoldcf.core.system.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 trackvoid
deleteFile(java.io.File f)
Delete a filevoid
doCleanup(IThreadContext threadContext)
Delete all remaining filesprotected void
finalize()
Finalizer, which is designed to catch class unloading that tomcat 5.5 does.
-
-
-
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
-
doCleanup
public void doCleanup(IThreadContext threadContext) throws ManifoldCFException
Delete all remaining files- Specified by:
doCleanup
in interfaceIShutdownHook
- Throws:
ManifoldCFException
-
finalize
protected void finalize() throws java.lang.Throwable
Finalizer, which is designed to catch class unloading that tomcat 5.5 does.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-