Package ome.services.delete.files
Class AbstractFileDeletions
- java.lang.Object
-
- ome.services.delete.files.AbstractFileDeletions
-
- Direct Known Subclasses:
OriginalFileDeletions
,PixelsFileDeletions
,ThumbnailFileDeletions
public abstract class AbstractFileDeletions extends java.lang.Object
Base class for managing the removal of files from disk.- Since:
- 5.1.0-m3
-
-
Field Summary
Fields Modifier and Type Field Description protected ome.io.nio.AbstractFileSystemService
afs
protected java.util.Set<java.lang.Long>
deletedIds
-
Constructor Summary
Constructors Constructor Description AbstractFileDeletions(ome.io.nio.AbstractFileSystemService afs, java.util.Set<java.lang.Long> deletedIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLocalFile(java.io.File file, long fileId)
Called during the creation of instances if a particular file should be handled bydeleteLocal()
.int
deleteLocal()
Helper to delete and log.void
fail(java.io.File file, java.lang.Long id, java.lang.Long size)
long
getBytesFailed()
long[]
getUndeletedFiles()
-
-
-
Method Detail
-
fail
public void fail(java.io.File file, java.lang.Long id, java.lang.Long size)
-
addLocalFile
public void addLocalFile(java.io.File file, long fileId)
Called during the creation of instances if a particular file should be handled bydeleteLocal()
.- Parameters:
fileId
-file
-
-
deleteLocal
public int deleteLocal()
Helper to delete and log. These files have not been handled elsewhere, for example because they don't live in a repository.
-
getBytesFailed
public long getBytesFailed()
-
getUndeletedFiles
public long[] getUndeletedFiles()
-
-