public abstract class AbstractElasticsearchTransportClientProcessor extends AbstractElasticsearchProcessor
| Modifier and Type | Field and Description |
|---|---|
protected String |
authToken |
protected static PropertyDescriptor |
CLUSTER_NAME |
protected AtomicReference<org.elasticsearch.client.Client> |
esClient |
protected List<InetSocketAddress> |
esHosts |
private static Validator |
HOSTNAME_PORT_VALIDATOR
This validator ensures the Elasticsearch hosts property is a valid list of hostname:port entries
|
protected static PropertyDescriptor |
HOSTS |
protected static PropertyDescriptor |
PING_TIMEOUT |
static PropertyDescriptor |
PROP_SHIELD_LOCATION |
protected static PropertyDescriptor |
SAMPLER_INTERVAL |
CHARSET, PASSWORD, PROP_SSL_CONTEXT_SERVICE, USERNAME| Constructor and Description |
|---|
AbstractElasticsearchTransportClientProcessor() |
| 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.transport.TransportClient |
getTransportClient(org.elasticsearch.common.settings.Settings.Builder settingsBuilder,
String shieldUrl,
String username,
String password) |
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, validateprivate static final Validator HOSTNAME_PORT_VALIDATOR
protected static final PropertyDescriptor CLUSTER_NAME
protected static final PropertyDescriptor HOSTS
public static final PropertyDescriptor PROP_SHIELD_LOCATION
protected static final PropertyDescriptor PING_TIMEOUT
protected static final PropertyDescriptor SAMPLER_INTERVAL
protected AtomicReference<org.elasticsearch.client.Client> esClient
protected List<InetSocketAddress> esHosts
protected String authToken
public AbstractElasticsearchTransportClientProcessor()
protected void createElasticsearchClient(ProcessContext context) throws ProcessException
createElasticsearchClient in class AbstractElasticsearchProcessorcontext - The context for this processorProcessException - if an error occurs while creating an Elasticsearch clientprotected org.elasticsearch.client.transport.TransportClient getTransportClient(org.elasticsearch.common.settings.Settings.Builder settingsBuilder,
String shieldUrl,
String username,
String password)
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 © 2017 Apache NiFi Project. All rights reserved.