@ThreadSafe public abstract class FsAbstractManager extends net.java.truecommons.shed.UniqueObject implements FsManager
Subclasses should be thread-safe.
| Constructor and Description |
|---|
FsAbstractManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
sync(net.java.truecommons.shed.Filter<? super FsController> filter,
net.java.truecommons.shed.Visitor<? super FsController,FsSyncException> visitor)
Invokes the given visitor to
sync() all
managed file system controllers which get accepted by the given
filter. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaccept, controllernewModelnewControllerpublic void sync(net.java.truecommons.shed.Filter<? super FsController> filter, net.java.truecommons.shed.Visitor<? super FsController,FsSyncException> visitor) throws FsSyncException
FsManagersync() all
managed file system controllers which get accepted by the given
filter.
Call this method instead of FsManager.accept(net.java.truecommons.shed.Filter<? super net.java.truevfs.kernel.spec.FsController>, net.java.truecommons.shed.Visitor<? super net.java.truevfs.kernel.spec.FsController, X>) for sync()ing in
order to support processing of additional aspects such as controlling a
shutdown hook, logging statistics et al.
The implementation needs to use an FsSyncExceptionBuilder while
iterating over all managed file system controllers in order to ensure
that all controllers get synced, even if one or more controllers fail
with an FsSyncException.
sync in interface FsManagerfilter - the filter for the managed file system controllers.
If set to Filter.ACCEPT_ANY, then the implementation may
perform additional cleanup operations, e.g. remove a shutdown
hook.visitor - the visitor for syncing the filtered file system
controllers.FsSyncWarningException - if only warning conditions
apply.
This implies that the respective file system controller has been
sync()ed with constraints, e.g. if an
open archive entry stream or channel gets forcibly
close()d.FsSyncException - if any error conditions apply.Copyright © 2005–2014 Schlichtherle IT Services. All rights reserved.