@ThreadSafe public final class AlluxioFuse extends Object
Modifier and Type | Method and Description |
---|---|
static FuseUmountable |
launchFuse(FileSystem fs,
AlluxioConfiguration conf,
FuseMountOptions opts,
boolean blocking)
Launches Fuse application.
|
static void |
main(String[] args)
Running this class will mount the file system according to the options passed to this function
parseOptions(String[], AlluxioConfiguration) . |
static List<String> |
parseFuseOptions(String[] fuseOptions,
AlluxioConfiguration alluxioConf)
Parses user given fuse options to the format that Fuse application needs.
|
public static void main(String[] args)
parseOptions(String[], AlluxioConfiguration)
. The user-space fuse application will
stay on the foreground and keep the file system mounted. The user can unmount the file system
by gracefully killing (SIGINT) the process.args
- arguments to run the command linepublic static FuseUmountable launchFuse(FileSystem fs, AlluxioConfiguration conf, FuseMountOptions opts, boolean blocking) throws IOException
fs
- file system for Fuse client to communicate to serversconf
- the alluxio configuration to create Fuse file systemopts
- the fuse mount optionsblocking
- whether the Fuse application is blocking or notIOException
public static List<String> parseFuseOptions(String[] fuseOptions, AlluxioConfiguration alluxioConf)
fuseOptions
- the fuse options to parse fromalluxioConf
- alluxio configurationCopyright © 2023. All Rights Reserved.