Also, these can be written like this:

     override def getValue = file_stats("hdfs").map(s => s.getBytesWritten()).getOrElse(0L)