public class ElasticsearchConfig extends LegacyCoreConfig
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
aesEndpoint |
protected com.amazonaws.services.elasticsearch.AWSElasticsearch |
awsElasticsearch |
protected java.lang.String |
basePath |
protected com.amazonaws.auth.AWSCredentialsProvider |
credentialsProvider |
protected org.elasticsearch.client.RestHighLevelClient |
elasticsearchClient |
protected java.lang.String |
filePathAttrName |
protected java.lang.String |
idAttrName |
protected static OCLogger |
logger |
protected java.lang.String |
mimeTypeAttrName |
protected java.lang.String |
objectTypeAttrName |
protected java.lang.String |
region |
protected java.lang.String |
SERVICE_NAME |
protected int |
timeout |
annotationConfig, config, dictionaryService, extensionMap, mimeTypeToFileExtension, objectTypeConfig, objectTypesByRepoName, redactionConfig, wsCoreConfig
Modifier | Constructor and Description |
---|---|
protected |
ElasticsearchConfig() |
|
ElasticsearchConfig(org.apache.commons.configuration.HierarchicalConfiguration config) |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.elasticsearch.AWSElasticsearch |
getAWSElasticsearch()
Returns the AWS Elasticsearch client; this is used for table
creation/deletion/modifications on AWS
|
java.lang.String |
getBasePath() |
org.elasticsearch.client.RestHighLevelClient |
getElasticsearch() |
java.lang.String |
getFilePathAttrName() |
java.lang.String |
getIdAttrName() |
java.lang.String |
getMimeTypeAttrName() |
java.lang.String |
getObjectTypeAttrName() |
int |
getTimeout() |
void |
init()
Initializes the AWS Elasticsearch client
|
getAnnotationConfig, getExtensionMap, getMimeTypeToFileExtension, getObjectTypeConfig, getObjectTypesByRepoName, getRedactionConfig, getWSCoreConfig, initContentFormatMaps, initObjectTypes, initWSCoreConfig, setAnnotationConfig, setDictionaryService, setRedactionConfig
protected static final OCLogger logger
protected java.lang.String SERVICE_NAME
protected com.amazonaws.auth.AWSCredentialsProvider credentialsProvider
protected com.amazonaws.services.elasticsearch.AWSElasticsearch awsElasticsearch
protected org.elasticsearch.client.RestHighLevelClient elasticsearchClient
@Value(value="${aws.region}") protected java.lang.String region
@Value(value="${aws.elasticsearch.endpoint}") protected java.lang.String aesEndpoint
@Value(value="${elasticsearch.objectTypeAttrName}") protected java.lang.String objectTypeAttrName
@Value(value="${elasticsearch.mimeTypeAttrName}") protected java.lang.String mimeTypeAttrName
@Value(value="${elasticsearch.filePathAttrName}") protected java.lang.String filePathAttrName
@Value(value="${elasticsearch.basePath}") protected java.lang.String basePath
@Value(value="${elasticsearch.idAttrName}") protected java.lang.String idAttrName
@Value(value="${elasticsearch.timeout}") protected int timeout
protected ElasticsearchConfig()
public ElasticsearchConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
public java.lang.String getObjectTypeAttrName()
public java.lang.String getMimeTypeAttrName()
public java.lang.String getFilePathAttrName()
public java.lang.String getBasePath()
public java.lang.String getIdAttrName()
public int getTimeout()
public void init()
init
in interface ILegacyCoreConfig
init
in class LegacyCoreConfig
public com.amazonaws.services.elasticsearch.AWSElasticsearch getAWSElasticsearch()
public org.elasticsearch.client.RestHighLevelClient getElasticsearch()