@ThreadSafe public abstract class FsAbstractController extends net.java.truecommons.shed.UniqueObject implements FsController
getModel()
method.
Subclasses should be thread-safe.
FsController.Factory<Context>| Modifier | Constructor and Description |
|---|---|
protected |
FsAbstractController(FsModel model)
Constructs a new file system controller for the given model.
|
| Modifier and Type | Method and Description |
|---|---|
FsModel |
getModel()
Returns the file system model.
|
FsMountPoint |
getMountPoint()
Returns the mount point of this (virtual) file system as
defined by the model.
|
boolean |
isMounted()
Returns the
mounted property of the
file system model. |
protected void |
setMounted(boolean mounted)
Sets the
mounted property of the
file system model. |
boolean |
setTime(net.java.truecommons.shed.BitField<FsAccessOption> options,
FsNodeName name,
Map<net.java.truecommons.cio.Entry.Access,Long> times)
Makes an attempt to set the last access time of all types in the given
map for the file system node with the given name.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckAccess, getParent, input, make, node, output, setReadOnly, setTime, sync, unlinkprotected FsAbstractController(FsModel model)
model - the file system model.public final FsModel getModel()
FsControllergetModel in interface FsControllerpublic final FsMountPoint getMountPoint()
public final boolean isMounted()
mounted property of the
file system model.mounted property of the
file system model.protected final void setMounted(boolean mounted)
mounted property of the
file system model.mounted - the mounted property of the
file system model.public boolean setTime(net.java.truecommons.shed.BitField<FsAccessOption> options, FsNodeName name, Map<net.java.truecommons.cio.Entry.Access,Long> times) throws IOException
FsControllerfalse is returned or an IOException is thrown, then
still some of the last access times may have been set.
Whether or not this is an atomic operation is specific to the
implementation.setTime in interface FsControlleroptions - the options for accessing the file system node.name - the name of the file system node.times - the access times.true if and only if setting the access time for all
types in times succeeded.IOException - on any I/O error.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.