Package org.apache.camel.component.es
Class ElasticsearchConfiguration
- java.lang.Object
-
- org.apache.camel.component.es.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 String
getCertificatePath()
The path of the self-signed certificate to use to access to Elasticsearch.String
getClusterName()
Name of the clusterint
getConnectionTimeout()
The time in ms to wait before connection will timeout.Class<?>
getDocumentClass()
The class to use when deserializing the documents.Integer
getFrom()
Starting index of the response.String
getHostAddresses()
Comma separated list with ip:port formatted remote transport addresses to use.List<org.apache.http.HttpHost>
getHostAddressesList()
String
getIndexName()
The name of the index to act againstint
getMaxRetryTimeout()
The time in ms before retryElasticsearchOperation
getOperation()
What operation to performString
getPassword()
Password for authenticateint
getScrollKeepAliveMs()
Time in ms during which elasticsearch will keep search context aliveInteger
getSize()
Size of the response.int
getSniffAfterFailureDelay()
The delay of a sniff execution scheduled after a failure (in milliseconds)int
getSnifferInterval()
The interval between consecutive ordinary sniff executions in milliseconds.int
getSocketTimeout()
The timeout in ms to wait before the socket will timeout.String
getUser()
Basic authenticate userint
getWaitForActiveShards()
Index creation waits for the write consistency number of shards to be availableboolean
isDisconnect()
Disconnect after it finish calling the producerboolean
isEnableSniffer()
Enable automatically discover nodes from a running Elasticsearch cluster.boolean
isEnableSSL()
Enable SSLboolean
isUseScroll()
Enable scroll usagevoid
setCertificatePath(String certificatePath)
void
setClusterName(String clusterName)
void
setConnectionTimeout(int connectionTimeout)
void
setDisconnect(boolean disconnect)
void
setDocumentClass(Class<?> documentClass)
void
setEnableSniffer(boolean enableSniffer)
void
setEnableSSL(boolean enableSSL)
void
setFrom(Integer from)
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
setSize(Integer size)
void
setSniffAfterFailureDelay(int sniffAfterFailureDelay)
void
setSnifferInterval(int snifferInterval)
void
setSocketTimeout(int socketTimeout)
void
setUser(String user)
void
setUseScroll(boolean useScroll)
void
setWaitForActiveShards(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)
-
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)
-
-