Class InteropWorkload
- java.lang.Object
- 
- org.linuxforhealth.fhir.bucket.interop.InteropWorkload
 
- 
 public class InteropWorkload extends java.lang.ObjectVery simple emulation of a possible interop workload. Adds some random read activity to the system (FHIR server/database) so we can measure the impact this has on ingestion and visa versa.
- 
- 
Constructor SummaryConstructors Constructor Description InteropWorkload(DataAccess dataAccess, IPatientScenario patientScenario, int maxConcurrentRequests, int patientBufferSize, int bufferRecycleCount)Public constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()Start the main loopprotected voidmainLoop()The main loop in this object which starts wheninit()is called and will run until#shutdown().voidsignalStop()voidwaitForStop()Wait until things are stopped
 
- 
- 
- 
Constructor Detail- 
InteropWorkloadpublic InteropWorkload(DataAccess dataAccess, IPatientScenario patientScenario, int maxConcurrentRequests, int patientBufferSize, int bufferRecycleCount) Public constructor- Parameters:
- dataAccess-
- patientScenario-
- maxConcurrentRequests-
- patientBufferSize-
- bufferRecycleCount-
 
 
- 
 - 
Method Detail- 
initpublic void init() Start the main loop
 - 
signalStoppublic void signalStop() 
 - 
waitForStoppublic void waitForStop() Wait until things are stopped
 - 
mainLoopprotected void mainLoop() The main loop in this object which starts wheninit()is called and will run until#shutdown().
 
- 
 
-