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 asynchronouslygenerateSchedulingLibAction
-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 Summary
ConstructorDescriptionSchedulerBindings
(SpecificationService specificationService, SchedulerService schedulerService, ScheduleAction scheduleAction, GenerateSchedulingLibAction generateSchedulingLibAction, gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService) Creates an instance of aSchedulerBindings
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(io.javalin.Javalin javalin) apply all scheduler http bindings to the provided javalin serverfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegenerateSchedulingLibAction
record component.final int
hashCode()
Returns a hash code value for this object.gov.nasa.jpl.aerie.permissions.PermissionsService
Returns the value of thepermissionsService
record component.Returns the value of thescheduleAction
record component.Returns the value of theschedulerService
record component.Returns the value of thespecificationService
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SchedulerBindings
public SchedulerBindings(SpecificationService specificationService, SchedulerService schedulerService, ScheduleAction scheduleAction, GenerateSchedulingLibAction generateSchedulingLibAction, gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService) Creates an instance of aSchedulerBindings
record class.- Parameters:
specificationService
- the value for thespecificationService
record componentschedulerService
- the value for theschedulerService
record componentscheduleAction
- the value for thescheduleAction
record componentgenerateSchedulingLibAction
- the value for thegenerateSchedulingLibAction
record componentpermissionsService
- the value for thepermissionsService
record component
-
-
Method Details
-
apply
public void apply(io.javalin.Javalin javalin) apply all scheduler http bindings to the provided javalin server- Specified by:
apply
in interfaceio.javalin.plugin.Plugin
- Parameters:
javalin
- the javalin server object to apply bindings to
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
specificationService
Returns the value of thespecificationService
record component.- Returns:
- the value of the
specificationService
record component
-
schedulerService
Returns the value of theschedulerService
record component.- Returns:
- the value of the
schedulerService
record component
-
scheduleAction
Returns the value of thescheduleAction
record component.- Returns:
- the value of the
scheduleAction
record component
-
generateSchedulingLibAction
Returns the value of thegenerateSchedulingLibAction
record component.- Returns:
- the value of the
generateSchedulingLibAction
record component
-
permissionsService
public gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService()Returns the value of thepermissionsService
record component.- Returns:
- the value of the
permissionsService
record component
-