@ThreadSafe public final class FsDefaultManager extends FsManager
| Constructor and Description |
|---|
FsDefaultManager() |
| 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.
|
<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.
|
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()
FsManagerNote 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 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 mapping them to output
IOExceptions.X - at the discretion of the exception handler
upon the occurence of any IOException.X extends IOExceptionCopyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.