public abstract class AbstractFileDeletions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ome.io.nio.AbstractFileSystemService |
afs |
protected java.util.Set<java.lang.Long> |
deletedIds |
Constructor and Description |
---|
AbstractFileDeletions(ome.io.nio.AbstractFileSystemService afs,
java.util.Set<java.lang.Long> deletedIds) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalFile(java.io.File file,
long fileId)
Called during the creation of instances if a particular file should
be handled by
deleteLocal() . |
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() |
protected final java.util.Set<java.lang.Long> deletedIds
protected final ome.io.nio.AbstractFileSystemService afs
public AbstractFileDeletions(ome.io.nio.AbstractFileSystemService afs, java.util.Set<java.lang.Long> deletedIds)
public void fail(java.io.File file, java.lang.Long id, java.lang.Long size)
public void addLocalFile(java.io.File file, long fileId)
deleteLocal()
.fileId
- file
- public int deleteLocal()
public long getBytesFailed()
public long[] getUndeletedFiles()