M - The type of the decorated file system manager.@ThreadSafe public abstract class FsDecoratingManager<M extends FsManager> extends FsManager
| Modifier | Constructor and Description |
|---|---|
protected |
FsDecoratingManager(M manager)
Constructs a new decorating 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.
|
int |
getSize()
Returns the number of federated file systems managed by this instance.
|
Iterator<FsController<?>> |
iterator()
Returns an iterator for the controller of all federated file systems
managed by this instance.
|
<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.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected FsDecoratingManager(@NonNull
M manager)
manager - the decorated file system manager.public FsController<?> getController(FsMountPoint mountPoint, FsCompositeDriver driver)
FsManagersynchronization
operations.getController in class FsManagermountPoint - 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.public int getSize()
FsManagerpublic Iterator<FsController<?>> iterator()
FsManagerImportant: The iterated file system controllers must be ordered so that all file systems appear before any of their parent file systems.
iterator in interface Iterable<FsController<?>>iterator in class FsManagerpublic <X extends IOException> void sync(BitField<FsSyncOption> options, ExceptionHandler<? super IOException,X> handler) throws X extends IOException
FsManagersync 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.