Class AbstractFileSystemCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected alluxio.client.file.FileSystem mFileSystem  
      protected alluxio.client.file.FileSystemContext mFsContext  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractFileSystemCommand​(alluxio.client.file.FileSystemContext fsContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void processHeader​(org.apache.commons.cli.CommandLine cl)
      Processes the header of the command.
      protected void runPlainPath​(alluxio.AlluxioURI plainPath, org.apache.commons.cli.CommandLine cl)
      Runs the command for a particular URI that does not contain wildcard in its path.
      protected void runWildCardCmd​(alluxio.AlluxioURI wildCardPath, org.apache.commons.cli.CommandLine cl)
      Runs the command for a particular URI that may contain wildcard in its path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface alluxio.cli.Command

        close, getCommandName, getDescription, getOptions, getSubCommands, getUsage, hasSubCommand, parseAndValidateArgs, run, validateArgs
    • Field Detail

      • mFileSystem

        protected alluxio.client.file.FileSystem mFileSystem
      • mFsContext

        protected alluxio.client.file.FileSystemContext mFsContext
    • Constructor Detail

      • AbstractFileSystemCommand

        protected AbstractFileSystemCommand​(@Nullable
                                            alluxio.client.file.FileSystemContext fsContext)
    • Method Detail

      • runPlainPath

        protected void runPlainPath​(alluxio.AlluxioURI plainPath,
                                    org.apache.commons.cli.CommandLine cl)
                             throws alluxio.exception.AlluxioException,
                                    java.io.IOException
        Runs the command for a particular URI that does not contain wildcard in its path.
        Parameters:
        plainPath - an AlluxioURI that does not contain wildcard
        cl - object containing the original commandLine
        Throws:
        alluxio.exception.AlluxioException
        java.io.IOException
      • processHeader

        protected void processHeader​(org.apache.commons.cli.CommandLine cl)
                              throws java.io.IOException
        Processes the header of the command. Our input path may contain wildcard but we only want to print the header for once.
        Parameters:
        cl - object containing the original commandLine
        Throws:
        java.io.IOException
      • runWildCardCmd

        protected void runWildCardCmd​(alluxio.AlluxioURI wildCardPath,
                                      org.apache.commons.cli.CommandLine cl)
                               throws java.io.IOException
        Runs the command for a particular URI that may contain wildcard in its path.
        Parameters:
        wildCardPath - an AlluxioURI that may or may not contain a wildcard
        cl - object containing the original commandLine
        Throws:
        java.io.IOException