Record Class SchedulerBindings

java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.http.SchedulerBindings
Record Components:
schedulerService - object that will service synchronous scheduling api requests (like goal reordering)
scheduleAction - action that initiates scheduling of a plan and collects results, possibly asynchronously
generateSchedulingLibAction -
permissionsService - service that authorizes action requests
All Implemented Interfaces:
io.javalin.plugin.Plugin

public record SchedulerBindings(SpecificationService specificationService, SchedulerService schedulerService, ScheduleAction scheduleAction, GenerateSchedulingLibAction generateSchedulingLibAction, gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService) extends Record implements io.javalin.plugin.Plugin
set up mapping between scheduler http endpoints and java method calls
  • Constructor Details

  • Method Details

    • apply

      public void apply(io.javalin.Javalin javalin)
      apply all scheduler http bindings to the provided javalin server
      Specified by:
      apply in interface io.javalin.plugin.Plugin
      Parameters:
      javalin - the javalin server object to apply bindings to
    • 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
    • scheduleAction

      public ScheduleAction scheduleAction()
      Returns the value of the scheduleAction record component.
      Returns:
      the value of the scheduleAction record component
    • generateSchedulingLibAction

      public GenerateSchedulingLibAction generateSchedulingLibAction()
      Returns the value of the generateSchedulingLibAction record component.
      Returns:
      the value of the generateSchedulingLibAction record component
    • permissionsService

      public gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService()
      Returns the value of the permissionsService record component.
      Returns:
      the value of the permissionsService record component