Class ElasticsearchClientConfig


  • @Configuration
    @EnableElasticsearchRepositories(basePackages="com.arms",
                                     repositoryBaseClass=공통저장소_구현체.class)
    @ComponentScan(basePackages="com.arms")
    public class ElasticsearchClientConfig
    extends org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String elasticsearchUrl  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeClient()  
      org.apache.http.conn.ConnectionKeepAliveStrategy connectionKeepAliveStrategy()  
      org.elasticsearch.client.RestHighLevelClient elasticsearchClient()  
      • Methods inherited from class org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration

        elasticsearchOperations
      • Methods inherited from class org.springframework.data.elasticsearch.config.ElasticsearchConfigurationSupport

        elasticsearchCustomConversions, elasticsearchEntityMapper, elasticsearchMappingContext, fieldNamingStrategy, getInitialEntitySet, getMappingBasePackages, refreshPolicy, scanForEntities
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • elasticsearchUrl

        @Value("${elasticsearch.url}")
        public java.lang.String elasticsearchUrl
    • Constructor Detail

      • ElasticsearchClientConfig

        public ElasticsearchClientConfig()
    • Method Detail

      • elasticsearchClient

        @Bean
        public org.elasticsearch.client.RestHighLevelClient elasticsearchClient()
        Specified by:
        elasticsearchClient in class org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration
      • closeClient

        @PreDestroy
        public void closeClient()
      • connectionKeepAliveStrategy

        @Bean(name="keepAliveStrategy")
        public org.apache.http.conn.ConnectionKeepAliveStrategy connectionKeepAliveStrategy()