Class PostgresResultsCellRepository
java.lang.Object
gov.nasa.jpl.aerie.merlin.server.remotes.postgres.PostgresResultsCellRepository
- All Implemented Interfaces:
ResultsCellRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Constructor Summary
Constructors -
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:
allocatein interfaceResultsCellRepository
-
forceAllocate
Forcibly allocate a simulation by updating the Simulation Configuration's revision- Specified by:
forceAllocatein 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
Errorbeing raised.- Specified by:
claimin interfaceResultsCellRepository- Parameters:
planId- a plan identifierdatasetId- the identifier of a dataset record- Returns:
- cell (handle)
ResultsProtocol.OwnerRoleto the claimed simulation wrapped inOptional
-
lookup
- Specified by:
lookupin interfaceResultsCellRepository
-
lookup
public Optional<ResultsProtocol.ReaderRole> lookup(PlanId planId, SimulationDatasetId simulationDatasetId) throws SimulationDatasetMismatchException - Specified by:
lookupin interfaceResultsCellRepository- Throws:
SimulationDatasetMismatchException
-