Class AbstractSystemConfigurationImpl
- java.lang.Object
- 
- com.ibm.fhir.operation.bulkdata.config.impl.AbstractSystemConfigurationImpl
 
- 
- All Implemented Interfaces:
- ConfigurationAdapter
 - Direct Known Subclasses:
- V2ConfigurationImpl
 
 public abstract class AbstractSystemConfigurationImpl extends java.lang.Object implements ConfigurationAdapter Common between the Legacy and V2 Configuration and Implementation Also the system defaults.
- 
- 
Field SummaryFields Modifier and Type Field Description protected static intDEFAULT_AZURE_OBJ_MAX_RESOURCE_COUNTprotected static intDEFAULT_AZURE_OBJ_MAX_SIZE_MBprotected static intDEFAULT_COS_OBJ_MAX_RESOURCE_COUNTprotected static intDEFAULT_COS_OBJ_MAX_SIZE_MBprotected static intDEFAULT_FILE_MAX_RESOURCE_COUNTprotected static intDEFAULT_FILE_MAX_SIZE_MBprotected static intDEFAULT_PAGE_SIZEstatic intIMPORT_INFLY_RATE_NUMOFFHIRRESOURCESstatic intIMPORT_NUMOFFHIRRESOURCES_PERREAD
 - 
Constructor SummaryConstructors Constructor Description AbstractSystemConfigurationImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()booleanenableSkippableUpdates()java.lang.StringgetApplicationName()get the application name used in the javabatch framework.java.lang.StringgetBaseFileLocation(java.lang.String provider)get the base file locationintgetCoreAzureObjectResourceCountThreshold()The number of resources at which to finish writing to a given AzureBlob object,longgetCoreAzureObjectSizeThreshold()The size (in bytes) at which to finish writing to a given AzureBlob object,java.lang.StringgetCoreBatchIdEncryptionKey()get core batch id encryption key for the job id that is returnedintgetCoreCosObjectResourceCountThreshold()The number of resources at which to finish writing to a given COS object, or 0 to indicate that there is no resource count threshold.longgetCoreCosObjectSizeThreshold()The size (in bytes) at which to finish writing to a given COS object, or 0 to indicate that there is no object size threshold.intgetCoreCosPartUploadTriggerSize()The size (in bytes) at which to begin writing a part for a COS multi-part upload.intgetCoreCosRequestTimeout()intgetCoreCosSocketTimeout()booleangetCoreCosTcpKeepAlive()get the COS TCP Keep alive setting (true or false)longgetCoreFastMaxReadTimeout()get the number ms to read payloads from the persistence layer before stopping to checkpointintgetCoreFileResourceCountThreshold()The number of resources at which to finish writing to a given file, or 0 to indicate that there is no resource count threshold.longgetCoreFileSizeThreshold()The size (in bytes) at which to finish writing to a given file, or 0 to indicate that there is no file size threshold.intgetCoreFileWriteTriggerSize()The size (in bytes) to buffer before writing to file.java.lang.StringgetCoreIamEndpoint()get the core iam endpoint (it is set one time for the whole system)intgetCoreMaxPartitions()get core max partitionsintgetCorePageSize()get the core page size used in Search.java.lang.StringgetDefaultExportProvider()get default export providerjava.lang.StringgetDefaultImportProvider()get default import providerbyte[]getEndOfFileDelimiter(java.lang.String provider)intgetImportInflyRateNumberOfFhirResources(java.lang.String provider)the infly rate for the importintgetImportNumberOfFhirResourcesPerRead(java.lang.String provider)get the import fhir resources per readintgetInputLimit()limit of inputsjava.lang.StringgetJobXMLName()get the job xml used in the javabatch framework.java.lang.StringgetModuleName()get the module name used in javabatch framework.java.lang.StringgetOperationOutcomeProvider(java.lang.String provider)get the OperationOutcome providerintgetPresignedUrlExpiry()the expiry time of the generated presigned urls.S3HostStylegetS3HostStyleByStorageProvider(java.lang.String provider)gets the storage typejava.lang.StringgetStorageProviderAuthTypeConnectionString(java.lang.String provider)get the connection string for the azure type account with a connection string.StorageTypegetStorageProviderStorageType(java.lang.String provider)java.lang.StringgetTenant()gets a tenant in the current contextbooleanhasStorageProvider(java.lang.String storageProvider)booleanisStorageProviderAuthTypeConnectionString(java.lang.String provider)checks the provider to see if this is an azure connection string.booleanisStorageProviderHmacPresigned(java.lang.String provider)booleanisStorageTypeAllowed(java.lang.String storageType)checks if thevoidregisterRequestContext(java.lang.String tenantId, java.lang.String datastoreId, java.lang.String incomingUrl)creates a uniform request context for the $import and $export operations.booleanshouldCoreApiBatchTrustAll()booleanshouldCoreCosUseServerTruststore()- 
Methods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.ibm.fhir.operation.bulkdata.config.ConfigurationAdaptergetCoreApiBatchPassword, getCoreApiBatchTrustStore, getCoreApiBatchTrustStorePassword, getCoreApiBatchUrl, getCoreApiBatchUser, getStorageProviderAuthType, getStorageProviderAuthTypeHmacAccessKey, getStorageProviderAuthTypeHmacSecretKey, getStorageProviderAuthTypeIamApiKey, getStorageProviderAuthTypeIamApiResourceInstanceId, getStorageProviderAuthTypePassword, getStorageProviderAuthTypeUsername, getStorageProviderBucketName, getStorageProviderEndpointExternal, getStorageProviderEndpointInternal, getStorageProviderLocation, getStorageProviderType, getStorageProviderUsesRequestAccessToken, getStorageProviderValidBaseUrls, isFastExport, isStorageProviderAuthTypeBasic, isStorageProviderAuthTypeHmac, isStorageProviderAuthTypeIam, legacy, shouldStorageProviderAllowAllResources, shouldStorageProviderCheckDuplicate, shouldStorageProviderCollectOperationOutcomes, shouldStorageProviderCreate, shouldStorageProviderValidateBaseUrl, shouldStorageProviderValidateResources
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_COS_OBJ_MAX_SIZE_MBprotected static final int DEFAULT_COS_OBJ_MAX_SIZE_MB - See Also:
- Constant Field Values
 
 - 
