Class PostgresResultsCellRepository
java.lang.Object
gov.nasa.jpl.aerie.merlin.server.remotes.postgres.PostgresResultsCellRepository
- All Implemented Interfaces:
ResultsCellRepository
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClaim a simulationforceAllocate
(PlanId planId, String requestedBy) Forcibly allocate a simulation by updating the Simulation Configuration's revisionlookup
(PlanId planId, SimulationDatasetId simulationDatasetId)
-
Constructor Details
-
PostgresResultsCellRepository
-
-
Method Details
-
allocate
- Specified by:
allocate
in interfaceResultsCellRepository
-
forceAllocate
Forcibly allocate a simulation by updating the Simulation Configuration's revision- Specified by:
forceAllocate
in interfaceResultsCellRepository
-
claim
Claim a simulationFor the case where the return value is empty, the simulation is already claimed. All other exceptions are unexpected and result in an
Error
being raised.- Specified by:
claim
in interfaceResultsCellRepository
- Parameters:
planId
- a plan identifierdatasetId
- the identifier of a dataset record- Returns:
- cell (handle)
ResultsProtocol.OwnerRole
to the claimed simulation wrapped inOptional
-
lookup
- Specified by:
lookup
in interfaceResultsCellRepository
-
lookup
public Optional<ResultsProtocol.ReaderRole> lookup(PlanId planId, SimulationDatasetId simulationDatasetId) throws SimulationDatasetMismatchException - Specified by:
lookup
in interfaceResultsCellRepository
- Throws:
SimulationDatasetMismatchException
-