Package ca.uhn.fhir.batch2.api
package ca.uhn.fhir.batch2.api
This package contains the APIs used in the Batch2 framework.
IJobCoordinator is the external facing API for the
framework, used to start and stop jobs and inquire about status.
IJobMaintenanceService is a background processor that
updates statistics and clean up stale data
IJobStepWorker is the interface that a job
implementation would implement for its step workers. The first and last step would
respectively use a sub-interface of IJobStepWorker:
IFirstJobStepWorker is the first step and
ILastJobStepWorker is the last
IJobDataSink is a callback API provided to
step workers that they can supply data to for processing in subsequent steps.
IJobPersistence is an internal API providing storage
for jobs.
- Since:
- 6.0.0
-
ClassDescriptionChunkExecutionDetails<PT extends ca.uhn.fhir.model.api.IModelJson,
IT extends ca.uhn.fhir.model.api.IModelJson> IFirstJobStepWorker<PT extends ca.uhn.fhir.model.api.IModelJson,OT extends ca.uhn.fhir.model.api.IModelJson> IJobCompletionHandler<PT extends ca.uhn.fhir.model.api.IModelJson>IJobDataSink<OT extends ca.uhn.fhir.model.api.IModelJson>IJobParametersValidator<T extends ca.uhn.fhir.model.api.IModelJson>This interface can be used to validate the parameters object supplied to start a job instance.Provides the list ofPartitionedUrlthat a job should run against.Some of this is tested inca.uhn.hapi.fhir.batch2.test.AbstractIJobPersistenceSpecificationTestThis is a transactional interface, but we have pushed the declaration of calls that have@Transactional(propagation = Propagation.REQUIRES_NEW)down to the implementations since we have a synchronized wrapper that was double-creating the NEW transaction.Callback to update a JobInstance within a locked transaction.IJobStepWorker<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson, OT extends ca.uhn.fhir.model.api.IModelJson> This interface is implemented by step workers within the Batch2 framework.ILastJobStepWorker<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson> IReductionStepWorker<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson, OT extends ca.uhn.fhir.model.api.IModelJson> Reduction step worker.Work Chunk api, implementing the WorkChunk state machine.JobCompletionDetails<PT extends ca.uhn.fhir.model.api.IModelJson>This exception indicates an unrecoverable processing failure.When a step throws an Exception that is not aJobExecutionFailedException, the Smile Batch 2 framework will rethrow the exception as aJobStepFailedException.Exception that is thrown when a polling step needs to be retried at a later time.Return type forIJobStepWorker.run(StepExecutionDetails, IJobDataSink)StepExecutionDetails<PT extends ca.uhn.fhir.model.api.IModelJson,IT extends ca.uhn.fhir.model.api.IModelJson> Used as the input type for the first step