public synchronized long totalBytes(){
  long total=0;
  for (  File file : fileDetails.values()) {
    total+=file.length();
  }
  return total;
}

public synchronized long totalBytes ( ) { long total = 0 ; for ( File file : fileDetails . values ( ) ) { total += file . length ( ) ; } return total ; }
total number of bytes in th shard
