Interface ResultsProtocol.WriterRole

All Known Subinterfaces:
ResultsProtocol.OwnerRole
All Known Implementing Classes:
PostgresResultsCellRepository.PostgresResultsCell
Enclosing class:
ResultsProtocol

public static interface ResultsProtocol.WriterRole
producer for a scheduling result
  • Method Details

    • succeedWith

      void succeedWith(ScheduleResults results, Optional<DatasetId> datasetId)
      mark the scheduling run as fully complete and attach the given results
      Parameters:
      results - the summary results of the scheduling run, including satisfaction metrics etc
    • reportCanceled

      void reportCanceled(gov.nasa.jpl.aerie.scheduler.SchedulingInterruptedException e)
      Mark that the scheduler has acknowledged the cancellation
    • failWith

      void failWith(ScheduleFailure reason)
      mark the scheduling run as having failed with the given reason
      Parameters:
      reason - the reason that the scheduling run failed
    • failWith

      default void failWith(Consumer<ScheduleFailure.Builder> builderConsumer)