abstract class AbstractElasticsearch5TransportClientProcessor extends AbstractElasticsearch5Processor
| Modifier and Type | Field and Description |
|---|---|
protected static PropertyDescriptor |
CLUSTER_NAME |
protected AtomicReference<org.elasticsearch.client.Client> |
esClient |
protected List<InetSocketAddress> |
esHosts |
protected static PropertyDescriptor |
HOSTS |
protected static PropertyDescriptor |
PING_TIMEOUT |
static PropertyDescriptor |
PROP_XPACK_LOCATION |
protected static PropertyDescriptor |
SAMPLER_INTERVAL |
CHARSET, PASSWORD, PROP_SSL_CONTEXT_SERVICE, USERNAME| Constructor and Description |
|---|
AbstractElasticsearch5TransportClientProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeClient()
Dispose of ElasticSearch client
|
protected void |
createElasticsearchClient(ProcessContext context)
Instantiate ElasticSearch Client.
|
private List<InetSocketAddress> |
getEsHosts(String hosts)
Get the ElasticSearch hosts from a NiFi attribute, e.g.
|
protected org.elasticsearch.client.Client |
getTransportClient(org.elasticsearch.common.settings.Settings.Builder settingsBuilder,
String xPackPath,
String username,
String password,
List<InetSocketAddress> esHosts,
ComponentLog log) |
customValidate, setuponTrigger, onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprotected static final PropertyDescriptor CLUSTER_NAME
protected static final PropertyDescriptor HOSTS
public static final PropertyDescriptor PROP_XPACK_LOCATION
protected static final PropertyDescriptor PING_TIMEOUT
protected static final PropertyDescriptor SAMPLER_INTERVAL
protected final AtomicReference<org.elasticsearch.client.Client> esClient
protected List<InetSocketAddress> esHosts
AbstractElasticsearch5TransportClientProcessor()
protected void createElasticsearchClient(ProcessContext context) throws ProcessException
createElasticsearchClient in class AbstractElasticsearch5Processorcontext - The context for this processorProcessException - if an error occurs while creating an Elasticsearch clientprotected org.elasticsearch.client.Client getTransportClient(org.elasticsearch.common.settings.Settings.Builder settingsBuilder,
String xPackPath,
String username,
String password,
List<InetSocketAddress> esHosts,
ComponentLog log)
throws MalformedURLException
MalformedURLExceptionpublic void closeClient()
private List<InetSocketAddress> getEsHosts(String hosts)
hosts - A comma-separated list of ElasticSearch hosts (host:port,host2:port2, etc.)Copyright © 2019 Apache NiFi Project. All rights reserved.