@Component(value="elasticsearch-rest")
public class ElasticsearchComponent
extends org.apache.camel.support.DefaultComponent
ElasticsearchEndpoint
.Constructor and Description |
---|
ElasticsearchComponent() |
ElasticsearchComponent(org.apache.camel.CamelContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
org.elasticsearch.client.RestClient |
getClient() |
int |
getConnectionTimeout()
The time in ms to wait before connection will timeout.
|
Boolean |
getEnableSniffer()
Enable automatically discover nodes from a running Elasticsearch cluster
|
Boolean |
getEnableSSL()
Enable SSL
|
String |
getHostAddresses()
Comma separated list with ip:port formatted remote transport addresses to use.
|
int |
getMaxRetryTimeout()
The time in ms before retry
|
String |
getPassword()
Password for authenticate
|
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 user
|
void |
setClient(org.elasticsearch.client.RestClient client)
To use an existing configured Elasticsearch client, instead of creating a client per endpoint.
|
void |
setConnectionTimeout(int connectionTimeout) |
void |
setEnableSniffer(Boolean enableSniffer) |
void |
setEnableSSL(Boolean enableSSL) |
void |
setHostAddresses(String hostAddresses) |
void |
setMaxRetryTimeout(int maxRetryTimeout) |
void |
setPassword(String password) |
void |
setSniffAfterFailureDelay(int sniffAfterFailureDelay) |
void |
setSnifferInterval(int snifferInterval) |
void |
setSocketTimeout(int socketTimeout) |
void |
setUser(String user) |
afterConfiguration, createEndpoint, createEndpoint, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ElasticsearchComponent()
public ElasticsearchComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.support.DefaultComponent
Exception
public org.elasticsearch.client.RestClient getClient()
public void setClient(org.elasticsearch.client.RestClient client)
public String getHostAddresses()
public void setHostAddresses(String hostAddresses)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public Boolean getEnableSSL()
public void setEnableSSL(Boolean enableSSL)
public int getMaxRetryTimeout()
public void setMaxRetryTimeout(int maxRetryTimeout)
public Boolean getEnableSniffer()
public void setEnableSniffer(Boolean enableSniffer)
public int getSnifferInterval()
public void setSnifferInterval(int snifferInterval)
public int getSniffAfterFailureDelay()
public void setSniffAfterFailureDelay(int sniffAfterFailureDelay)
Apache Camel