Package ca.uhn.fhir.jpa.bulk.imprt.svc
Class BulkDataImportSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.bulk.imprt.svc.BulkDataImportSvcImpl
- All Implemented Interfaces:
IBulkDataImportSvc
,ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
public class BulkDataImportSvcImpl
extends Object
implements IBulkDataImportSvc, ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.jpa.bulk.imprt.api.IBulkDataImportSvc
IBulkDataImportSvc.JobInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTo be called by the job schedulervoid
addFilesToJob
(String theBiJobId, List<BulkImportJobFileJson> theFiles) createNewJob
(BulkImportJobJson theJobDescription, List<BulkImportJobFileJson> theInitialFiles) void
deleteJobFiles
(String theBiJobId) getFileDescription
(String theBiJobId, int theFileIndex) getJobStatus
(String theBiJobId) void
markJobAsReadyForActivation
(String theBiJobId) void
scheduleJobs
(ca.uhn.fhir.jpa.model.sched.ISchedulerService theSchedulerService) void
setJobToStatus
(String theBiJobId, BulkImportJobStatusEnum theStatus) void
setJobToStatus
(String theBiJobId, BulkImportJobStatusEnum theStatus, String theStatusMessage) void
start()
-
Constructor Details
-
BulkDataImportSvcImpl
public BulkDataImportSvcImpl()
-
-
Method Details
-
start
-
scheduleJobs
- Specified by:
scheduleJobs
in interfaceca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-
createNewJob
@Transactional public String createNewJob(BulkImportJobJson theJobDescription, @Nonnull List<BulkImportJobFileJson> theInitialFiles) - Specified by:
createNewJob
in interfaceIBulkDataImportSvc
-
addFilesToJob
- Specified by:
addFilesToJob
in interfaceIBulkDataImportSvc
-
markJobAsReadyForActivation
- Specified by:
markJobAsReadyForActivation
in interfaceIBulkDataImportSvc
-
activateNextReadyJob
To be called by the job scheduler- Specified by:
activateNextReadyJob
in interfaceIBulkDataImportSvc
-
setJobToStatus
- Specified by:
setJobToStatus
in interfaceIBulkDataImportSvc
-
setJobToStatus
public void setJobToStatus(String theBiJobId, BulkImportJobStatusEnum theStatus, String theStatusMessage) - Specified by:
setJobToStatus
in interfaceIBulkDataImportSvc
-
fetchJob
- Specified by:
fetchJob
in interfaceIBulkDataImportSvc
-
getJobStatus
- Specified by:
getJobStatus
in interfaceIBulkDataImportSvc
-
fetchFile
- Specified by:
fetchFile
in interfaceIBulkDataImportSvc
-
getFileDescription
- Specified by:
getFileDescription
in interfaceIBulkDataImportSvc
-
deleteJobFiles
- Specified by:
deleteJobFiles
in interfaceIBulkDataImportSvc
-