Package com.ibm.fhir.bucket.scanner
Class FHIRClientResourceProcessor
- java.lang.Object
 - 
- com.ibm.fhir.bucket.scanner.FHIRClientResourceProcessor
 
 
- 
- All Implemented Interfaces:
 IResourceEntryProcessor
public class FHIRClientResourceProcessor extends java.lang.Object implements IResourceEntryProcessor
Calls the FHIR REST API to create resources 
- 
- 
Constructor Summary
Constructors Constructor Description FHIRClientResourceProcessor(FHIRBucketClient fc, DataAccess dataAccess)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(ResourceEntry re)Process the resource entry (usually called from within a thread-poolprotected voidprocessBadRequest(ResourceEntry re, FhirServerResponse response)Record the error in the database 
 - 
 
- 
- 
Constructor Detail
- 
FHIRClientResourceProcessor
public FHIRClientResourceProcessor(FHIRBucketClient fc, DataAccess dataAccess)
Public constructor- Parameters:
 poolSize-
 
 - 
 
- 
Method Detail
- 
process
public void process(ResourceEntry re)
Description copied from interface:IResourceEntryProcessorProcess the resource entry (usually called from within a thread-pool- Specified by:
 processin interfaceIResourceEntryProcessor
 
- 
processBadRequest
protected void processBadRequest(ResourceEntry re, FhirServerResponse response)
Record the error in the database- Parameters:
 re-response-
 
 - 
 
 -