|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.fs.FsManager
de.schlichtherle.truezip.fs.FsDefaultManager
@ThreadSafe public final class FsDefaultManager
The default implementation of a file system manager.
| Nested Class Summary | |
|---|---|
private class |
FsDefaultManager.Scheduler
|
| Field Summary | |
|---|---|
private static Comparator<FsController<?>> |
BOTTOM_UP_COMPARATOR
Orders file system controllers so that all file systems appear before any of their parent file systems. |
private Link.Type |
optionalScheduleType
|
private Map<FsMountPoint,Link<FsDefaultManager.Scheduler>> |
schedulers
The map of all schedulers for composite file system controllers, keyed by the mount point of their respective file system model. |
| Fields inherited from class de.schlichtherle.truezip.fs.FsManager |
|---|
UMOUNT |
| Constructor Summary | |
|---|---|
FsDefaultManager()
|
|
FsDefaultManager(Link.Type optionalScheduleType)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class de.schlichtherle.truezip.fs.FsManager |
|---|
equals, hashCode, sync, sync, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Map<FsMountPoint,Link<FsDefaultManager.Scheduler>> schedulers
private final Link.Type optionalScheduleType
private static final Comparator<FsController<?>> BOTTOM_UP_COMPARATOR
| Constructor Detail |
|---|
public FsDefaultManager()
FsDefaultManager(Link.Type optionalScheduleType)
| Method Detail |
|---|
@NonNull
public FsController<?> getController(@NonNull
FsMountPoint mountPoint,
@NonNull
FsCompositeDriver driver)
FsManagersynchronization
operations.
getController in class FsManagermountPoint - the mount point of the file system.driver - the file system composite driver which will be used to
create a new file system controller if required.
private FsController<?> getController(FsMountPoint mountPoint,
FsController<?> parent,
FsCompositeDriver driver)
public int getSize()
FsManager
getSize in class 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 FsManagerprivate Set<FsController<?>> getControllers()
|
TrueZIP Kernel 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||