@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.
|
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
public <X extends IOException> void sync(BitField<FsSyncOption> options, ExceptionHandler<? super IOException,X> handler) throws X extends IOException
FsManager
sync
in class FsManager
X
- 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
IOException
s and mapping them to output
IOException
s.X
- at the discretion of the exception handler
upon the occurence of any IOException
.X extends IOException
Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.