M
- the type of the decorated file system manager.@ThreadSafe public abstract class FsDecoratingManager<M extends FsManager> extends FsManager
Modifier and Type | Field and Description |
---|---|
protected M |
delegate
The decorated file system manager.
|
Modifier | Constructor and Description |
---|---|
protected |
FsDecoratingManager(M delegate)
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 over the controllers of all federated file systems
managed by this instance.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected FsDecoratingManager(M delegate)
delegate
- the file system manager to decorate.public FsController<?> getController(FsMountPoint mountPoint, FsCompositeDriver driver)
FsManager
synchronization
operations.getController
in class 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.public int getSize()
FsManager
public Iterator<FsController<?>> iterator()
FsManager
Note that the iterated file system controllers must be ordered so that all file systems appear before any of their parent file systems.
Last, but not least: The iterator must be consistent in multithreaded environments!
iterator
in interface Iterable<FsController<?>>
iterator
in class FsManager
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.