DEFAULT_COS_OBJ_MAX_RESOURCE_COUNTprotected static final int DEFAULT_COS_OBJ_MAX_RESOURCE_COUNT - See Also:
- Constant Field Values
 
 - 
DEFAULT_AZURE_OBJ_MAX_SIZE_MBprotected static final int DEFAULT_AZURE_OBJ_MAX_SIZE_MB - See Also:
- Constant Field Values
 
 - 
DEFAULT_AZURE_OBJ_MAX_RESOURCE_COUNTprotected static final int DEFAULT_AZURE_OBJ_MAX_RESOURCE_COUNT - See Also:
- Constant Field Values
 
 - 
DEFAULT_FILE_MAX_SIZE_MBprotected static final int DEFAULT_FILE_MAX_SIZE_MB - See Also:
- Constant Field Values
 
 - 
DEFAULT_FILE_MAX_RESOURCE_COUNTprotected static final int DEFAULT_FILE_MAX_RESOURCE_COUNT - See Also:
- Constant Field Values
 
 - 
DEFAULT_PAGE_SIZEprotected static final int DEFAULT_PAGE_SIZE - See Also:
- Constant Field Values
 
 - 
IMPORT_NUMOFFHIRRESOURCES_PERREADpublic static final int IMPORT_NUMOFFHIRRESOURCES_PERREAD - See Also:
- Constant Field Values
 
 - 
IMPORT_INFLY_RATE_NUMOFFHIRRESOURCESpublic static final int IMPORT_INFLY_RATE_NUMOFFHIRRESOURCES - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCoreCosTcpKeepAlivepublic boolean getCoreCosTcpKeepAlive() Description copied from interface:ConfigurationAdapterget the COS TCP Keep alive setting (true or false)- Specified by:
- getCoreCosTcpKeepAlivein interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreMaxPartitionspublic int getCoreMaxPartitions() Description copied from interface:ConfigurationAdapterget core max partitions- Specified by:
- getCoreMaxPartitionsin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreBatchIdEncryptionKeypublic java.lang.String getCoreBatchIdEncryptionKey() Description copied from interface:ConfigurationAdapterget core batch id encryption key for the job id that is returned- Specified by:
- getCoreBatchIdEncryptionKeyin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreCosSocketTimeoutpublic int getCoreCosSocketTimeout() - Specified by:
- getCoreCosSocketTimeoutin interface- ConfigurationAdapter
- Returns:
- the timeout for the s3 socket
 
 - 
getInputLimitpublic int getInputLimit() Description copied from interface:ConfigurationAdapterlimit of inputs- Specified by:
- getInputLimitin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreCosRequestTimeoutpublic int getCoreCosRequestTimeout() - Specified by:
- getCoreCosRequestTimeoutin interface- ConfigurationAdapter
- Returns:
- the timeout for the s3 request
 
 - 
shouldCoreCosUseServerTruststorepublic boolean shouldCoreCosUseServerTruststore() - Specified by:
- shouldCoreCosUseServerTruststorein interface- ConfigurationAdapter
- Returns:
- the system wide setting for using the server truststore.
 
 - 
