Modifier and Type | Method and Description |
---|---|
static void |
sync(net.java.truecommons.shed.BitField<FsSyncOption> options)
Commits all pending changes for all (nested) archive files to their
respective parent file system with respect to the given options.
|
static void |
sync(FsMountPoint tree,
net.java.truecommons.shed.BitField<FsSyncOption> options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
sync(FsMountPoint tree,
FsSyncOption... options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
sync(FsSyncOption... options)
Commits all pending changes for all (nested) archive files to their
respective parent file system with respect to the given options.
|
static void |
sync(TFile tree,
net.java.truecommons.shed.BitField<FsSyncOption> options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
sync(TFile tree,
FsSyncOption... options)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system with respect to the given options. |
static void |
umount()
Commits all pending changes for all (nested) archive files to their
respective parent file system, closes their associated target archive
file in order to allow access by third parties
(e.g. other processes), cleans up any temporary allocated resources
(e.g. temporary files) and purges any cached data.
|
static void |
umount(FsMountPoint tree)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system, closes their associated target archive file in order to allow
access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data. |
static void |
umount(TFile tree)
Commits all pending changes for all (nested) archive files within the
given (virtual) directory
tree to their respective parent file
system, closes their associated target archive file in order to allow
access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data. |
@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(net.java.truecommons.shed.BitField<FsSyncOption> options) throws FsSyncWarningException, FsSyncException
options
- a bit field of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(FsMountPoint tree, net.java.truecommons.shed.BitField<FsSyncOption> options) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system with respect to the given options.tree
- a file or directory in the (virtual) file system space.options
- a bit field of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(FsMountPoint tree, FsSyncOption... options) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system with respect to the given options.tree
- a file or directory in the (virtual) file system space.options
- an array of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(FsSyncOption... options) throws FsSyncWarningException, FsSyncException
options
- an array of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(TFile tree, net.java.truecommons.shed.BitField<FsSyncOption> options) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system with respect to the given options.tree
- a file or directory in the (virtual) file system space.options
- a bit field of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.@ExpertFeature(value=THE_PRESENCE_OR_ABSENCE_OF_SOME_OPTIONS_MAY_YIELD_UNWANTED_SIDE_EFFECTS) public static void sync(TFile tree, FsSyncOption... options) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system with respect to the given options.tree
- a file or directory in the (virtual) file system space.options
- an array of options for the synchronization operation.IllegalArgumentException
- if the combination of synchronization
options is illegal, e.g. if FsSyncOption.ABORT_CHANGES
is set.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if
FsSyncOption.FORCE_CLOSE_IO
is set and an unclosed
archive entry stream gets forcibly closed.FsSyncException
- if any error conditions apply.public static void umount() throws FsSyncWarningException, FsSyncException
Note that temporary files may of used even for read-only access to archive files, so calling this operation is essential. However, if the client application never calls this operation, then it gets called by a shutdown hook. The shutdown hook gets removed as soon as this operation gets called in order to leak no memory in dynamic class loader environments.
Calling this method is equivalent to
sync(FsSyncOptions.UMOUNT)
.
FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if an unclosed archive entry
stream gets forcibly closed.FsSyncException
- if any error conditions apply.public static void umount(FsMountPoint tree) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system, closes their associated target archive file in order to allow
access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data.
Calling this method is equivalent to
sync(tree, FsSyncOptions.UMOUNT)
.
tree
- a file or directory in the (virtual) file system space.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if an unclosed archive entry
stream gets forcibly closed.FsSyncException
- if any error conditions apply.public static void umount(TFile tree) throws FsSyncWarningException, FsSyncException
tree
to their respective parent file
system, closes their associated target archive file in order to allow
access by third parties (e.g. other processes), cleans up any
temporary allocated resources (e.g. temporary files) and purges any
cached data.
Calling this method is equivalent to
sync(tree, FsSyncOptions.UMOUNT)
.
tree
- a file or directory in the (virtual) file system space.FsSyncWarningException
- if only warning conditions
apply.
This implies that the respective parent file system has been
synchronized with constraints, e.g. if an unclosed archive entry
stream gets forcibly closed.FsSyncException
- if any error conditions apply.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.