Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-20844

Introduce JobExecution interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • compute

    Description

      Currently org.apache.ignite.compute.IgniteCompute have follow API

      <R> CompletableFuture<R> executeAsync(...); 

      In this task we need to inroduce JobExecution interface 

      public interface JobExecution<T> {    
          CompletableStage<T> resultAsync();
          
          CompletableStage<JobStatus> statusAsync();
          
          default CompletableStage<UUID> idAsync() {    
              return status().thenApply(status -> status.id());   
          }
      
          CompletableStage<Boolean> cancelAsync();
      
          CompletableStage<Boolean> changePriority(long newPriority);
      } 

       and modify public API 

       <R> JobExecution<R> executeAsync(...); 

      Important note

      Implementation of JobExecution interface on clients-side can be done in follow-up tickets. But changes made in this ticket should be backward compatibility. 

      Attachments

        Issue Links

          Activity

            People

              vpakhnushev Vadim Pakhnushev
              Mikhail Pochatkin Mikhail Pochatkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h