Package org.codelibs.fess.thumbnail
Class ThumbnailManager.FilePurgeVisitor
- java.lang.Object
-
- org.codelibs.fess.thumbnail.ThumbnailManager.FilePurgeVisitor
-
- All Implemented Interfaces:
java.nio.file.FileVisitor<java.nio.file.Path>
- Enclosing class:
- ThumbnailManager
protected static class ThumbnailManager.FilePurgeVisitor extends java.lang.Object implements java.nio.file.FileVisitor<java.nio.file.Path>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.PathbasePathprotected longcountprotected java.util.List<java.nio.file.Path>deletedFileListprotected longexpiryprotected FessConfigfessConfigprotected FessEsClientfessEsClientprotected java.lang.StringimageExtentionprotected intmaxPurgeSize
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeleteFile(java.nio.file.Path path)protected voiddeleteFiles()longgetCount()protected java.lang.StringgetDocId(java.nio.file.Path file)java.nio.file.FileVisitResultpostVisitDirectory(java.nio.file.Path dir, java.io.IOException e)java.nio.file.FileVisitResultpreVisitDirectory(java.nio.file.Path dir, java.nio.file.attribute.BasicFileAttributes attrs)java.nio.file.FileVisitResultvisitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attrs)java.nio.file.FileVisitResultvisitFileFailed(java.nio.file.Path file, java.io.IOException e)
-
-
-
Field Detail
-
expiry
protected final long expiry
-
count
protected long count
-
maxPurgeSize
protected final int maxPurgeSize
-
deletedFileList
protected final java.util.List<java.nio.file.Path> deletedFileList
-
basePath
protected final java.nio.file.Path basePath
-
imageExtention
protected final java.lang.String imageExtention
-
fessEsClient
protected final FessEsClient fessEsClient
-
fessConfig
protected final FessConfig fessConfig
-
-
Method Detail
-
deleteFiles
protected void deleteFiles()
-
deleteFile
protected void deleteFile(java.nio.file.Path path)
-
getDocId
protected java.lang.String getDocId(java.nio.file.Path file)
-
getCount
public long getCount()
-
preVisitDirectory
public java.nio.file.FileVisitResult preVisitDirectory(java.nio.file.Path dir, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException- Specified by:
preVisitDirectoryin interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
visitFile
public java.nio.file.FileVisitResult visitFile(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attrs) throws java.io.IOException- Specified by:
visitFilein interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
visitFileFailed
public java.nio.file.FileVisitResult visitFileFailed(java.nio.file.Path file, java.io.IOException e) throws java.io.IOException- Specified by:
visitFileFailedin interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
postVisitDirectory
public java.nio.file.FileVisitResult postVisitDirectory(java.nio.file.Path dir, java.io.IOException e) throws java.io.IOException- Specified by:
postVisitDirectoryin interfacejava.nio.file.FileVisitor<java.nio.file.Path>- Throws:
java.io.IOException
-
-