@ThreadSafe public abstract class FsModel extends Object
Sub-classes must be thread-safe, too.
FsController
,
FsManager
Modifier | Constructor and Description |
---|---|
protected |
FsModel(FsMountPoint mountPoint,
FsModel parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that)
Two file system models are considered equal if and only if they are
identical.
|
FsMountPoint |
getMountPoint()
Returns the mount point of the file system.
|
FsModel |
getParent()
Returns the model of the parent file system or
null if and
only if the file system is not federated, i.e. |
int |
hashCode()
Returns a hash code which is consistent with
equals(java.lang.Object, java.lang.Object) . |
abstract boolean |
isMounted()
Returns
true if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController must not get discarded until
the next call to sync . |
abstract void |
setMounted(boolean mounted)
Sets the value of the property
mounted . |
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
protected FsModel(FsMountPoint mountPoint, @CheckForNull FsModel parent)
public final boolean equals(Object that)
public final FsMountPoint getMountPoint()
The mount point may be used to construct error messages or to locate and access file system meta data which is stored outside the file system, e.g. in-memory stored passwords for RAES encrypted ZIP files.
@CheckForNull public final FsModel getParent()
null
if and
only if the file system is not federated, i.e. if it's not a member of
a parent file system.public final int hashCode()
equals(java.lang.Object, java.lang.Object)
.
This can't get overriden.public abstract boolean isMounted()
true
if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController
must not get discarded until
the next call to sync
.
An implementation may always return false
if the associated
file system controller is stateless.
true
if and only if some state associated with the
federated file system has been modified so that the
corresponding FsController
must not get discarded until
the next sync
.public abstract void setMounted(boolean mounted)
mounted
.
Only file system controllers should call this method in order to
register themselves for a call their FsController.sync(de.schlichtherle.truezip.util.BitField<de.schlichtherle.truezip.fs.FsSyncOption>)
method.
An implementation may ignore calls to this method if the associated file system controller is stateless.
mounted
- the new value of this property.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.