Class ElasticsearchConfiguration


  • @UriParams
    public class ElasticsearchConfiguration
    extends Object
    • Constructor Detail

      • ElasticsearchConfiguration

        public ElasticsearchConfiguration()
    • Method Detail

      • getFrom

        public Integer getFrom()
        Starting index of the response.
      • setFrom

        public void setFrom​(Integer from)
      • getSize

        public Integer getSize()
        Size of the response.
      • setSize

        public void setSize​(Integer size)
      • getClusterName

        public String getClusterName()
        Name of the cluster
      • setClusterName

        public void setClusterName​(String clusterName)
      • getIndexName

        public String getIndexName()
        The name of the index to act against
      • setIndexName

        public void setIndexName​(String indexName)
      • getHostAddresses

        public String getHostAddresses()
        Comma separated list with ip:port formatted remote transport addresses to use.
      • setHostAddresses

        public void setHostAddresses​(String hostAddresses)
      • getWaitForActiveShards

        public int getWaitForActiveShards()
        Index creation waits for the write consistency number of shards to be available
      • setWaitForActiveShards

        public void setWaitForActiveShards​(int waitForActiveShards)
      • getHostAddressesList

        public List<org.apache.http.HttpHost> getHostAddressesList()
      • setHostAddressesList

        public void setHostAddressesList​(List<org.apache.http.HttpHost> hostAddressesList)
      • getSocketTimeout

        public int getSocketTimeout()
        The timeout in ms to wait before the socket will timeout.
      • setSocketTimeout

        public void setSocketTimeout​(int socketTimeout)
      • getConnectionTimeout

        public int getConnectionTimeout()
        The time in ms to wait before connection will timeout.
      • setConnectionTimeout

        public void setConnectionTimeout​(int connectionTimeout)
      • getUser

        public String getUser()
        Basic authenticate user
      • setUser

        public void setUser​(String user)
      • getPassword

        public String getPassword()
        Password for authenticate
      • setPassword

        public void setPassword​(String password)
      • isEnableSSL

        public boolean isEnableSSL()
        Enable SSL
      • setEnableSSL

        public void setEnableSSL​(boolean enableSSL)
      • getCertificatePath

        public String getCertificatePath()
        The path of the self-signed certificate to use to access to Elasticsearch.
      • setCertificatePath

        public void setCertificatePath​(String certificatePath)
      • getMaxRetryTimeout

        public int getMaxRetryTimeout()
        The time in ms before retry
      • setMaxRetryTimeout

        public void setMaxRetryTimeout​(int maxRetryTimeout)
      • isDisconnect

        public boolean isDisconnect()
        Disconnect after it finish calling the producer
      • setDisconnect

        public void setDisconnect​(boolean disconnect)
      • isEnableSniffer

        public boolean isEnableSniffer()
        Enable automatically discover nodes from a running Elasticsearch cluster. If this option is used in conjunction with Spring Boot then it's managed by the Spring Boot configuration (see: Disable Sniffer in Spring Boot).
      • setEnableSniffer

        public void setEnableSniffer​(boolean enableSniffer)
      • getSnifferInterval

        public int getSnifferInterval()
        The interval between consecutive ordinary sniff executions in milliseconds. Will be honoured when sniffOnFailure is disabled or when there are no failures between consecutive sniff executions
      • setSnifferInterval

        public void setSnifferInterval​(int snifferInterval)
      • getSniffAfterFailureDelay

        public int getSniffAfterFailureDelay()
        The delay of a sniff execution scheduled after a failure (in milliseconds)
      • setSniffAfterFailureDelay

        public void setSniffAfterFailureDelay​(int sniffAfterFailureDelay)
      • isUseScroll

        public boolean isUseScroll()
        Enable scroll usage
      • setUseScroll

        public void setUseScroll​(boolean useScroll)
      • getScrollKeepAliveMs

        public int getScrollKeepAliveMs()
        Time in ms during which elasticsearch will keep search context alive
      • setScrollKeepAliveMs

        public void setScrollKeepAliveMs​(int scrollKeepAliveMs)
      • getDocumentClass

        public Class<?> getDocumentClass()
        The class to use when deserializing the documents.
      • setDocumentClass

        public void setDocumentClass​(Class<?> documentClass)
      • isEnableDocumentOnlyMode

        public boolean isEnableDocumentOnlyMode()
        Indicates whether the body of the message contains only documents. By default, it is set to false to be able to do the same requests as what the Document API supports (see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs.html for more details). To ease the migration of routes based on the legacy component camel-elasticsearch-rest, you should consider enabling the mode especially if your routes do update operations.
      • setEnableDocumentOnlyMode

        public void setEnableDocumentOnlyMode​(boolean enableDocumentOnlyMode)