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
-
Field Summary
Modifier and TypeFieldDescriptionprotected ITermCodeSystemDao
protected ITermCodeSystemVersionDao
protected ITermConceptDao
protected org.springframework.transaction.PlatformTransactionManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConceptLinkToStorageQueue
(TermConceptParentChildLink theConceptLink) void
addConceptMapsToStorageQueue
(List<org.hl7.fhir.r4.model.ConceptMap> theConceptMaps) void
addConceptToStorageQueue
(TermConcept theConcept) void
addValueSetsToStorageQueue
(List<org.hl7.fhir.r4.model.ValueSet> theValueSets) void
This method is present only for unit tests, do not call from client codevoid
deleteCodeSystemForResource
(ResourceTable theCodeSystemToDelete) void
deleteCodeSystemVersion
(TermCodeSystemVersion theCodeSystemVersion) void
Only to be used from tests - Disallow test timeouts on deferred tasksboolean
boolean
isStorageQueueEmpty
(boolean theIncludeExecutingJobs) If you are calling this in a loop or something similar, consider the impact of setting theIncludeExecutingJobs to true.void
void
notifyJobEnded
(String theId) void
This is mostly here for unit tests - Saves any and all deferred concepts and linksvoid
void
scheduleJobs
(ca.uhn.fhir.jpa.model.sched.ISchedulerService theSchedulerService) void
setProcessDeferred
(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, wait
Methods 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:
addConceptToStorageQueue
in interfaceITermDeferredStorageSvc
-
addConceptLinkToStorageQueue
- Specified by:
addConceptLinkToStorageQueue
in interfaceITermDeferredStorageSvc
-
addConceptMapsToStorageQueue
- Specified by:
addConceptMapsToStorageQueue
in interfaceITermDeferredStorageSvc
-
addValueSetsToStorageQueue
- Specified by:
addValueSetsToStorageQueue
in interfaceITermDeferredStorageSvc
-
deleteCodeSystemForResource
- Specified by:
deleteCodeSystemForResource
in interfaceITermDeferredStorageSvc
-
setProcessDeferred
Description copied from interface:ITermDeferredStorageSvc
This is mostly for unit tests - we can disable processing of deferred concepts by changing this flag- Specified by:
setProcessDeferred
in interfaceITermDeferredStorageSvc
-
clearDeferred
This method is present only for unit tests, do not call from client code -
notifyJobEnded
- Specified by:
notifyJobEnded
in interfaceITermDeferredStorageSvc
-
saveAllDeferred
Description copied from interface:ITermDeferredStorageSvc
This is mostly here for unit tests - Saves any and all deferred concepts and links- Specified by:
saveAllDeferred
in interfaceITermDeferredStorageSvc
-
saveDeferred
- Specified by:
saveDeferred
in interfaceITermDeferredStorageSvc
-
isStorageQueueEmpty
Description copied from interface:ITermDeferredStorageSvc
If 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:
isStorageQueueEmpty
in interfaceITermDeferredStorageSvc
-
isJobsExecuting
- Specified by:
isJobsExecuting
in interfaceITermDeferredStorageSvc
-
disallowDeferredTaskTimeout
Description copied from interface:ITermDeferredStorageSvc
Only to be used from tests - Disallow test timeouts on deferred tasks- Specified by:
disallowDeferredTaskTimeout
in interfaceITermDeferredStorageSvc
-
logQueueForUnitTest
- Specified by:
logQueueForUnitTest
in interfaceITermDeferredStorageSvc
-
deleteCodeSystemVersion
- Specified by:
deleteCodeSystemVersion
in interfaceITermDeferredStorageSvc
-
scheduleJobs
- Specified by:
scheduleJobs
in interfaceca.uhn.fhir.jpa.model.sched.IHasScheduledJobs
-
toString
-