[ 
https://issues.apache.org/jira/browse/NIFI-5239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617494#comment-16617494
 ] 

ASF GitHub Bot commented on NIFI-5239:
--------------------------------------

Github user MikeThomsen commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2896#discussion_r218059033
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/AbstractMongoProcessor.java
 ---
    @@ -270,20 +291,10 @@ public final void closeClient() {
             }
         }
     
    -    protected MongoDatabase getDatabase(final ProcessContext context) {
    -        return getDatabase(context, null);
    -    }
    -
         protected MongoDatabase getDatabase(final ProcessContext context, 
final FlowFile flowFile) {
             final String databaseName = 
context.getProperty(DATABASE_NAME).evaluateAttributeExpressions(flowFile).getValue();
    --- End diff --
    
    @zenfenan This is how we would be doing the database/collection 
configuration.


> Make MongoDBControllerService able to act as a configuration source for 
> MongoDB processors
> ------------------------------------------------------------------------------------------
>
>                 Key: NIFI-5239
>                 URL: https://issues.apache.org/jira/browse/NIFI-5239
>             Project: Apache NiFi
>          Issue Type: New Feature
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>
> The MongoDBControllerService should be able to provide the getDatabase and 
> getCollection functionality that are built into the MongoDB processors 
> through AbstractMongoDBProcessor. Using the controller service with the 
> processors should be optional in the first release it's added and then 
> mandatory going forward.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to