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
Fields Modifier and Type Field Description protected PathbasePathprotected longcountprotected List<Path>deletedFileListprotected longexpiryprotected FessConfigfessConfigprotected FessEsClientfessEsClientprotected StringimageExtentionprotected intmaxPurgeSize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeleteFile(Path path)protected voiddeleteFiles()longgetCount()protected StringgetDocId(Path file)FileVisitResultpostVisitDirectory(Path dir, IOException e)FileVisitResultpreVisitDirectory(Path dir, BasicFileAttributes attrs)FileVisitResultvisitFile(Path file, BasicFileAttributes attrs)FileVisitResultvisitFileFailed(Path file, IOException e)
-
-
-
Field Detail
-
expiry
protected final long expiry
-
count
protected long count
-
maxPurgeSize
protected final int maxPurgeSize
-
basePath
protected final Path basePath
-
imageExtention
protected final String imageExtention
-
fessEsClient
protected final FessEsClient fessEsClient
-
fessConfig
protected final FessConfig fessConfig
-
-
Method Detail
-
deleteFiles
protected void deleteFiles()
-
deleteFile
protected void deleteFile(Path path)
-
getCount
public long getCount()
-
preVisitDirectory
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFilein interfaceFileVisitor<Path>- Throws:
IOException
-
visitFileFailed
public FileVisitResult visitFileFailed(Path file, IOException e) throws IOException
- Specified by:
visitFileFailedin interfaceFileVisitor<Path>- Throws:
IOException
-
postVisitDirectory
public FileVisitResult postVisitDirectory(Path dir, IOException e) throws IOException
- Specified by:
postVisitDirectoryin interfaceFileVisitor<Path>- Throws:
IOException
-
-