Package alluxio.cli.fs.command
Class FreeCommand
- java.lang.Object
-
- alluxio.cli.fs.command.AbstractFileSystemCommand
-
- alluxio.cli.fs.command.FreeCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
@ThreadSafe @PublicApi public final class FreeCommand extends AbstractFileSystemCommand
Frees the given file or folder from Alluxio storage (recursively freeing all children if a folder).
-
-
Field Summary
-
Fields inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
mFileSystem, mFsContext
-
-
Constructor Summary
Constructors Constructor Description FreeCommand(alluxio.client.file.FileSystemContext fsContext)Constructs a new instance to free the given file or folder from Alluxio.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommandName()java.lang.StringgetDescription()org.apache.commons.cli.OptionsgetOptions()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)protected voidrunPlainPath(alluxio.AlluxioURI path, org.apache.commons.cli.CommandLine cl)Runs the command for a particular URI that does not contain wildcard in its path.voidvalidateArgs(org.apache.commons.cli.CommandLine cl)-
Methods inherited from class alluxio.cli.fs.command.AbstractFileSystemCommand
processHeader, runWildCardCmd
-
-
-
-
Method Detail
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
getCommandName
public java.lang.String getCommandName()
-
runPlainPath
protected void runPlainPath(alluxio.AlluxioURI path, org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOExceptionDescription copied from class:AbstractFileSystemCommandRuns the command for a particular URI that does not contain wildcard in its path.- Overrides:
runPlainPathin classAbstractFileSystemCommand- Parameters:
path- an AlluxioURI that does not contain wildcardcl- object containing the original commandLine- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
getUsage
public java.lang.String getUsage()
-
getDescription
public java.lang.String getDescription()
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOException- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
validateArgs
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.status.InvalidArgumentException- Throws:
alluxio.exception.status.InvalidArgumentException
-
-