Package com.ibm.fhir.bucket.interop
Class InteropWorkload
- java.lang.Object
-
- com.ibm.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 Summary
Constructors Constructor Description InteropWorkload(DataAccess dataAccess, IPatientScenario patientScenario, int maxConcurrentRequests, int patientBufferSize, int bufferRecycleCount)Public constructor
-
Method Summary
All 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
-
InteropWorkload
public InteropWorkload(DataAccess dataAccess, IPatientScenario patientScenario, int maxConcurrentRequests, int patientBufferSize, int bufferRecycleCount)
Public constructor- Parameters:
dataAccess-patientScenario-maxConcurrentRequests-patientBufferSize-bufferRecycleCount-
-
-
Method Detail
-
init
public void init()
Start the main loop
-
signalStop
public void signalStop()
-
waitForStop
public void waitForStop()
Wait until things are stopped
-
mainLoop
protected void mainLoop()
The main loop in this object which starts wheninit()is called and will run until#shutdown().
-
-