de.schlichtherle.truezip.fs
Class FsStatisticsController
java.lang.Object
de.schlichtherle.truezip.fs.FsController<M>
de.schlichtherle.truezip.fs.FsDecoratingController<FsModel,FsController<?>>
de.schlichtherle.truezip.fs.FsStatisticsController
@ThreadSafe
final class FsStatisticsController
- extends FsDecoratingController<FsModel,FsController<?>>
Implements statistics for its decorated file system controller.
This class is thread-safe iff the decorated file system controller is
thread-safe.
- Author:
- Christian Schlichtherle
| Methods inherited from class de.schlichtherle.truezip.fs.FsDecoratingController |
getClosedIcon, getEntry, getModel, getOpenIcon, getParent, isReadable, isReadOnly, isWritable, mknod, setReadOnly, setTime, sync, toString, unlink |
manager
private final FsStatisticsManager manager
FsStatisticsController
FsStatisticsController(@NonNull
FsController<?> controller,
@NonNull
FsStatisticsManager manager)
- Constructs a new statistics file system controller.
- Parameters:
controller - the decorated file system controller.manager - the statistics file system manager.
getInputSocket
public InputSocket<?> getInputSocket(FsEntryName name,
BitField<FsInputOption> options)
- Description copied from class:
FsController
- Returns an input socket for reading the contents of the entry addressed
by the given name from the file system.
- Overrides:
getInputSocket in class FsDecoratingController<FsModel,FsController<?>>
- Parameters:
name - a file system entry name.
- Returns:
- An
InputSocket.
getOutputSocket
public OutputSocket<?> getOutputSocket(FsEntryName name,
BitField<FsOutputOption> options,
Entry template)
- Description copied from class:
FsController
- Returns an output socket for writing the contents of the entry addressed
by the given name to the file system.
If
template is not null, then the output entry shall
have as many of its properties copied as reasonable, e.g. the last
modification time.
- Overrides:
getOutputSocket in class FsDecoratingController<FsModel,FsController<?>>
- Parameters:
name - a file system entry name.template - a nullable template for the properties of the output
entry.
- Returns:
- An
OutputSocket.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.