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
ConstructorsConstructorDescriptionSchedulerBindings(SpecificationService specificationService, SchedulerService schedulerService, ScheduleAction scheduleAction, GenerateSchedulingLibAction generateSchedulingLibAction, gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService) Creates an instance of aSchedulerBindingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(io.javalin.Javalin javalin) apply all scheduler http bindings to the provided javalin serverfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerateSchedulingLibActionrecord component.final inthashCode()Returns a hash code value for this object.gov.nasa.jpl.aerie.permissions.PermissionsServiceReturns the value of thepermissionsServicerecord component.Returns the value of thescheduleActionrecord component.Returns the value of theschedulerServicerecord component.Returns the value of thespecificationServicerecord component.final StringtoString()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 aSchedulerBindingsrecord class.- Parameters:
specificationService- the value for thespecificationServicerecord componentschedulerService- the value for theschedulerServicerecord componentscheduleAction- the value for thescheduleActionrecord componentgenerateSchedulingLibAction- the value for thegenerateSchedulingLibActionrecord componentpermissionsService- the value for thepermissionsServicerecord component
-
-
Method Details
-
apply
public void apply(io.javalin.Javalin javalin) apply all scheduler http bindings to the provided javalin server- Specified by:
applyin 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 thespecificationServicerecord component.- Returns:
- the value of the
specificationServicerecord component
-
schedulerService
Returns the value of theschedulerServicerecord component.- Returns:
- the value of the
schedulerServicerecord component
-
scheduleAction
Returns the value of thescheduleActionrecord component.- Returns:
- the value of the
scheduleActionrecord component
-
generateSchedulingLibAction
Returns the value of thegenerateSchedulingLibActionrecord component.- Returns:
- the value of the
generateSchedulingLibActionrecord component
-
permissionsService
public gov.nasa.jpl.aerie.permissions.PermissionsService permissionsService()Returns the value of thepermissionsServicerecord component.- Returns:
- the value of the
permissionsServicerecord component
-