@InputRequirement(value=INPUT_REQUIRED) @EventDriven @SupportsBatching @Tags(value={"elasticsearch","elasticsearch 5","fetch","read","get"}) @CapabilityDescription(value="Retrieves a document from Elasticsearch using the specified connection properties and the identifier of the document to retrieve. 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.") @WritesAttribute(attribute="filename",description="The filename attributes is set to the document identifier") @WritesAttribute(attribute="es.index",description="The Elasticsearch index containing the document") @WritesAttribute(attribute="es.type",description="The Elasticsearch document type") @SeeAlso(value={DeleteElasticsearch5.class,PutElasticsearch5.class}) public class FetchElasticsearch5 extends AbstractElasticsearch5TransportClientProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
DOC_ID |
static PropertyDescriptor |
INDEX |
private static List<PropertyDescriptor> |
propertyDescriptors |
static Relationship |
REL_FAILURE |
static Relationship |
REL_NOT_FOUND |
static Relationship |
REL_RETRY |
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 |
|---|
FetchElasticsearch5() |
| 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, validatepublic static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
public static final Relationship REL_RETRY
public static final Relationship REL_NOT_FOUND
public static final PropertyDescriptor DOC_ID
public static final PropertyDescriptor INDEX
public static final PropertyDescriptor TYPE
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.