org.apache.hadoop.fs
Class FileSystem.Statistics

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

public static final class FileSystem.Statistics
extends Object


Constructor Summary
FileSystem.Statistics()
           
 
Method Summary
 long getBytesRead()
          Get the total number of bytes read
 long getBytesWritten()
          Get the total number of bytes written
 void incrementBytesRead(long newBytes)
          Increment the bytes read in the statistics
 void incrementBytesWritten(long newBytes)
          Increment the bytes written in the statistics
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileSystem.Statistics

public FileSystem.Statistics()
Method Detail

incrementBytesRead

public void incrementBytesRead(long newBytes)
Increment the bytes read in the statistics

Parameters:
newBytes - the additional bytes read

incrementBytesWritten

public void incrementBytesWritten(long newBytes)
Increment the bytes written in the statistics

Parameters:
newBytes - the additional bytes written

getBytesRead

public long getBytesRead()
Get the total number of bytes read

Returns:
the number of bytes

getBytesWritten

public long getBytesWritten()
Get the total number of bytes written

Returns:
the number of bytes

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 The Apache Software Foundation