Record Class ScheduleAction

java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.services.ScheduleAction
Record Components:
specificationService - interface to specification service for any necessary specification details
schedulerService - scheduling service that handles activity scheduling requests

public record ScheduleAction(SpecificationService specificationService, SchedulerService schedulerService) extends Record
represents the query for the results of a scheduling run the query can be run using the scheduling service configured at construction, possibly resulting in the activation of a scheduling agent to produce the results (depending on caching etc)
  • Constructor Details

  • Method Details

    • run

      execute the scheduling operation on the target plan (or retrieve existing scheduling results)
      Parameters:
      specificationId - identifier of the plan to start scheduling from and to store scheduled output into
      Returns:
      a response object wrapping summary results of the run (either successful or not)
      Throws:
      NoSuchSpecificationException - if the target specification could not be found
      IOException
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • specificationService

      public SpecificationService specificationService()
      Returns the value of the specificationService record component.
      Returns:
      the value of the specificationService record component
    • schedulerService

      public SchedulerService schedulerService()
      Returns the value of the schedulerService record component.
      Returns:
      the value of the schedulerService record component