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(String scheme)
           
 
Method Summary
 long getBytesRead()
          Get the total number of bytes read
 long getBytesWritten()
          Get the total number of bytes written
 String getScheme()
          Get the uri scheme associated with this statistics object.
 void incrementBytesRead(long newBytes)
          Increment the bytes read in the statistics
 void incrementBytesWritten(long newBytes)
          Increment the bytes written in the statistics
 void reset()
          Reset the counts of bytes to 0.
 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(String scheme)
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

reset

public void reset()
Reset the counts of bytes to 0.


getScheme

public String getScheme()
Get the uri scheme associated with this statistics object.

Returns:
the schema associated with this set of statistics


Copyright © 2009 The Apache Software Foundation