Class ChecksumCommand

  • All Implemented Interfaces:
    alluxio.cli.Command, java.io.Closeable, java.lang.AutoCloseable

    @ThreadSafe
    @PublicApi
    public final class ChecksumCommand
    extends AbstractFileSystemCommand
    Calculates the MD5 checksum for a file.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChecksumCommand​(alluxio.client.file.FileSystemContext fsContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandName()  
      java.lang.String getDescription()  
      java.lang.String getUsage()  
      int run​(org.apache.commons.cli.CommandLine cl)  
      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.
      void validateArgs​(org.apache.commons.cli.CommandLine cl)  
      • 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, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
    • Constructor Detail

      • ChecksumCommand

        public ChecksumCommand​(alluxio.client.file.FileSystemContext fsContext)
        Parameters:
        fsContext - the filesystem of Alluxio
    • Method Detail

      • runPlainPath

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

        public java.lang.String getCommandName()
      • validateArgs

        public void validateArgs​(org.apache.commons.cli.CommandLine cl)
                          throws alluxio.exception.status.InvalidArgumentException
        Throws:
        alluxio.exception.status.InvalidArgumentException
      • run

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws alluxio.exception.AlluxioException,
                       java.io.IOException
        Throws:
        alluxio.exception.AlluxioException
        java.io.IOException
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()