An interface for all fuse shell commands.
| 19 | * An interface for all fuse shell commands. |
| 20 | */ |
| 21 | public 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 | } |
no outgoing calls
no test coverage detected