Class ElasticsearchConfiguration
- java.lang.Object
-
- org.apache.camel.component.elasticsearch.ElasticsearchConfiguration
-
@UriParams public class ElasticsearchConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClusterName()Name of the clusterintgetConnectionTimeout()The time in ms to wait before connection will timeout.IntegergetFrom()Starting index of the response.StringgetHostAddresses()Comma separated list with ip:port formatted remote transport addresses to use.List<org.apache.http.HttpHost>getHostAddressesList()StringgetIndexName()The name of the index to act againstintgetMaxRetryTimeout()The time in ms before retryElasticsearchOperationgetOperation()What operation to performStringgetPassword()Password for authenticateintgetScrollKeepAliveMs()Time in ms during which elasticsearch will keep search context aliveIntegergetSize()Size of the response.intgetSniffAfterFailureDelay()The delay of a sniff execution scheduled after a failure (in milliseconds)intgetSnifferInterval()The interval between consecutive ordinary sniff executions in milliseconds.intgetSocketTimeout()The timeout in ms to wait before the socket will timeout.StringgetUser()Basic authenticate userintgetWaitForActiveShards()Index creation waits for the write consistency number of shards to be availablebooleanisDisconnect()Disconnect after it finish calling the producerbooleanisEnableSniffer()Enable automatically discover nodes from a running Elasticsearch clusterbooleanisEnableSSL()Enable SSLbooleanisUseScroll()Enable scroll usagevoidsetClusterName(String clusterName)voidsetConnectionTimeout(int connectionTimeout)voidsetDisconnect(boolean disconnect)voidsetEnableSniffer(boolean enableSniffer)voidsetEnableSSL(boolean enableSSL)voidsetFrom(Integer from)voidsetHostAddresses(String hostAddresses)voidsetHostAddressesList(List<org.apache.http.HttpHost> hostAddressesList)voidsetIndexName(String indexName)voidsetMaxRetryTimeout(int maxRetryTimeout)voidsetOperation(ElasticsearchOperation operation)voidsetPassword(String password)voidsetScrollKeepAliveMs(int scrollKeepAliveMs)voidsetSize(Integer size)voidsetSniffAfterFailureDelay(int sniffAfterFailureDelay)voidsetSnifferInterval(int snifferInterval)voidsetSocketTimeout(int socketTimeout)voidsetUser(String user)voidsetUseScroll(boolean useScroll)voidsetWaitForActiveShards(int waitForActiveShards)
-
-
-
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)
-
getOperation
public ElasticsearchOperation getOperation()
What operation to perform
-
setOperation
public void setOperation(ElasticsearchOperation operation)
-
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)
-
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
-
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)
-
-