public abstract class AbstractElasticsearchHttpProcessor extends AbstractElasticsearchProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
CONNECT_TIMEOUT |
static PropertyDescriptor |
ES_URL |
private AtomicReference<okhttp3.OkHttpClient> |
okHttpClientAtomicReference |
static PropertyDescriptor |
PROXY_HOST |
static PropertyDescriptor |
PROXY_PORT |
static PropertyDescriptor |
RESPONSE_TIMEOUT |
CHARSET, PASSWORD, PROP_SSL_CONTEXT_SERVICE, USERNAME| Constructor and Description |
|---|
AbstractElasticsearchHttpProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createElasticsearchClient(ProcessContext context) |
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected okhttp3.OkHttpClient |
getClient() |
protected boolean |
isSuccess(int statusCode) |
protected org.codehaus.jackson.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, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor ES_URL
public static final PropertyDescriptor PROXY_HOST
public static final PropertyDescriptor PROXY_PORT
public static final PropertyDescriptor CONNECT_TIMEOUT
public static final PropertyDescriptor RESPONSE_TIMEOUT
private final AtomicReference<okhttp3.OkHttpClient> okHttpClientAtomicReference
protected 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 org.codehaus.jackson.JsonNode parseJsonResponse(InputStream in) throws IOException
IOExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.