Package org.apache.hadoop.fs
Class FileSystem.Statistics.StatisticsData
- java.lang.Object
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description StatisticsData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBytesRead()longgetBytesReadDistanceOfFiveOrLarger()longgetBytesReadDistanceOfOneOrTwo()longgetBytesReadDistanceOfThreeOrFour()longgetBytesReadErasureCoded()longgetBytesReadLocalHost()longgetBytesWritten()intgetLargeReadOps()intgetReadOps()intgetWriteOps()StringtoString()
-
-
-
Method Detail
-
getBytesRead
public long getBytesRead()
-
getBytesWritten
public long getBytesWritten()
-
getReadOps
public int getReadOps()
-
getLargeReadOps
public int getLargeReadOps()
-
getWriteOps
public int getWriteOps()
-
getBytesReadLocalHost
public long getBytesReadLocalHost()
-
getBytesReadDistanceOfOneOrTwo
public long getBytesReadDistanceOfOneOrTwo()
-
getBytesReadDistanceOfThreeOrFour
public long getBytesReadDistanceOfThreeOrFour()
-
getBytesReadDistanceOfFiveOrLarger
public long getBytesReadDistanceOfFiveOrLarger()
-
getBytesReadErasureCoded
public long getBytesReadErasureCoded()
-
-