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>filesToDeleteSet of File objects
-
Constructor Summary
Constructors Constructor Description FileTrack()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFile(java.io.File f)Add a file to trackvoiddeleteFile(java.io.File f)Delete a filevoiddoCleanup(IThreadContext threadContext)Delete all remaining filesprotected voidfinalize()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:
doCleanupin interfaceIShutdownHook- Throws:
ManifoldCFException
-
finalize
protected void finalize() throws java.lang.ThrowableFinalizer, which is designed to catch class unloading that tomcat 5.5 does.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-