Class InteropWorkload


  • public class InteropWorkload
    extends java.lang.Object
    Very 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
      void init()
      Start the main loop
      protected void mainLoop()
      The main loop in this object which starts when init() is called and will run until #shutdown().
      void signalStop()  
      void waitForStop()
      Wait until things are stopped
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 when init() is called and will run until #shutdown().