Class PostgresResultsCellRepository.PostgresResultsCell
java.lang.Object
gov.nasa.jpl.aerie.scheduler.server.remotes.postgres.PostgresResultsCellRepository.PostgresResultsCell
- All Implemented Interfaces:
ResultsProtocol.OwnerRole,ResultsProtocol.ReaderRole,ResultsProtocol.WriterRole
- Enclosing class:
PostgresResultsCellRepository
public static final class PostgresResultsCellRepository.PostgresResultsCell
extends Object
implements ResultsProtocol.OwnerRole
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresResultsCell(DataSource dataSource, SpecificationId specId, long specRevision, long planRevision, long analysisId) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()cancel the interest in the result of the scheduling run it is illegal to call get() after a cancel() callvoidfailWith(ScheduleFailure reason) mark the scheduling run as having failed with the given reasonget()retrieve the current status of the scheduling run, including if it is still in progress the scheduling run must not have been previously cancel()edvoidreportCanceled(gov.nasa.jpl.aerie.scheduler.SchedulingInterruptedException e) Mark that the scheduler has acknowledged the cancellationvoidsucceedWith(ScheduleResults results, Optional<DatasetId> datasetId) mark the scheduling run as fully complete and attach the given resultsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.nasa.jpl.aerie.scheduler.server.ResultsProtocol.WriterRole
failWith
-
Constructor Details
-
PostgresResultsCell
public PostgresResultsCell(DataSource dataSource, SpecificationId specId, long specRevision, long planRevision, long analysisId)
-
-
Method Details
-
get
Description copied from interface:ResultsProtocol.ReaderRoleretrieve the current status of the scheduling run, including if it is still in progress the scheduling run must not have been previously cancel()ed- Specified by:
getin interfaceResultsProtocol.ReaderRole- Returns:
- the status of the scheduling run
-
cancel
public void cancel()Description copied from interface:ResultsProtocol.ReaderRolecancel the interest in the result of the scheduling run it is illegal to call get() after a cancel() call- Specified by:
cancelin interfaceResultsProtocol.ReaderRole
-
succeedWith
Description copied from interface:ResultsProtocol.WriterRolemark the scheduling run as fully complete and attach the given results- Specified by:
succeedWithin interfaceResultsProtocol.WriterRole- Parameters:
results- the summary results of the scheduling run, including satisfaction metrics etc
-
failWith
Description copied from interface:ResultsProtocol.WriterRolemark the scheduling run as having failed with the given reason- Specified by:
failWithin interfaceResultsProtocol.WriterRole- Parameters:
reason- the reason that the scheduling run failed
-
reportCanceled
public void reportCanceled(gov.nasa.jpl.aerie.scheduler.SchedulingInterruptedException e) Description copied from interface:ResultsProtocol.WriterRoleMark that the scheduler has acknowledged the cancellation- Specified by:
reportCanceledin interfaceResultsProtocol.WriterRole
-