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

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

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

    https://github.com/apache/nifi/pull/1966#discussion_r125489575
  
    --- Diff: 
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/ListHDFS.java
 ---
    @@ -114,6 +116,25 @@
             .addValidator(StandardValidators.REGULAR_EXPRESSION_VALIDATOR)
             .build();
     
    +    public static final PropertyDescriptor MIN_AGE = new 
PropertyDescriptor.Builder()
    +        .name("minimum-file-age")
    +        .displayName("Minimum File Age")
    +        .description("The minimum age that a file must be in order to be 
pulled; any file younger than this "
    +                + "amount of time (based on last modification date) will 
be ignored")
    +        .required(true)
    +        .addValidator(StandardValidators.createTimePeriodValidator(0, 
TimeUnit.MILLISECONDS, Long.MAX_VALUE, TimeUnit.NANOSECONDS))
    +        .defaultValue("0 sec")
    +        .build();
    +
    +    public static final PropertyDescriptor MAX_AGE = new 
PropertyDescriptor.Builder()
    +        .name("maximum-file-age")
    +        .displayName("Maximum File Age")
    +        .description("The maximum age that a file must be in order to be 
pulled; any file older than this "
    +                + "amount of time (based on last modification date) will 
be ignored")
    +        .required(false)
    +        .addValidator(StandardValidators.createTimePeriodValidator(100, 
TimeUnit.MILLISECONDS, Long.MAX_VALUE, TimeUnit.NANOSECONDS))
    --- End diff --
    
    Yep, I took the same as in GetHDFS processor, but I could add the lower 
bound in the description. Or did you have something else in mind?


> Add minimum/maximum file age properties to ListHDFS
> ---------------------------------------------------
>
>                 Key: NIFI-4144
>                 URL: https://issues.apache.org/jira/browse/NIFI-4144
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Minor
>
> In some situations it would be interesting to have the minimum/maximum file 
> age properties in ListHDFS as we have in GetHDFS.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to