@ThreadSafe public final class FsStatisticsManager extends FsDecoratingManager<FsManager>
| Modifier and Type | Field and Description |
|---|---|
private FsStatistics |
statistics |
delegate| Constructor and Description |
|---|
FsStatisticsManager(FsManager manager)
Constructs a new statistics file system manager.
|
| Modifier and Type | Method and Description |
|---|---|
FsController<?> |
getController(FsMountPoint mountPoint,
FsCompositeDriver driver)
Returns a thread-safe file system controller for the given mount point.
|
FsStatistics |
getStatistics()
Returns statistics about the set of federated file systems managed by
the decorated file system manager.
|
<X extends IOException> |
sync(BitField<FsSyncOption> options,
ExceptionHandler<? super IOException,X> handler)
Commits all unsynchronized changes to the contents of all federated file
systems managed by this instance to their respective parent file system,
releases the associated resources (e.g. target archive files) for
access by third parties (e.g. other processes), cleans up any temporary
allocated resources (e.g. temporary files) and purges any cached data.
|
getSize, iterator, toStringprivate volatile FsStatistics statistics
public FsStatisticsManager(@NonNull
FsManager manager)
manager - the decorated file system manager.public FsController<?> getController(FsMountPoint mountPoint, FsCompositeDriver driver)
FsManagersynchronization
operations.getController in class FsDecoratingManager<FsManager>mountPoint - the mount point of the file system.driver - the file system composite driver which shall get used to
create a new file system controller if required.@NonNull public FsStatistics getStatistics()
sync(de.schlichtherle.truezip.util.BitField<de.schlichtherle.truezip.fs.FsSyncOption>, de.schlichtherle.truezip.util.ExceptionHandler<? super java.io.IOException, X>).
Note that there may be a slight delay until the values returned reflect the actual state of this package. This delay increases if the system is under heavy load.
public <X extends IOException> void sync(BitField<FsSyncOption> options, ExceptionHandler<? super IOException,X> handler) throws X extends IOException
After the synchronization, this implementation creates a new statistics
object to be returned by a subsequent call to getStatistics().
sync in class FsManagerX - The type of the IOException to throw at the
discretion of the exception handler.options - a bit field of synchronization options.handler - the exception handling strategy for consuming input
IOExceptions and/or assembling output
IOExceptions.X extends IOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.