public abstract class AbstractElasticsearchHttpProcessor extends AbstractElasticsearchProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) static List<PropertyDescriptor> |
COMMON_PROPERTY_DESCRIPTORS |
static PropertyDescriptor |
CONNECT_TIMEOUT |
static PropertyDescriptor |
ES_URL |
(package private) static String |
FIELD_INCLUDE_QUERY_PARAM |
private AtomicReference<okhttp3.OkHttpClient> |
okHttpClientAtomicReference |
static PropertyDescriptor |
PROXY_CONFIGURATION_SERVICE |
static PropertyDescriptor |
PROXY_HOST |
static PropertyDescriptor |
PROXY_PASSWORD |
static PropertyDescriptor |
PROXY_PORT |
private static ProxySpec[] |
PROXY_SPECS |
static PropertyDescriptor |
PROXY_USERNAME |
(package private) static String |
QUERY_QUERY_PARAM |
static PropertyDescriptor |
RESPONSE_TIMEOUT |
(package private) static String |
SIZE_QUERY_PARAM |
(package private) static String |
SORT_QUERY_PARAM |
CHARSET, PASSWORD, PROP_SSL_CONTEXT_SERVICE, USERNAME| Constructor and Description |
|---|
AbstractElasticsearchHttpProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildBulkCommand(StringBuilder sb,
String index,
String docType,
String indexOp,
String id,
String jsonString) |
protected void |
createElasticsearchClient(ProcessContext context) |
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected okhttp3.OkHttpClient |
getClient() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected boolean |
isSuccess(int statusCode) |
protected com.fasterxml.jackson.databind.JsonNode |
parseJsonResponse(InputStream in) |
protected okhttp3.Response |
sendRequestToElasticsearch(okhttp3.OkHttpClient client,
URL url,
String username,
String password,
String verb,
okhttp3.RequestBody body) |
setuponTrigger, onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final String FIELD_INCLUDE_QUERY_PARAM
static final String QUERY_QUERY_PARAM
static final String SORT_QUERY_PARAM
static final String SIZE_QUERY_PARAM
public static final PropertyDescriptor ES_URL
public static final PropertyDescriptor PROXY_HOST
public static final PropertyDescriptor PROXY_PORT
public static final PropertyDescriptor PROXY_USERNAME
public static final PropertyDescriptor PROXY_PASSWORD
public static final PropertyDescriptor CONNECT_TIMEOUT
public static final PropertyDescriptor RESPONSE_TIMEOUT
private final AtomicReference<okhttp3.OkHttpClient> okHttpClientAtomicReference
private static final ProxySpec[] PROXY_SPECS
public static final PropertyDescriptor PROXY_CONFIGURATION_SERVICE
static final List<PropertyDescriptor> COMMON_PROPERTY_DESCRIPTORS
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponentprotected void createElasticsearchClient(ProcessContext context) throws ProcessException
createElasticsearchClient in class AbstractElasticsearchProcessorProcessExceptionprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractElasticsearchProcessorprotected okhttp3.OkHttpClient getClient()
protected boolean isSuccess(int statusCode)
protected okhttp3.Response sendRequestToElasticsearch(okhttp3.OkHttpClient client,
URL url,
String username,
String password,
String verb,
okhttp3.RequestBody body)
throws IOException
IOExceptionprotected com.fasterxml.jackson.databind.JsonNode parseJsonResponse(InputStream in) throws IOException
IOExceptionCopyright © 2020 Apache NiFi Project. All rights reserved.