@ThreadSafe public class AlluxioFuse extends Object
Modifier | Constructor and Description |
---|---|
protected |
AlluxioFuse() |
Modifier and Type | Method and Description |
---|---|
protected FileSystem |
createBaseFileSystem(FileSystemContext fsContext,
FuseOptions fuseOptions) |
AlluxioJniFuseFileSystem |
createFuseFileSystem(FileSystemContext fsContext,
FileSystem fs,
FuseOptions fuseOptions)
Create a FuseFileSystem instance.
|
protected AlluxioJniFuseFileSystem |
createJniFuseSystem(FileSystemContext fsContext,
FileSystem fs,
FuseOptions fuseOptions) |
static AlluxioJniFuseFileSystem |
launchFuse(AlluxioJniFuseFileSystem fuseFs,
FileSystemContext fsContext,
FuseOptions fuseOptions,
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.
|
protected static InstancedConfiguration |
parseCliOptionsAsConfig(FuseCliOptions cli)
Converts command line options into Alluxio configuration.
|
void |
setupFuseFileSystem(AlluxioJniFuseFileSystem jniFuseFileSystem)
Set up the FUSE file system
AlluxioJniFuseFileSystem before mounting. |
void |
start(AlluxioConfiguration conf)
Startup the FUSE process.
|
protected void |
startCommon(AlluxioConfiguration conf,
FuseOptions fuseOptions,
FileSystemContext fsContext)
Start common functionalities for a fuse client.
|
protected static void |
startJvmMonitorProcess()
Starts jvm monitor process, to monitor jvm.
|
protected void |
stopCommon() |
protected static void |
validateFuseConfAndOptions(AlluxioConfiguration conf,
FuseOptions options) |
protected void startCommon(AlluxioConfiguration conf, FuseOptions fuseOptions, FileSystemContext fsContext)
conf
- the Alluxio configurationfuseOptions
- Fuse options from conf or command linefsContext
- the file system context for this clientprotected void stopCommon()
public void start(AlluxioConfiguration conf) throws org.apache.commons.cli.ParseException, IOException
conf
- configurationorg.apache.commons.cli.ParseException
IOException
public static void main(String[] args) throws org.apache.commons.cli.ParseException, IOException
args
- arguments to run the command lineorg.apache.commons.cli.ParseException
IOException
protected FileSystem createBaseFileSystem(FileSystemContext fsContext, FuseOptions fuseOptions)
public AlluxioJniFuseFileSystem createFuseFileSystem(FileSystemContext fsContext, FileSystem fs, FuseOptions fuseOptions)
fsContext
- the context of the file system on which FuseFileSystem based onfs
- the file system on which FuseFileSystem based onfuseOptions
- the fuse optionsprotected AlluxioJniFuseFileSystem createJniFuseSystem(FileSystemContext fsContext, FileSystem fs, FuseOptions fuseOptions)
public void setupFuseFileSystem(AlluxioJniFuseFileSystem jniFuseFileSystem)
AlluxioJniFuseFileSystem
before mounting.jniFuseFileSystem
- the instance of AlluxioJniFuseFileSystem
public static AlluxioJniFuseFileSystem launchFuse(AlluxioJniFuseFileSystem fuseFs, FileSystemContext fsContext, FuseOptions fuseOptions, boolean blocking)
fuseFs
- the fuse file systemfsContext
- file system context for Fuse client to communicate to serversfuseOptions
- Fuse optionsblocking
- whether the Fuse application is blocking or notprotected static InstancedConfiguration parseCliOptionsAsConfig(FuseCliOptions cli)
cli
- the command line inputsprotected static void validateFuseConfAndOptions(AlluxioConfiguration conf, FuseOptions options)
protected static void startJvmMonitorProcess()
Copyright © 2023. All Rights Reserved.