You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2021/01/31 21:51:20 UTC

[GitHub] [nifi] turcsanyip commented on a change in pull request #4721: NIFI-8081 Added new Listing Strategy to ListFTP and ListSFTP

turcsanyip commented on a change in pull request #4721:
URL: https://github.com/apache/nifi/pull/4721#discussion_r567489514



##########
File path: nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/src/main/java/org/apache/nifi/processor/util/list/AbstractListProcessor.java
##########
@@ -442,11 +450,127 @@ public void onTrigger(final ProcessContext context, final ProcessSession session
         } else if (BY_ENTITIES.equals(listingStrategy)) {
             listByTrackingEntities(context, session);
 
+        } else if (BY_TIME_WINDOW.equals(listingStrategy)) {
+            listByAdjustedSlidingTimeWindow(context, session);
+
         } else {
             throw new ProcessException("Unknown listing strategy: " + listingStrategy);
         }
     }
 
+    public void listByAdjustedSlidingTimeWindow(final ProcessContext context, final ProcessSession session) throws ProcessException {

Review comment:
       This should be named `listByTimeWindow()` now.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org