public static final class FileSystem.Statistics extends Object
Constructor and Description |
---|
Statistics(String scheme) |
Modifier and Type | Method and Description |
---|---|
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() |
public Statistics(String scheme)
public void incrementBytesRead(long newBytes)
newBytes
- the additional bytes readpublic void incrementBytesWritten(long newBytes)
newBytes
- the additional bytes writtenpublic long getBytesRead()
public long getBytesWritten()
public void reset()
public String getScheme()
Copyright © 2010 The Apache Software Foundation