@ThreadSafe public final class FsDefaultManager extends FsManager
Constructor and Description |
---|
FsDefaultManager() |
Modifier and Type | Method and Description |
---|---|
FsController<?> |
getController(FsMountPoint mp,
FsCompositeDriver d)
Returns the thread-safe file system controller for the given mount point.
|
int |
getSize()
Returns the number of managed file system controllers.
|
Iterator<FsController<?>> |
iterator()
Returns an ordered iterator for the managed file system controllers.
|
<E extends FsArchiveEntry> |
newController(FsArchiveDriver<E> driver,
FsModel model,
FsController<?> parent)
Optional:
Returns a new thread-safe archive file system controller.
|
void |
sync(BitField<FsSyncOption> options)
Calls
FsController.sync(BitField) on all managed file system
controllers. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public FsController<?> getController(FsMountPoint mp, FsCompositeDriver d)
FsManager
synchronization
.getController
in class FsManager
mp
- the mount point of the file system.d
- the composite file system driver which shall get used to
create a new file system controller if required.public int getSize()
FsManager
public Iterator<FsController<?>> iterator()
FsManager
iterator
in interface Iterable<FsController<?>>
iterator
in class FsManager
public <E extends FsArchiveEntry> FsController<?> newController(FsArchiveDriver<E> driver, FsModel model, FsController<?> parent)
FsManager
newController
in class FsManager
E
- the type of the archive entries.driver
- the archive driver.model
- the file system model.parent
- the parent file system controller.public void sync(BitField<FsSyncOption> options) throws FsSyncException
FsManager
FsController.sync(BitField)
on all managed file system
controllers.
If sync()ing a file system controller fails with an
FsSyncException
, then the exception gets remembered and the loop
continues with sync()ing the remaining file system controllers.
After the loop, the exception(s) get processed for (re)throwing based
on their type and order of appearance.sync
in class FsManager
options
- the options for synchronizing the file system.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective file system controller has been
synchronized with constraints, e.g. if an unclosed archive entry
stream gets forcibly closed.FsSyncException
- if any error conditions apply.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.