Class PostgresResultsCellRepository.PostgresResultsCell
java.lang.Object
gov.nasa.jpl.aerie.merlin.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
ConstructorDescriptionPostgresResultsCell
(DataSource dataSource, SimulationRecord simulation, long datasetId) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
After calling cancel, `get` is no longer legal to invoke.void
failWith
(gov.nasa.jpl.aerie.merlin.driver.SimulationFailure reason) get()
boolean
void
reportIncompleteResults
(gov.nasa.jpl.aerie.merlin.driver.SimulationResults results) void
reportSimulationExtent
(gov.nasa.jpl.aerie.merlin.protocol.types.Duration extent) void
succeedWith
(gov.nasa.jpl.aerie.merlin.driver.SimulationResults results) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.nasa.jpl.aerie.merlin.server.ResultsProtocol.WriterRole
failWith
-
Constructor Details
-
PostgresResultsCell
-
-
Method Details
-
get
- Specified by:
get
in interfaceResultsProtocol.ReaderRole
-
cancel
public void cancel()Description copied from interface:ResultsProtocol.ReaderRole
After calling cancel, `get` is no longer legal to invoke.- Specified by:
cancel
in interfaceResultsProtocol.ReaderRole
-
isCanceled
public boolean isCanceled()- Specified by:
isCanceled
in interfaceResultsProtocol.WriterRole
-
succeedWith
public void succeedWith(gov.nasa.jpl.aerie.merlin.driver.SimulationResults results) - Specified by:
succeedWith
in interfaceResultsProtocol.WriterRole
-
failWith
public void failWith(gov.nasa.jpl.aerie.merlin.driver.SimulationFailure reason) - Specified by:
failWith
in interfaceResultsProtocol.WriterRole
-
reportIncompleteResults
public void reportIncompleteResults(gov.nasa.jpl.aerie.merlin.driver.SimulationResults results) - Specified by:
reportIncompleteResults
in interfaceResultsProtocol.WriterRole
-
reportSimulationExtent
public void reportSimulationExtent(gov.nasa.jpl.aerie.merlin.protocol.types.Duration extent) - Specified by:
reportSimulationExtent
in interfaceResultsProtocol.WriterRole
-