Class ServerDrivenReindexOperation
- java.lang.Object
-
- org.linuxforhealth.fhir.bucket.reindex.DriveReindexOperation
-
- org.linuxforhealth.fhir.bucket.reindex.ServerDrivenReindexOperation
-
public class ServerDrivenReindexOperation extends DriveReindexOperation
Drives the $reindex custom operation in parallel. Each thread keeps running until the OperationOutcome indicates that no work remains to be processed.
-
-
Constructor Summary
Constructors Constructor Description ServerDrivenReindexOperation(FHIRBucketClient fhirClient, int maxConcurrentRequests, java.lang.String tstampParam, int resourceCountParam, boolean force)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Start the main loopvoid
monitorLoop()
The main monitor loop.void
signalStop()
Program is stopping, so tell the threads they can stop toovoid
waitForStop()
Wait until things are stopped-
Methods inherited from class org.linuxforhealth.fhir.bucket.reindex.DriveReindexOperation
intValue, str
-
-
-
-
Constructor Detail
-
ServerDrivenReindexOperation
public ServerDrivenReindexOperation(FHIRBucketClient fhirClient, int maxConcurrentRequests, java.lang.String tstampParam, int resourceCountParam, boolean force)
Public constructor- Parameters:
client
- the FHIR clientmaxConcurrentRequests
- the number of threads to spin uptstampParam
-resourceCountParam
-force
-
-
-
Method Detail
-
init
public void init()
Start the main loop- Specified by:
init
in classDriveReindexOperation
-
monitorLoop
public void monitorLoop()
The main monitor loop.
-
signalStop
public void signalStop()
Program is stopping, so tell the threads they can stop too- Specified by:
signalStop
in classDriveReindexOperation
-
waitForStop
public void waitForStop()
Wait until things are stopped- Specified by:
waitForStop
in classDriveReindexOperation
-
-