Class ThreadedSchedulerAgent
java.lang.Object
gov.nasa.jpl.aerie.scheduler.server.services.ThreadedSchedulerAgent
- All Implemented Interfaces:
SchedulerAgent
-
Method Summary
Modifier and TypeMethodDescriptionvoidschedule(ScheduleRequest request, ResultsProtocol.WriterRole writer, Supplier<Boolean> canceledListener, int sizeCachedEngineStore) run the scheduling algorithm on the target plan using the associated scheduling goals mutates the target plan when scheduling is complete! any exceptions related to the particulars of a request should be reported as failures to the writer object; only exceptions fatal to the service itself should be propagated outstatic ThreadedSchedulerAgentspawn(String threadName, SchedulerAgent schedulerAgent) void
-
Method Details
-
schedule
public void schedule(ScheduleRequest request, ResultsProtocol.WriterRole writer, Supplier<Boolean> canceledListener, int sizeCachedEngineStore) throws InterruptedException Description copied from interface:SchedulerAgentrun the scheduling algorithm on the target plan using the associated scheduling goals mutates the target plan when scheduling is complete! any exceptions related to the particulars of a request should be reported as failures to the writer object; only exceptions fatal to the service itself should be propagated out- Specified by:
schedulein interfaceSchedulerAgent- Parameters:
request- details of scheduling request, including target plan versionwriter- object representing the request for scheduling results, including space to store results- Throws:
InterruptedException
-
terminate
- Throws:
InterruptedException
-
spawn
-