Class AbstractGridFSProcessor

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.mongodb.gridfs.AbstractGridFSProcessor
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor
Direct Known Subclasses:
DeleteGridFS, FetchGridFS, PutGridFS

public abstract class AbstractGridFSProcessor extends org.apache.nifi.processor.AbstractProcessor
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    private static final List<org.apache.nifi.components.PropertyDescriptor>
     
    (package private) static final org.apache.nifi.components.PropertyDescriptor
     
    (package private) static final org.apache.nifi.processor.Relationship
     
    (package private) static final org.apache.nifi.processor.Relationship
     
    private static final Set<org.apache.nifi.processor.Relationship>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.mongodb.client.gridfs.GridFSBucket
    getBucket(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
     
    protected String
    getBucketName(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
     
    protected static List<org.apache.nifi.components.PropertyDescriptor>
     
    protected static Set<org.apache.nifi.processor.Relationship>
     
    protected com.mongodb.client.MongoDatabase
    getDatabase(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
     
    protected String
    getTransitUri(org.bson.types.ObjectId id, org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
     

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger, onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getRelationships, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • CLIENT_SERVICE

      static final org.apache.nifi.components.PropertyDescriptor CLIENT_SERVICE
    • DATABASE_NAME

      static final org.apache.nifi.components.PropertyDescriptor DATABASE_NAME
    • BUCKET_NAME

      static final org.apache.nifi.components.PropertyDescriptor BUCKET_NAME
    • FILE_NAME

      static final org.apache.nifi.components.PropertyDescriptor FILE_NAME
    • QUERY_ATTRIBUTE

      static final org.apache.nifi.components.PropertyDescriptor QUERY_ATTRIBUTE
    • REL_FAILURE

      static final org.apache.nifi.processor.Relationship REL_FAILURE
    • REL_SUCCESS

      static final org.apache.nifi.processor.Relationship REL_SUCCESS
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
    • RELATIONSHIPS

      private static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
    • clientService

      protected volatile MongoDBClientService clientService
  • Constructor Details

    • AbstractGridFSProcessor

      public AbstractGridFSProcessor()
  • Method Details

    • getCommonPropertyDescriptors

      protected static List<org.apache.nifi.components.PropertyDescriptor> getCommonPropertyDescriptors()
    • getCommonRelationships

      protected static Set<org.apache.nifi.processor.Relationship> getCommonRelationships()
    • getDatabase

      protected com.mongodb.client.MongoDatabase getDatabase(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
    • getBucket

      protected com.mongodb.client.gridfs.GridFSBucket getBucket(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
    • getBucketName

      protected String getBucketName(org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)
    • getTransitUri

      protected String getTransitUri(org.bson.types.ObjectId id, org.apache.nifi.flowfile.FlowFile input, org.apache.nifi.processor.ProcessContext context)