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 Details

  • 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

      @Nonnull public IT 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 return null during any other steps.
      Throws:
      NullPointerException - If this method is called during the first step of a job
    • getParameters

      @Nonnull public PT 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

      @Nonnull public IJobInstance getInstance()
      Returns the job instance ID being executed
    • getChunkId

      @Nonnull public String getChunkId()
      Returns the work chunk ID being executed
    • getWorkChunk

      @Nonnull public WorkChunk getWorkChunk()
    • hasAssociatedWorkChunk

      public boolean 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