Package org.codelibs.fess.thumbnail
Class ThumbnailManager.FilePurgeVisitor
java.lang.Object
org.codelibs.fess.thumbnail.ThumbnailManager.FilePurgeVisitor
- All Implemented Interfaces:
FileVisitor<Path>
- Enclosing class:
- ThumbnailManager
protected static class ThumbnailManager.FilePurgeVisitor
extends Object
implements FileVisitor<Path>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Pathprotected longprotected final longprotected final FessConfigprotected final Stringprotected final intprotected final SearchEngineClient -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeleteFile(Path path) protected voidlonggetCount()protected StringpostVisitDirectory(Path dir, IOException e) preVisitDirectory(Path dir, BasicFileAttributes attrs) visitFile(Path file, BasicFileAttributes attrs) visitFileFailed(Path file, IOException e)
-
Field Details
-
expiry
protected final long expiry -
count
protected long count -
maxPurgeSize
protected final int maxPurgeSize -
deletedFileList
-
basePath
-
imageExtention
-
searchEngineClient
-
fessConfig
-
-
Method Details
-
deleteFiles
protected void deleteFiles() -
deleteFile
-
getDocId
-
getCount
public long getCount() -
preVisitDirectory
- Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFile
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-