Package ca.uhn.fhir.jpa.search.elastic
Class ElasticsearchHibernatePropertiesBuilder
java.lang.Object
ca.uhn.fhir.jpa.search.elastic.ElasticsearchHibernatePropertiesBuilder
This class is used to inject appropriate properties into a hibernate
Properties object being used to create an entitymanager for a HAPI
FHIR JPA server. This class also injects a starter template into the ES cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Properties theProperties) setAwsRegion
(String theAwsRegion) If this is set to `true`, the AWS region will be used to configure the AWS client.setDebugIndexSyncStrategy
(String theSyncStrategy) setDebugPrettyPrintJsonLog
(boolean theDebugPrettyPrintJsonLog) setIndexManagementWaitTimeoutMillis
(long theIndexManagementWaitTimeoutMillis) setIndexSchemaManagementStrategy
(org.hibernate.search.mapper.orm.schema.management.SchemaManagementStrategyName theIndexSchemaManagementStrategy) setPassword
(String thePassword) setProtocol
(String theProtocol) setRequiredIndexStatus
(org.hibernate.search.backend.elasticsearch.index.IndexStatus theRequiredIndexStatus) setScrollTimeoutSecs
(long theScrollTimeoutSecs) setUsername
(String theUsername)
-
Constructor Details
-
ElasticsearchHibernatePropertiesBuilder
-
-
Method Details
-
getAwsRegion
-
setUsername
-
setPassword
-
apply
-
setRequiredIndexStatus
public ElasticsearchHibernatePropertiesBuilder setRequiredIndexStatus(org.hibernate.search.backend.elasticsearch.index.IndexStatus theRequiredIndexStatus) -
setHosts
-
setProtocol
-
setIndexSchemaManagementStrategy
public ElasticsearchHibernatePropertiesBuilder setIndexSchemaManagementStrategy(org.hibernate.search.mapper.orm.schema.management.SchemaManagementStrategyName theIndexSchemaManagementStrategy) -
setIndexManagementWaitTimeoutMillis
public ElasticsearchHibernatePropertiesBuilder setIndexManagementWaitTimeoutMillis(long theIndexManagementWaitTimeoutMillis) -
setScrollTimeoutSecs
-
setDebugIndexSyncStrategy
-
setDebugPrettyPrintJsonLog
public ElasticsearchHibernatePropertiesBuilder setDebugPrettyPrintJsonLog(boolean theDebugPrettyPrintJsonLog) -
setAwsRegion
If this is set to `true`, the AWS region will be used to configure the AWS client. Additionally, this will trigger HibernateSearch to attempt to use IAM Authentication. If the username and password are set in addition to the region, then the username and password will be used as the AWS_ACCESS_KEY_ID and AWS_SECRET_KEY_ID for a static credentials file for IAM.- Parameters:
theAwsRegion
- The String version of the region, e.g. `us-east-2`.- Returns:
- This builder.
-