@ThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public final class FsDefaultManager extends FsManager
| Modifier and Type | Class and Description |
|---|---|
private static class |
FsDefaultManager.FsControllerComparator
Orders file system controllers so that all file systems appear before
any of their parent file systems.
|
private class |
FsDefaultManager.ScheduledModel
A model which schedules its controller for
synchronization by "observing" its
touched property. |
| Modifier and Type | Field and Description |
|---|---|
private Link.Type |
optionalScheduleType |
private Map<FsMountPoint,Link<FsFederatingController>> |
schedulers
The map of all schedulers for composite file system controllers,
keyed by the mount point of their respective file system model.
|
| Constructor and Description |
|---|
FsDefaultManager() |
FsDefaultManager(Link.Type optionalScheduleType)
Provided for unit testing.
|
| Modifier and Type | Method and Description |
|---|---|
FsController<?> |
getController(FsMountPoint mountPoint,
FsCompositeDriver driver)
Returns a thread-safe file system controller for the given mount point.
|
private FsController<?> |
getController(FsMountPoint mountPoint,
FsController<?> parent,
FsCompositeDriver driver) |
private Set<FsController<?>> |
getControllers() |
int |
getSize()
Returns the number of federated file systems managed by this instance.
|
Iterator<FsController<?>> |
iterator()
Returns an iterator for the controller of all federated file systems
managed by this instance.
|
private final Link.Type optionalScheduleType
private final Map<FsMountPoint,Link<FsFederatingController>> schedulers
public FsDefaultManager()
FsDefaultManager(Link.Type optionalScheduleType)
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.private FsController<?> getController(FsMountPoint mountPoint, @CheckForNull FsController<?> parent, FsCompositeDriver driver)
private Set<FsController<?>> getControllers()
public int getSize()
FsManagerpublic Iterator<FsController<?>> iterator()
FsManagerImportant: The iterated file system controllers must be ordered so that all file systems appear before any of their parent file systems.
iterator in interface Iterable<FsController<?>>iterator in class FsManagerCopyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.