Class BenchWorkload


  • public class BenchWorkload
    extends java.lang.Object
    Calls the $bench custom operator which applies some heavy CPU load to the target system to help determine how much CPU capacity is available on a particular node (and allow relative comparisons with other systems. This can be useful when trying to identify bottlenecks in a given system. In this case, no database work is involved and the network traffic to invoke the operation is light, leaving CPU as the main component.
    • Constructor Summary

      Constructors 
      Constructor Description
      BenchWorkload​(FHIRBucketClient client, int maxConcurrentRequests, int benchThreads, int benchSize)
      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

      • BenchWorkload

        public BenchWorkload​(FHIRBucketClient client,
                             int maxConcurrentRequests,
                             int benchThreads,
                             int benchSize)
        Public constructor
        Parameters:
        client -
        maxConcurrentRequests -
        benchThreads -
        benchSize -
    • 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().