getCoreCosPartUploadTriggerSizepublic int getCoreCosPartUploadTriggerSize() Description copied from interface:ConfigurationAdapterThe size (in bytes) at which to begin writing a part for a COS multi-part upload.- Specified by:
- getCoreCosPartUploadTriggerSizein interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreCosObjectSizeThresholdpublic long getCoreCosObjectSizeThreshold() Description copied from interface:ConfigurationAdapterThe size (in bytes) at which to finish writing to a given COS object, or 0 to indicate that there is no object size threshold.- Specified by:
- getCoreCosObjectSizeThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreCosObjectResourceCountThresholdpublic int getCoreCosObjectResourceCountThreshold() Description copied from interface:ConfigurationAdapterThe number of resources at which to finish writing to a given COS object, or 0 to indicate that there is no resource count threshold.- Specified by:
- getCoreCosObjectResourceCountThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreAzureObjectSizeThresholdpublic long getCoreAzureObjectSizeThreshold() Description copied from interface:ConfigurationAdapterThe size (in bytes) at which to finish writing to a given AzureBlob object,- Specified by:
- getCoreAzureObjectSizeThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreAzureObjectResourceCountThresholdpublic int getCoreAzureObjectResourceCountThreshold() Description copied from interface:ConfigurationAdapterThe number of resources at which to finish writing to a given AzureBlob object,- Specified by:
- getCoreAzureObjectResourceCountThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreFileWriteTriggerSizepublic int getCoreFileWriteTriggerSize() Description copied from interface:ConfigurationAdapterThe size (in bytes) to buffer before writing to file.- Specified by:
- getCoreFileWriteTriggerSizein interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreFileSizeThresholdpublic long getCoreFileSizeThreshold() Description copied from interface:ConfigurationAdapterThe size (in bytes) at which to finish writing to a given file, or 0 to indicate that there is no file size threshold.- Specified by:
- getCoreFileSizeThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreFileResourceCountThresholdpublic int getCoreFileResourceCountThreshold() Description copied from interface:ConfigurationAdapterThe number of resources at which to finish writing to a given file, or 0 to indicate that there is no resource count threshold.- Specified by:
- getCoreFileResourceCountThresholdin interface- ConfigurationAdapter
- Returns:
 
 - 
getApplicationNamepublic java.lang.String getApplicationName() Description copied from interface:ConfigurationAdapterget the application name used in the javabatch framework.- Specified by:
- getApplicationNamein interface- ConfigurationAdapter
- Returns:
 
 - 
getModuleNamepublic java.lang.String getModuleName() Description copied from interface:ConfigurationAdapterget the module name used in javabatch framework.- Specified by:
- getModuleNamein interface- ConfigurationAdapter
- Returns:
 
 - 
getJobXMLNamepublic java.lang.String getJobXMLName() Description copied from interface:ConfigurationAdapterget the job xml used in the javabatch framework.- Specified by:
- getJobXMLNamein interface- ConfigurationAdapter
- Returns:
 
 - 
registerRequestContextpublic void registerRequestContext(java.lang.String tenantId, java.lang.String datastoreId, java.lang.String incomingUrl) throws FHIRExceptionDescription copied from interface:ConfigurationAdaptercreates a uniform request context for the $import and $export operations.- Specified by:
- registerRequestContextin interface- ConfigurationAdapter
- Throws:
- FHIRException
 
 - 
enabledpublic boolean enabled() - Specified by:
- enabledin interface- ConfigurationAdapter
- Returns:
- the status of the bulkdata feature, enabled = true, disabled = false
 
 - 
getCorePageSizepublic int getCorePageSize() Description copied from interface:ConfigurationAdapterget the core page size used in Search.- Specified by:
- getCorePageSizein interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreIamEndpointpublic java.lang.String getCoreIamEndpoint() Description copied from interface:ConfigurationAdapterget the core iam endpoint (it is set one time for the whole system)- Specified by:
- getCoreIamEndpointin interface- ConfigurationAdapter
- Returns:
 
 - 
getCoreFastMaxReadTimeoutpublic long getCoreFastMaxReadTimeout() Description copied from interface:ConfigurationAdapterget the number ms to read payloads from the persistence layer before stopping to checkpoint- Specified by:
- getCoreFastMaxReadTimeoutin interface- ConfigurationAdapter
- Returns:
 
 - 
isStorageTypeAllowedpublic boolean isStorageTypeAllowed(java.lang.String storageType) Description copied from interface:ConfigurationAdapterchecks if the- Specified by:
- isStorageTypeAllowedin interface- ConfigurationAdapter
- Returns:
 
 - 
