public synchronized int recoveredFileCount(){
  int count=0;
  for (  File file : fileDetails.values()) {
    if (file.fullyRecovered()) {
      count++;
    }
  }
  return count;
}

public synchronized int recoveredFileCount ( ) { int count = 0 ; for ( File file : fileDetails . values ( ) ) { if ( file . fullyRecovered ( ) ) { count ++ ; } } return count ; }
number of file that were recovered ( excluding on ongoing files )
