protected static class ThumbnailManager.FilePurgeVisitor extends Object implements FileVisitor<Path>
| Modifier and Type | Field and Description |
|---|---|
protected Path |
basePath |
protected long |
count |
protected List<Path> |
deletedFileList |
protected long |
expiry |
protected FessConfig |
fessConfig |
protected FessEsClient |
fessEsClient |
protected String |
imageExtention |
protected int |
maxPurgeSize |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteFile(Path path) |
protected void |
deleteFiles() |
long |
getCount() |
protected String |
getDocId(Path file) |
FileVisitResult |
postVisitDirectory(Path dir,
IOException e) |
FileVisitResult |
preVisitDirectory(Path dir,
BasicFileAttributes attrs) |
FileVisitResult |
visitFile(Path file,
BasicFileAttributes attrs) |
FileVisitResult |
visitFileFailed(Path file,
IOException e) |
protected final long expiry
protected long count
protected final int maxPurgeSize
protected final Path basePath
protected final String imageExtention
protected final FessEsClient fessEsClient
protected final FessConfig fessConfig
protected void deleteFiles()
protected void deleteFile(Path path)
public long getCount()
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException
preVisitDirectory in interface FileVisitor<Path>IOExceptionpublic FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException
visitFile in interface FileVisitor<Path>IOExceptionpublic FileVisitResult visitFileFailed(Path file, IOException e) throws IOException
visitFileFailed in interface FileVisitor<Path>IOExceptionpublic FileVisitResult postVisitDirectory(Path dir, IOException e) throws IOException
postVisitDirectory in interface FileVisitor<Path>IOExceptionCopyright © 2009–2017 CodeLibs. All rights reserved.