Class S3Preflight
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.bulkdata.config.preflight.impl.NopPreflight
-
- org.linuxforhealth.fhir.operation.bulkdata.config.preflight.impl.S3Preflight
-
- All Implemented Interfaces:
Preflight
public class S3Preflight extends NopPreflight
Checks the S3 Configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
S3Preflight.BucketHostS3Callable
-
Constructor Summary
Constructors Constructor Description S3Preflight(java.lang.String source, java.lang.String outcome, java.util.List<Input> inputs, OperationConstants.ExportType exportType, java.lang.String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkStorageAllowed(StorageDetail storageDetail)
Checks the storage type is allowed.void
preflight()
The preflight execution checks access to the Source,Outcome.void
preflight(boolean write)
checks the preflight execution for a conditional-writecom.ibm.cloud.objectstorage.services.s3.AmazonS3
validate(java.lang.String source)
validates the s3 is properly configured.-
Methods inherited from class org.linuxforhealth.fhir.operation.bulkdata.config.preflight.impl.NopPreflight
getExportType, getFormat, getInputs, getOutcome, getSource
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linuxforhealth.fhir.operation.bulkdata.config.preflight.Preflight
checkParquet
-
-
-
-
Constructor Detail
-
S3Preflight
public S3Preflight(java.lang.String source, java.lang.String outcome, java.util.List<Input> inputs, OperationConstants.ExportType exportType, java.lang.String format)
-
-
Method Detail
-
preflight
public void preflight() throws FHIROperationException
Description copied from interface:Preflight
The preflight execution checks access to the Source,Outcome.- Specified by:
preflight
in interfacePreflight
- Overrides:
preflight
in classNopPreflight
- Throws:
FHIROperationException
-
preflight
public void preflight(boolean write) throws FHIROperationException
Description copied from interface:Preflight
checks the preflight execution for a conditional-write- Throws:
FHIROperationException
-
validate
public com.ibm.cloud.objectstorage.services.s3.AmazonS3 validate(java.lang.String source) throws FHIROperationException
validates the s3 is properly configured.- Parameters:
source
-- Returns:
- AmazonS3
- Throws:
FHIROperationException
-
checkStorageAllowed
public void checkStorageAllowed(StorageDetail storageDetail) throws FHIROperationException
Description copied from interface:Preflight
Checks the storage type is allowed.- Specified by:
checkStorageAllowed
in interfacePreflight
- Overrides:
checkStorageAllowed
in classNopPreflight
- Throws:
FHIROperationException
-
-