Package com.ibm.fhir.bucket.reindex
Class DriveReindexOperation
- java.lang.Object
-
- com.ibm.fhir.bucket.reindex.DriveReindexOperation
-
- Direct Known Subclasses:
ClientDrivenReindexOperation,ServerDrivenReindexOperation
public abstract class DriveReindexOperation extends Object
Drives the $reindex custom operation in parallel.
-
-
Constructor Summary
Constructors Constructor Description DriveReindexOperation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidinit()Start the main loop.protected static IntegerintValue(int val)Wrapper for integers.protected voidsafeSleep(long ms)Sleep for the given number of milliseconds, or until interrupted.abstract voidsignalStop()Program is stopping, so tell the threads they can stop, too.protected static Stringstr(String str)Wrapper for strings.abstract voidwaitForStop()Wait until things are stopped.
-
-
-
Method Detail
-
init
public abstract void init()
Start the main loop.
-
signalStop
public abstract void signalStop()
Program is stopping, so tell the threads they can stop, too.
-
waitForStop
public abstract void waitForStop()
Wait until things are stopped.
-
safeSleep
protected void safeSleep(long ms)
Sleep for the given number of milliseconds, or until interrupted.- Parameters:
ms- milliseconds
-
str
protected static String str(String str)
Wrapper for strings.- Parameters:
str- the string- Returns:
- the string
-
intValue
protected static Integer intValue(int val)
Wrapper for integers.- Parameters:
val- the integer- Returns:
- the integer
-
-