public final class JavaFS extends Object
FileSystems as a FUSE filesystems.| Modifier and Type | Method and Description |
|---|---|
static void |
mount(FileSystem fs,
Path mountPoint)
Mounts a filesystem.
|
static void |
mount(FileSystem fs,
Path mountPoint,
boolean readonly,
boolean log)
Mounts a filesystem.
|
static void |
mount(FileSystem fs,
Path mountPoint,
boolean readonly,
boolean log,
Map<String,String> mountOptions)
Mounts a filesystem.
|
static void |
mount(FileSystem fs,
Path mountPoint,
Map<String,String> mountOptions)
Mounts a filesystem.
|
static void |
unmount(Path mountPoint)
Try to unmount an existing mountpoint.
|
public static void mount(FileSystem fs, Path mountPoint) throws IOException
fs - the filesystemmountPoint - the path of the mount pointIOExceptionpublic static void mount(FileSystem fs, Path mountPoint, boolean readonly, boolean log) throws IOException
fs - the filesystemmountPoint - the path of the mount pointreadonly - if true, mounts the filesystem as read-onlylog - if true, all filesystem calls will be logged with juc logging.IOExceptionpublic static void mount(FileSystem fs, Path mountPoint, boolean readonly, boolean log, Map<String,String> mountOptions) throws IOException
fs - the filesystemmountPoint - the path of the mount pointreadonly - if true, mounts the filesystem as read-onlylog - if true, all filesystem calls will be logged with juc logging.mountOptions - the platform specific mount options (e.g. ro, rw, etc.). null for value-less options.IOExceptionpublic static void mount(FileSystem fs, Path mountPoint, Map<String,String> mountOptions) throws IOException
fs - the filesystemmountPoint - the path of the mount pointmountOptions - the platform specific mount options (e.g. ro, rw, etc.). null for value-less options.IOExceptionpublic static void unmount(Path mountPoint) throws IOException
mountPoint - The location where the filesystem is mounted.IOException - thrown if an error occurs while starting the external process.