getStorageProviderStorageTypepublic StorageType getStorageProviderStorageType(java.lang.String provider) - Specified by:
- getStorageProviderStorageTypein interface- ConfigurationAdapter
- Parameters:
- provider- of the storage type
- Returns:
 
 - 
getTenantpublic java.lang.String getTenant() Description copied from interface:ConfigurationAdaptergets a tenant in the current context- Specified by:
- getTenantin interface- ConfigurationAdapter
- Returns:
 
 - 
getBaseFileLocationpublic java.lang.String getBaseFileLocation(java.lang.String provider) Description copied from interface:ConfigurationAdapterget the base file location- Specified by:
- getBaseFileLocationin interface- ConfigurationAdapter
- Returns:
 
 - 
isStorageProviderHmacPresignedpublic boolean isStorageProviderHmacPresigned(java.lang.String provider) - Specified by:
- isStorageProviderHmacPresignedin interface- ConfigurationAdapter
- Returns:
 
 - 
shouldCoreApiBatchTrustAllpublic boolean shouldCoreApiBatchTrustAll() - Specified by:
- shouldCoreApiBatchTrustAllin interface- ConfigurationAdapter
- Returns:
- should we trust the calls to the backend
 
 - 
getEndOfFileDelimiterpublic byte[] getEndOfFileDelimiter(java.lang.String provider) - Specified by:
- getEndOfFileDelimiterin interface- ConfigurationAdapter
- Returns:
 
 - 
getImportNumberOfFhirResourcesPerReadpublic int getImportNumberOfFhirResourcesPerRead(java.lang.String provider) Description copied from interface:ConfigurationAdapterget the import fhir resources per read- Specified by:
- getImportNumberOfFhirResourcesPerReadin interface- ConfigurationAdapter
- Returns:
 
 - 
getImportInflyRateNumberOfFhirResourcespublic int getImportInflyRateNumberOfFhirResources(java.lang.String provider) Description copied from interface:ConfigurationAdapterthe infly rate for the import- Specified by:
- getImportInflyRateNumberOfFhirResourcesin interface- ConfigurationAdapter
- Returns:
 
 - 
getPresignedUrlExpirypublic int getPresignedUrlExpiry() Description copied from interface:ConfigurationAdapterthe expiry time of the generated presigned urls.- Specified by:
- getPresignedUrlExpiryin interface- ConfigurationAdapter
- Returns:
 
 - 
getDefaultImportProviderpublic java.lang.String getDefaultImportProvider() Description copied from interface:ConfigurationAdapterget default import provider- Specified by:
- getDefaultImportProviderin interface- ConfigurationAdapter
- Returns:
 
 - 
getDefaultExportProviderpublic java.lang.String getDefaultExportProvider() Description copied from interface:ConfigurationAdapterget default export provider- Specified by:
- getDefaultExportProviderin interface- ConfigurationAdapter
- Returns:
 
 - 
getOperationOutcomeProviderpublic java.lang.String getOperationOutcomeProvider(java.lang.String provider) Description copied from interface:ConfigurationAdapterget the OperationOutcome provider- Specified by:
- getOperationOutcomeProviderin interface- ConfigurationAdapter
- Parameters:
- provider- the storage provider
- Returns:
 
 - 
hasStorageProviderpublic boolean hasStorageProvider(java.lang.String storageProvider) - Specified by:
- hasStorageProviderin interface- ConfigurationAdapter
- Returns:
- True, iff the provider exists in the configuration.
 
 - 
getS3HostStyleByStorageProviderpublic S3HostStyle getS3HostStyleByStorageProvider(java.lang.String provider) Description copied from interface:ConfigurationAdaptergets the storage type- Specified by:
- getS3HostStyleByStorageProviderin interface- ConfigurationAdapter
- Returns:
 
 - 
enableSkippableUpdatespublic boolean enableSkippableUpdates() - Specified by:
- enableSkippableUpdatesin interface- ConfigurationAdapter
- Returns:
- the status of skippable updates
 
 - 
getStorageProviderAuthTypeConnectionStringpublic java.lang.String getStorageProviderAuthTypeConnectionString(java.lang.String provider) Description copied from interface:ConfigurationAdapterget the connection string for the azure type account with a connection string.- Specified by:
- getStorageProviderAuthTypeConnectionStringin interface- ConfigurationAdapter
- Returns:
 
 - 
isStorageProviderAuthTypeConnectionStringpublic boolean isStorageProviderAuthTypeConnectionString(java.lang.String provider) Description copied from interface:ConfigurationAdapterchecks the provider to see if this is an azure connection string.- Specified by:
- isStorageProviderAuthTypeConnectionStringin interface- ConfigurationAdapter
- Returns:
- true, if connectionString
 
 
- 
 
-