Interface JobManagerRunner

    • Method Detail

      • getResultFuture

        CompletableFuture<JobManagerRunnerResult> getResultFuture()
        Get the result future of this runner. The future is completed once the executed job reaches a globally terminal state or if the initialization of the JobMaster fails. If the result future is completed exceptionally via JobNotFinishedException, then this signals that the job has not been completed successfully. All other exceptional completions denote an unexpected exception which leads to a process restart.
        Returns:
        Future which is completed with the job result
      • getJobID

        JobID getJobID()
        Get the job id of the executed job.
        Returns:
        job id of the executed job
      • cancel

        CompletableFuture<Acknowledge> cancel​(Duration timeout)
        Cancels the currently executed job.
        Parameters:
        timeout - of this operation
        Returns:
        Future acknowledge of the operation
      • requestJobStatus

        CompletableFuture<JobStatus> requestJobStatus​(Duration timeout)
        Requests the current job status.
        Parameters:
        timeout - for the rpc call
        Returns:
        Future containing the current job status
      • requestJobDetails

        CompletableFuture<JobDetails> requestJobDetails​(Duration timeout)
        Request the details of the executed job.
        Parameters:
        timeout - for the rpc call
        Returns:
        Future details of the executed job
      • isInitialized

        boolean isInitialized()
        Flag indicating if the JobManagerRunner has been initialized.
        Returns:
        true if the JobManagerRunner has been initialized.