public static final class FileSystem.Statistics extends Object
构造器和说明 |
---|
FileSystem.Statistics(String scheme) |
限定符和类型 | 方法和说明 |
---|---|
long |
getBytesRead()
Get the total number of bytes read
|
long |
getBytesWritten()
Get the total number of bytes written
|
int |
getLargeReadOps()
Get the number of large file system read operations such as list files
under a large directory
|
int |
getReadOps()
Get the number of file system read operations such as list files
|
String |
getScheme()
Get the uri scheme associated with this statistics object.
|
int |
getWriteOps()
Get the number of file system write operations such as create, append
rename etc.
|
void |
incrementBytesRead(long newBytes)
Increment the bytes read in the statistics
|
void |
incrementBytesWritten(long newBytes)
Increment the bytes written in the statistics
|
void |
incrementLargeReadOps(int count)
Increment the number of large read operations
|
void |
incrementReadOps(int count)
Increment the number of read operations
|
void |
incrementWriteOps(int count)
Increment the number of write operations
|
void |
reset()
Reset the counts of bytes to 0.
|
String |
toString() |
public FileSystem.Statistics(String scheme)
public void incrementBytesRead(long newBytes)
newBytes
- the additional bytes readpublic void incrementBytesWritten(long newBytes)
newBytes
- the additional bytes writtenpublic void incrementReadOps(int count)
count
- number of read operationspublic void incrementLargeReadOps(int count)
count
- number of large read operationspublic void incrementWriteOps(int count)
count
- number of write operationspublic long getBytesRead()
public long getBytesWritten()
public int getReadOps()
public int getLargeReadOps()
public int getWriteOps()
public void reset()
public String getScheme()
Copyright © 2009 The Apache Software Foundation