Package ca.uhn.fhir.batch2.api
Class StepExecutionDetails<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson>
java.lang.Object
ca.uhn.fhir.batch2.api.StepExecutionDetails<PT,IT>
public class StepExecutionDetails<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson>
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionStepExecutionDetails(PT theParameters, IT theData, JobInstance theInstance, WorkChunk theChunk) StepExecutionDetails(PT theParameters, IT theData, JobInstance theInstance, String theChunkId) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic <P1 extends ca.uhn.fhir.model.api.IModelJson,I1 extends ca.uhn.fhir.model.api.IModelJson>
StepExecutionDetails<P1,I1> createReductionStepDetails(P1 theParameters, I1 theIntermediateParams, JobInstance theInstance) Create and returns a step execution details for a reduction jobReturns the work chunk ID being executedgetData()Returns the data associated with this step execution.Returns the job instance ID being executedReturns the parameters associated with this job instance.booleanReturns true if there's a workchunk to store data to.
-
Constructor Details
-
StepExecutionDetails
@Deprecated public StepExecutionDetails(@Nonnull PT theParameters, @Nullable IT theData, @Nonnull JobInstance theInstance, String theChunkId) Deprecated.Deprecated in 7.3 -
StepExecutionDetails
public StepExecutionDetails(@Nonnull PT theParameters, @Nullable IT theData, @Nonnull JobInstance theInstance, @Nonnull WorkChunk theChunk)
-
-
Method Details
-
createReductionStepDetails
public static <P1 extends ca.uhn.fhir.model.api.IModelJson,I1 extends ca.uhn.fhir.model.api.IModelJson> StepExecutionDetails<P1,I1> createReductionStepDetails(P1 theParameters, I1 theIntermediateParams, JobInstance theInstance) Create and returns a step execution details for a reduction job -
getData
Returns the data associated with this step execution. This method should never be called during the first step of a job, or in a reduction step, and will never returnnullduring any other steps.- Throws:
NullPointerException- If this method is called during the first step of a job
-
getParameters
Returns the parameters associated with this job instance. Note that parameters are set when the job instance is created and can not be modified after that. -
getInstance
Returns the job instance ID being executed -
getChunkId
Returns the work chunk ID being executed -
getWorkChunk
-
hasAssociatedWorkChunk
Returns true if there's a workchunk to store data to. If false, failures and data storage go straight to the jobinstance instead- Returns:
- - true if there's a workchunk in the db to store to. false if the output goes to the jobinstance instead
-