org.apache.hadoop.fs
Class FileSystem.Statistics.StatisticsData

java.lang.Object
  extended by org.apache.hadoop.fs.FileSystem.Statistics.StatisticsData
Enclosing class:
FileSystem.Statistics

public static class FileSystem.Statistics.StatisticsData
extends Object

Statistics data. There is only a single writer to thread-local StatisticsData objects. Hence, volatile is adequate here-- we do not need AtomicLong or similar to prevent lost updates. The Java specification guarantees that updates to volatile longs will be perceived as atomic with respect to other threads, which is all we need.


Method Summary
 long getBytesRead()
           
 long getBytesWritten()
           
 int getLargeReadOps()
           
 int getReadOps()
           
 int getWriteOps()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

getBytesRead

public long getBytesRead()

getBytesWritten

public long getBytesWritten()

getReadOps

public int getReadOps()

getLargeReadOps

public int getLargeReadOps()

getWriteOps

public int getWriteOps()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.