Package com.ibm.fhir.bucket.scanner
Class COSReader
- java.lang.Object
-
- com.ibm.fhir.bucket.scanner.BaseFileReader
-
- com.ibm.fhir.bucket.scanner.COSReader
-
public class COSReader extends BaseFileReader
Grabs work from the bucket database and dispatches items to the thread pool.
-
-
Constructor Summary
Constructors Constructor Description COSReader(java.util.concurrent.ExecutorService commonPool, FileType fileType, COSClient client, java.util.function.Consumer<ResourceEntry> resourceHandler, int maxInflight, DataAccess da, boolean incremental, int recycleSeconds, boolean incrementalExact, double bundleCostFactor, java.util.Collection<BucketPath> bucketPaths)Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidprocessThr(BucketLoaderJob job)Process this job in a thread-pool thread-
Methods inherited from class com.ibm.fhir.bucket.scanner.BaseFileReader
init, mainAllocationLoop, markJobDone, processJSON, processNDJSON, signalStop, validateInput, waitForStop
-
-
-
-
Constructor Detail
-
COSReader
public COSReader(java.util.concurrent.ExecutorService commonPool, FileType fileType, COSClient client, java.util.function.Consumer<ResourceEntry> resourceHandler, int maxInflight, DataAccess da, boolean incremental, int recycleSeconds, boolean incrementalExact, double bundleCostFactor, java.util.Collection<BucketPath> bucketPaths)Public constructor- Parameters:
commonPool- thread pool shared by the readers and request handlerfileType- the file type this read is responsible for processingclient-resourceHandler-poolSize-da-incremental-recycleSeconds-
-
-
Method Detail
-
processThr
protected void processThr(BucketLoaderJob job)
Description copied from class:BaseFileReaderProcess this job in a thread-pool thread- Specified by:
processThrin classBaseFileReader
-
-