Class AbstractFileDeletions

    • 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 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • deletedIds

        protected final java.util.Set<java.lang.Long> deletedIds
      • afs

        protected final ome.io.nio.AbstractFileSystemService afs
    • Constructor Detail

      • AbstractFileDeletions

        public AbstractFileDeletions​(ome.io.nio.AbstractFileSystemService afs,
                                     java.util.Set<java.lang.Long> deletedIds)
    • 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 by deleteLocal().
        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()