@Tags(value={"nosql","couchbase","database","put"}) @CapabilityDescription(value="Put a document to Couchbase Server via Key/Value access.") @SeeAlso(value=CouchbaseClusterControllerService.class) @InputRequirement(value=INPUT_REQUIRED) @ReadsAttributes(value=@ReadsAttribute(attribute="uuid",description="Used as a document id if \'Document Id\' is not specified")) @WritesAttribute(attribute="couchbase.cluster",description="Cluster where the document was stored.") @WritesAttribute(attribute="couchbase.bucket",description="Bucket where the document was stored.") @WritesAttribute(attribute="couchbase.doc.id",description="Id of the document.") @WritesAttribute(attribute="couchbase.doc.cas",description="CAS of the document.") @WritesAttribute(attribute="couchbase.doc.expiry",description="Expiration of the document.") @WritesAttribute(attribute="couchbase.exception",description="If Couchbase related error occurs the CouchbaseException class name will be captured here.") public class PutCouchbaseKey extends AbstractCouchbaseProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
PERSIST_TO |
static PropertyDescriptor |
REPLICATE_TO |
BUCKET_NAME, COUCHBASE_CLUSTER_SERVICE, DOC_ID, DOCUMENT_TYPE, REL_FAILURE, REL_ORIGINAL, REL_RETRY, REL_SUCCESS| Constructor and Description |
|---|
PutCouchbaseKey() |
| 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.
|
void |
onTrigger(ProcessContext context,
ProcessSession session) |
getRelationships, getSupportedPropertyDescriptors, getTransitUrl, handleCouchbaseException, init, openBucketonTriggergetControllerServiceLookup, 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 PERSIST_TO
public static final PropertyDescriptor REPLICATE_TO
protected void addSupportedProperties(List<PropertyDescriptor> descriptors)
AbstractCouchbaseProcessoraddSupportedProperties in class AbstractCouchbaseProcessordescriptors - add properties to this listprotected void addSupportedRelationships(Set<Relationship> relationships)
AbstractCouchbaseProcessoraddSupportedRelationships in class AbstractCouchbaseProcessorrelationships - add relationships to this listpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.