
Package ca.uhn.fhir.jpa.term
Class TermDeferredStorageSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.term.TermDeferredStorageSvcImpl
- All Implemented Interfaces:
ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs,ITermDeferredStorageSvc
public class TermDeferredStorageSvcImpl
extends Object
implements ITermDeferredStorageSvc, ca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ITermCodeSystemDaoprotected ITermCodeSystemVersionDaoprotected ITermConceptDaoprotected org.springframework.transaction.PlatformTransactionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConceptLinkToStorageQueue(TermConceptParentChildLink theConceptLink) voidaddConceptMapsToStorageQueue(List<org.hl7.fhir.r4.model.ConceptMap> theConceptMaps) voidaddConceptToStorageQueue(TermConcept theConcept) voidaddValueSetsToStorageQueue(List<org.hl7.fhir.r4.model.ValueSet> theValueSets) voidThis method is present only for unit tests, do not call from client codevoiddeleteCodeSystemForResource(ResourceTable theCodeSystemToDelete) voiddeleteCodeSystemVersion(TermCodeSystemVersion theCodeSystemVersion) voidOnly to be used from tests - Disallow test timeouts on deferred tasksbooleanbooleanisStorageQueueEmpty(boolean theIncludeExecutingJobs) If you are calling this in a loop or something similar, consider the impact of setting theIncludeExecutingJobs to true.voidvoidnotifyJobEnded(String theId) voidThis is mostly here for unit tests - Saves any and all deferred concepts and linksvoidvoidscheduleJobs(ca.uhn.fhir.jpa.model.sched.ISchedulerService theSchedulerService) voidsetProcessDeferred(boolean theProcessDeferred) This is mostly for unit tests - we can disable processing of deferred concepts by changing this flagtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.fhir.jpa.term.api.ITermDeferredStorageSvc
isStorageQueueEmpty
-
Field Details
-
myConceptDao
-
myCodeSystemDao
-
myCodeSystemVersionDao
-
myTransactionMgr
-
-
Constructor Details
-
TermDeferredStorageSvcImpl
public TermDeferredStorageSvcImpl()
-
-
Method Details
-
addConceptToStorageQueue
- Specified by:
addConceptToStorageQueuein interfaceITermDeferredStorageSvc
-
addConceptLinkToStorageQueue
- Specified by:
addConceptLinkToStorageQueuein interfaceITermDeferredStorageSvc
-
addConceptMapsToStorageQueue
- Specified by:
addConceptMapsToStorageQueuein interfaceITermDeferredStorageSvc
-
addValueSetsToStorageQueue
- Specified by:
addValueSetsToStorageQueuein interfaceITermDeferredStorageSvc
-
deleteCodeSystemForResource
- Specified by:
deleteCodeSystemForResourcein interfaceITermDeferredStorageSvc
-
setProcessDeferred
Description copied from interface:ITermDeferredStorageSvcThis is mostly for unit tests - we can disable processing of deferred concepts by changing this flag- Specified by:
setProcessDeferredin interfaceITermDeferredStorageSvc
-
clearDeferred
This method is present only for unit tests, do not call from client code -
notifyJobEnded
- Specified by:
notifyJobEndedin interfaceITermDeferredStorageSvc
-
saveAllDeferred
Description copied from interface:ITermDeferredStorageSvcThis is mostly here for unit tests - Saves any and all deferred concepts and links- Specified by:
saveAllDeferredin interfaceITermDeferredStorageSvc
-
saveDeferred
- Specified by:
saveDeferredin interfaceITermDeferredStorageSvc
-
isStorageQueueEmpty
Description copied from interface:ITermDeferredStorageSvcIf you are calling this in a loop or something similar, consider the impact of setting theIncludeExecutingJobs to true. When that parameter is set to true, each call to this method results in a database lookup!- Specified by:
isStorageQueueEmptyin interfaceITermDeferredStorageSvc
-
isJobsExecuting
- Specified by:
isJobsExecutingin interfaceITermDeferredStorageSvc
-
disallowDeferredTaskTimeout
Description copied from interface:ITermDeferredStorageSvcOnly to be used from tests - Disallow test timeouts on deferred tasks- Specified by:
disallowDeferredTaskTimeoutin interfaceITermDeferredStorageSvc
-
logQueueForUnitTest
- Specified by:
logQueueForUnitTestin interfaceITermDeferredStorageSvc
-
deleteCodeSystemVersion
- Specified by:
deleteCodeSystemVersionin interfaceITermDeferredStorageSvc
-
scheduleJobs
- Specified by:
scheduleJobsin interfaceca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-
toString
-