@InputRequirement(value=INPUT_REQUIRED) @EventDriven @SupportsBatching @Tags(value={"elasticsearch","elasticsearch 5","insert","update","write","put"}) @CapabilityDescription(value="Writes the contents of a FlowFile to Elasticsearch, using the specified parameters such as the index to insert into and the type of the document. If the cluster has been configured for authorization and/or secure transport (SSL/TLS), and the X-Pack plugin is available, secure connections can be made. This processor supports Elasticsearch 5.x clusters.") @SeeAlso(value={FetchElasticsearch5.class,PutElasticsearch5.class}) @SystemResourceConsideration(resource=MEMORY) public class PutElasticsearch5 extends AbstractElasticsearch5TransportClientProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
BATCH_SIZE |
static PropertyDescriptor |
ID_ATTRIBUTE |
static PropertyDescriptor |
INDEX |
static PropertyDescriptor |
INDEX_OP |
private static Validator |
NON_EMPTY_EL_VALIDATOR |
private static List<PropertyDescriptor> |
propertyDescriptors |
(package private) static Relationship |
REL_FAILURE |
(package private) static Relationship |
REL_RETRY |
(package private) static Relationship |
REL_SUCCESS |
private static Set<Relationship> |
relationships |
static PropertyDescriptor |
TYPE |
CLUSTER_NAME, esClient, esHosts, HOSTS, PING_TIMEOUT, PROP_XPACK_LOCATION, SAMPLER_INTERVALCHARSET, PASSWORD, PROP_SSL_CONTEXT_SERVICE, USERNAME| Constructor and Description |
|---|
PutElasticsearch5() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeClient()
Dispose of ElasticSearch client
|
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
createElasticsearchClient, getTransportClientcustomValidate, setuponTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final Validator NON_EMPTY_EL_VALIDATOR
static final Relationship REL_SUCCESS
static final Relationship REL_FAILURE
static final Relationship REL_RETRY
public static final PropertyDescriptor ID_ATTRIBUTE
public static final PropertyDescriptor INDEX
public static final PropertyDescriptor TYPE
public static final PropertyDescriptor INDEX_OP
public static final PropertyDescriptor BATCH_SIZE
private static final Set<Relationship> relationships
private static final List<PropertyDescriptor> propertyDescriptors
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessException@OnStopped public void closeClient()
closeClient in class AbstractElasticsearch5TransportClientProcessorCopyright © 2019 Apache NiFi Project. All rights reserved.