Hi Ruurd,

Is this for a custom processor? You shouldn’t have to do much to take advantage 
of this feature — just add the @SupportsBatching annotation to your processor. 
You can see how the value is retrieved and used in EventDrivenSchedulingAgent 
[1]. As long as your processor extends AbstractProcessor (see the Developer 
Guide - AbstractProcessor API [2]) and has the annotation above, it will have 
the slider available in the configuration dialog and will support the run 
duration value for batching.

If the processor doesn’t have the annotation, it is assumed to be safe for 
concurrent execution but not batching. To explicitly disable this, you can use 
@TriggerSerially.

If you have more details on what you are trying to do with this processor, we 
may be able to help a little more. Good luck.


[1] 
https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/EventDrivenSchedulingAgent.java#L194-L194
 
<https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/scheduling/EventDrivenSchedulingAgent.java#L194-L194>
[2] 
https://nifi.apache.org/docs/nifi-docs/html/developer-guide.html#AbstractProcessor
 
<https://nifi.apache.org/docs/nifi-docs/html/developer-guide.html#AbstractProcessor>


Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On May 11, 2017, at 9:10 AM, [email protected] wrote:
> 
> Hi,
> 
> I would like to implement a runtime-duration-slider (scheduling tab of 
> processor)
> 
> Some packaged processors have this for higher throughput.
> 
> Any thoughts how?
> 
> Greets
> Ruurd Schoonheim

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to