Package org.apache.camel.component.es
Class ElasticsearchConfiguration
java.lang.Object
org.apache.camel.component.es.ElasticsearchConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe certificate that can be used to access the ES Cluster.Name of the clusterintThe time in ms to wait before connection will timeout.Class<?>The class to use when deserializing the documents.getFrom()Starting index of the response.Comma separated list with ip:port formatted remote transport addresses to use.List<org.apache.http.HttpHost>The name of the index to act againstintThe time in ms before retryWhat operation to performPassword for authenticateintTime in ms during which elasticsearch will keep search context alivegetSize()Size of the response.intThe delay of a sniff execution scheduled after a failure (in milliseconds)intThe interval between consecutive ordinary sniff executions in milliseconds.intThe timeout in ms to wait before the socket will timeout.getUser()Basic authenticate userintIndex creation waits for the write consistency number of shards to be availablebooleanDisconnect after it finish calling the producerbooleanIndicates whether the body of the message contains only documents.booleanEnable automatically discover nodes from a running Elasticsearch cluster.booleanEnable SSLbooleanEnable scroll usagevoidsetCertificatePath(String certificatePath) voidsetClusterName(String clusterName) voidsetConnectionTimeout(int connectionTimeout) voidsetDisconnect(boolean disconnect) voidsetDocumentClass(Class<?> documentClass) voidsetEnableDocumentOnlyMode(boolean enableDocumentOnlyMode) voidsetEnableSniffer(boolean enableSniffer) voidsetEnableSSL(boolean enableSSL) voidvoidsetHostAddresses(String hostAddresses) voidsetHostAddressesList(List<org.apache.http.HttpHost> hostAddressesList) voidsetIndexName(String indexName) voidsetMaxRetryTimeout(int maxRetryTimeout) voidsetOperation(ElasticsearchOperation operation) voidsetPassword(String password) voidsetScrollKeepAliveMs(int scrollKeepAliveMs) voidvoidsetSniffAfterFailureDelay(int sniffAfterFailureDelay) voidsetSnifferInterval(int snifferInterval) voidsetSocketTimeout(int socketTimeout) voidvoidsetUseScroll(boolean useScroll) voidsetWaitForActiveShards(int waitForActiveShards)
-
Constructor Details
-
ElasticsearchConfiguration
public ElasticsearchConfiguration()
-
-
Method Details
-
getFrom
Starting index of the response. -
setFrom
-
getSize
Size of the response. -
setSize
-
getClusterName
Name of the cluster -
setClusterName
-
getOperation
What operation to perform -
setOperation
-
getIndexName
The name of the index to act against -
setIndexName
-
getHostAddresses
Comma separated list with ip:port formatted remote transport addresses to use. -
setHostAddresses
-
getWaitForActiveShards
public int getWaitForActiveShards()Index creation waits for the write consistency number of shards to be available -
setWaitForActiveShards
public void setWaitForActiveShards(int waitForActiveShards) -
getHostAddressesList
-
setHostAddressesList
-
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
Basic authenticate user -
setUser
-
getPassword
Password for authenticate -
setPassword
-
isEnableSSL
public boolean isEnableSSL()Enable SSL -
setEnableSSL
public void setEnableSSL(boolean enableSSL) -
getCertificatePath
The certificate that can be used to access the ES Cluster. It can be loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems. -
setCertificatePath
-
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
The class to use when deserializing the documents. -
setDocumentClass
-
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)
-