TrueZIP Kernel 7.0-rc2

de.schlichtherle.truezip.fs
Class FsStatisticsController

java.lang.Object
  extended by de.schlichtherle.truezip.fs.FsController<M>
      extended by de.schlichtherle.truezip.fs.FsDecoratingController<FsModel,FsController<?>>
          extended by 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

Nested Class Summary
private  class FsStatisticsController.Input
           
private  class FsStatisticsController.Output
           
 
Field Summary
private  FsStatisticsManager manager
           
 
Fields inherited from class de.schlichtherle.truezip.fs.FsDecoratingController
delegate
 
Constructor Summary
FsStatisticsController(FsController<?> controller, FsStatisticsManager manager)
          Constructs a new statistics file system controller.
 
Method Summary
 InputSocket<?> getInputSocket(FsEntryName name, BitField<FsInputOption> options)
          Returns an input socket for reading the contents of the entry addressed by the given name from the file system.
 OutputSocket<?> getOutputSocket(FsEntryName name, BitField<FsOutputOption> options, Entry template)
          Returns an output socket for writing the contents of the entry addressed by the given name to the file system.
 
Methods inherited from class de.schlichtherle.truezip.fs.FsDecoratingController
getClosedIcon, getEntry, getModel, getOpenIcon, getParent, isReadable, isReadOnly, isWritable, mknod, setReadOnly, setTime, sync, toString, unlink
 
Methods inherited from class de.schlichtherle.truezip.fs.FsController
equals, hashCode, sync
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

private final FsStatisticsManager manager
Constructor Detail

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.
Method Detail

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.

TrueZIP Kernel 7.0-rc2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.