Class AbstractDistributedJobCommand

    • Field Detail

      • ASYNC_OPTION

        protected static final org.apache.commons.cli.Option ASYNC_OPTION
      • mSubmittedJobAttempts

        protected java.util.List<JobAttempt> mSubmittedJobAttempts
      • mActiveJobs

        protected int mActiveJobs
      • mClient

        protected final alluxio.client.job.JobMasterClient mClient
    • Constructor Detail

      • AbstractDistributedJobCommand

        protected AbstractDistributedJobCommand​(alluxio.client.file.FileSystemContext fsContext)
    • Method Detail

      • drain

        protected void drain()
      • submit

        protected long submit​(alluxio.job.CmdConfig cmdConfig)
      • waitJob

        protected void waitJob()
        Waits for at least one job to complete.
      • waitForCmd

        public void waitForCmd​(long jobControlId)
        Waits for command to complete.
        Parameters:
        jobControlId -
      • postProcessing

        public void postProcessing​(long jobControlId)
        Do post-processing on the command information, including printing file paths and statistics.
        Parameters:
        jobControlId -
      • processFailures

        protected void processFailures​(java.lang.String arg,
                                       java.util.Set<java.lang.String> failures,
                                       java.lang.String logFileLocation)
      • getCompletedCount

        public int getCompletedCount()
        Gets the number of completed jobs.
        Returns:
        the number of completed job
      • getFailedCount

        public int getFailedCount()
        Gets the number of failed jobs.
        Returns:
        number of failed jobs
      • getFailedCmdCount

        public int getFailedCmdCount()
        Gets the number of failed commands.
        Returns:
        number of failed commands
      • getCompletedCmdCount

        public int getCompletedCmdCount()
        Gets the number of completed commands.
        Returns:
        the number of completed commands
      • getFailedFiles

        public java.util.Set<java.lang.String> getFailedFiles()
        Gets failed files.
        Returns:
        failed files