public abstract class AbstractCouchbaseProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
private CouchbaseClusterControllerService |
clusterService |
private List<PropertyDescriptor> |
descriptors |
(package private) static PropertyDescriptor |
DOC_ID |
(package private) static Relationship |
REL_FAILURE |
(package private) static Relationship |
REL_ORIGINAL |
(package private) static Relationship |
REL_RETRY |
(package private) 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.
|
protected Set<Relationship> |
filterRelationships(Set<Relationship> rels) |
private CouchbaseClusterControllerService |
getClusterService(ProcessContext context) |
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected String |
getTransitUrl(com.couchbase.client.java.Bucket bucket,
String docId)
Generate a transit url.
|
protected void |
handleCouchbaseException(ProcessContext context,
ProcessSession session,
ComponentLog 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, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final PropertyDescriptor DOC_ID
static final Relationship REL_ORIGINAL
static final Relationship REL_SUCCESS
static final Relationship REL_RETRY
static final Relationship REL_FAILURE
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 AbstractSessionFactoryProcessorprotected Set<Relationship> filterRelationships(Set<Relationship> rels)
public 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(com.couchbase.client.java.Bucket bucket, String docId)
bucket - the target bucketprotected void handleCouchbaseException(ProcessContext context, ProcessSession session, ComponentLog 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 © 2022 Apache NiFi Project. All rights reserved.