public abstract class AbstractFileDeletions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AbstractFileSystemService |
afs |
protected java.util.Set<java.lang.Long> |
deletedIds |
Constructor and Description |
---|
AbstractFileDeletions(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 AbstractFileSystemService afs
public AbstractFileDeletions(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()
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.