MCPcopy
hub / github.com/Alluxio/alluxio / FuseCommand

Interface FuseCommand

integration/fuse/src/main/java/alluxio/cli/FuseCommand.java:21–40  ·  view source on GitHub ↗

An interface for all fuse shell commands.

Source from the content-addressed store, hash-verified

19 * An interface for all fuse shell commands.
20 */
21public interface FuseCommand extends Command {
22 /**
23 * Checks if the arguments are valid or throw InvalidArgumentException.
24 *
25 * @param argv args need to be validated
26 * @throws InvalidArgumentException when arguments are not valid
27 */
28 default void validateArgs(String[] argv) throws InvalidArgumentException {}
29
30 /**
31 * Runs the command.
32 *
33 * @param path the path uri from fuse command
34 * @param argv args from fuse command
35 * @return the result of running the command
36 */
37 default URIStatus run(AlluxioURI path, String[] argv) throws InvalidArgumentException {
38 return null;
39 }
40}

Callers 2

runCommandMethod · 0.95
runCommandMethod · 0.95

Implementers 15

AbstractFuseShellCommandintegration/fuse/src/main/java/alluxio
ListCommandshell/src/main/java/alluxio/cli/job/co
StatCommandshell/src/main/java/alluxio/cli/job/co
LeaderCommandshell/src/main/java/alluxio/cli/job/co
GetCmdStatusCommandshell/src/main/java/alluxio/cli/job/co
CancelCommandshell/src/main/java/alluxio/cli/job/co
UfsCommandshell/src/main/java/alluxio/cli/fsadmi
ReportCommandshell/src/main/java/alluxio/cli/fsadmi
GetBlockInfoCommandshell/src/main/java/alluxio/cli/fsadmi
DoctorCommandshell/src/main/java/alluxio/cli/fsadmi
BackupCommandshell/src/main/java/alluxio/cli/fsadmi
ClearCommandshell/src/main/java/alluxio/cli/fsadmi

Calls

no outgoing calls

Tested by

no test coverage detected