Package org.apache.camel.component.es
Class ElasticsearchConfiguration
java.lang.Object
org.apache.camel.component.es.ElasticsearchConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe certificate that can be used to access the ES Cluster.Name of the clusterint
The 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 againstint
The time in ms before retryWhat operation to performPassword for authenticateint
Time in ms during which elasticsearch will keep search context alivegetSize()
Size of the response.int
The delay of a sniff execution scheduled after a failure (in milliseconds)int
The interval between consecutive ordinary sniff executions in milliseconds.int
The timeout in ms to wait before the socket will timeout.getUser()
Basic authenticate userint
Index creation waits for the write consistency number of shards to be availableboolean
Disconnect after it finish calling the producerboolean
Indicates whether the body of the message contains only documents.boolean
Enable automatically discover nodes from a running Elasticsearch cluster.boolean
Enable SSLboolean
Enable scroll usagevoid
setCertificatePath
(String certificatePath) void
setClusterName
(String clusterName) void
setConnectionTimeout
(int connectionTimeout) void
setDisconnect
(boolean disconnect) void
setDocumentClass
(Class<?> documentClass) void
setEnableDocumentOnlyMode
(boolean enableDocumentOnlyMode) void
setEnableSniffer
(boolean enableSniffer) void
setEnableSSL
(boolean enableSSL) void
void
setHostAddresses
(String hostAddresses) void
setHostAddressesList
(List<org.apache.http.HttpHost> hostAddressesList) void
setIndexName
(String indexName) void
setMaxRetryTimeout
(int maxRetryTimeout) void
setOperation
(ElasticsearchOperation operation) void
setPassword
(String password) void
setScrollKeepAliveMs
(int scrollKeepAliveMs) void
void
setSniffAfterFailureDelay
(int sniffAfterFailureDelay) void
setSnifferInterval
(int snifferInterval) void
setSocketTimeout
(int socketTimeout) void
void
setUseScroll
(boolean useScroll) void
setWaitForActiveShards
(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)
-