public abstract class AbstractCouchbaseProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
BUCKET_NAME |
private CouchbaseClusterControllerService |
clusterService |
static PropertyDescriptor |
COUCHBASE_CLUSTER_SERVICE |
private List<PropertyDescriptor> |
descriptors |
static PropertyDescriptor |
DOC_ID |
static PropertyDescriptor |
DOCUMENT_TYPE |
static Relationship |
REL_FAILURE |
static Relationship |
REL_ORIGINAL |
static Relationship |
REL_RETRY |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
| Constructor and Description |
|---|
AbstractCouchbaseProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSupportedProperties(List<PropertyDescriptor> descriptors)
Add processor specific properties.
|
protected void |
addSupportedRelationships(Set<Relationship> relationships)
Add processor specific relationships.
|
private CouchbaseClusterControllerService |
getClusterService(ProcessContext context) |
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected String |
getTransitUrl(ProcessContext context,
String docId)
Generate a transit url.
|
protected void |
handleCouchbaseException(ProcessContext context,
ProcessSession session,
ProcessorLog logger,
FlowFile inFile,
com.couchbase.client.core.CouchbaseException e,
String errMsg)
Handles the thrown CouchbaseException accordingly.
|
protected void |
init(ProcessorInitializationContext context) |
protected com.couchbase.client.java.Bucket |
openBucket(ProcessContext context)
Open a bucket connection using a CouchbaseClusterControllerService.
|
onTrigger, onTriggergetControllerServiceLookup, getIdentifier, getLogger, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor DOCUMENT_TYPE
public static final PropertyDescriptor DOC_ID
public static final Relationship REL_SUCCESS
public static final Relationship REL_ORIGINAL
public static final Relationship REL_RETRY
public static final Relationship REL_FAILURE
public static final PropertyDescriptor COUCHBASE_CLUSTER_SERVICE
public static final PropertyDescriptor BUCKET_NAME
private List<PropertyDescriptor> descriptors
private Set<Relationship> relationships
private CouchbaseClusterControllerService clusterService
protected final void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected void addSupportedProperties(List<PropertyDescriptor> descriptors)
descriptors - add properties to this listprotected void addSupportedRelationships(Set<Relationship> relationships)
relationships - add relationships to this listpublic final Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprivate CouchbaseClusterControllerService getClusterService(ProcessContext context)
protected final com.couchbase.client.java.Bucket openBucket(ProcessContext context)
context - a process contextprotected String getTransitUrl(ProcessContext context, String docId)
context - a process contextprotected void handleCouchbaseException(ProcessContext context, ProcessSession session, ProcessorLog logger, FlowFile inFile, com.couchbase.client.core.CouchbaseException e, String errMsg)
context - a process contextsession - a process sessionlogger - a loggerinFile - an input FlowFilee - the thrown CouchbaseExceptionerrMsg - a message to be loggedCopyright © 2017 Apache NiFi Project. All rights reserved.