|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.fs.FsStatistics
@ThreadSafe public final class FsStatistics
Provides statistics for the federated file systems managed by a single file system manager.
| Nested Class Summary | |
|---|---|
private class |
FsStatistics.CountingInputStream
|
private class |
FsStatistics.CountingOutputStream
|
private class |
FsStatistics.CountingReadOnlyFile
|
| Field Summary | |
|---|---|
private FsStatisticsManager |
manager
|
private long |
read
|
private long |
written
|
| Constructor Summary | |
|---|---|
FsStatistics(FsStatisticsManager manager)
|
|
| Method Summary | |
|---|---|
(package private) InputStream |
countBytes(InputStream in)
|
(package private) OutputStream |
countBytes(OutputStream out)
|
(package private) ReadOnlyFile |
countBytes(ReadOnlyFile rof)
|
int |
getFileSystemsTotal()
Returns the total number of managed federated file systems. |
int |
getFileSystemsTouched()
Returns the number of managed federated file systems which have been touched and need synchronization by calling FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField. |
int |
getTopLevelFileSystemsTotal()
Returns the total number of managed top level federated file systems. |
int |
getTopLevelFileSystemsTouched()
Returns the number of managed top level federated file systems which have been touched and need synchronization by calling FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField. |
long |
getTopLevelRead()
Returns the total number of bytes read from all managed top level federated file systems, i.e. all managed federated file systems which have a parent file system which is not a member of another parent file system. |
long |
getTopLevelWritten()
Returns the total number of bytes written to all managed top level federated file systems, i.e. all managed federated file systems which have a parent file system which is not a member of another parent file system. |
boolean |
isClosed()
Returns true iff this statistics instance has been closed and
should not receive any more updates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final FsStatisticsManager manager
private volatile long read
private volatile long written
| Constructor Detail |
|---|
FsStatistics(FsStatisticsManager manager)
| Method Detail |
|---|
public int getFileSystemsTotal()
public int getFileSystemsTouched()
FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField, de.schlichtherle.truezip.util.ExceptionHandler super java.io.IOException, X>) .
Note that you should not use the returned value to synchronize conditionally - this is unreliable!
public int getTopLevelFileSystemsTotal()
public int getTopLevelFileSystemsTouched()
FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField, de.schlichtherle.truezip.util.ExceptionHandler super java.io.IOException, X>) .
ReadOnlyFile countBytes(ReadOnlyFile rof)
InputStream countBytes(InputStream in)
public long getTopLevelRead()
This method is intended to be used to monitor the progress of the
method FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField.
OutputStream countBytes(OutputStream out)
public long getTopLevelWritten()
This method is intended to be used to monitor the progress of the
method FsStatisticsManager.sync(de.schlichtherle.truezip.util.BitField.
public boolean isClosed()
true iff this statistics instance has been closed and
should not receive any more updates.
true iff this statistics instance has been closed and
should not receive any more updates.
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||