Package com.ibm.fhir.bucket.interop
Class BenchWorkload
- java.lang.Object
-
- com.ibm.fhir.bucket.interop.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 loopprotected void
mainLoop()
The main loop in this object which starts wheninit()
is called and will run until#shutdown()
.void
signalStop()
void
waitForStop()
Wait until things are stopped
-
-
-
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 wheninit()
is called and will run until#shutdown()
.
-
-