Hi Joe,

Thanks for your response.

So the way is to get the instruction set from external source in onTrigger
method each time? Or is there any way to push immediate commands or
messages to the Procesor?

Maybe I can create a custom ControllerService that provides and caches the
current instruction set, then I can create a Custom processor that updates
the cache of the ControllerService, then use GetFile to poll a directory
where I can put files (commands) to be executed.



                              get current config
                            +--------------------> [config source endpoint]
   |
        +-------> ConfigLoaderProcessor
        |                        |
  GetFileProcessor               | update config cache
        |                        \/
    Directory            ConfigControllerService
        |                           ^
    CommandFile                     |
                                    .
                                    . get current config
                                    |
                      .......> RouterProcessor .....>


What do you think?

Thanks


On Thu, Jan 21, 2016 at 10:38 PM, Joe Witt <joe.w...@gmail.com> wrote:

> Frank,
>
> Absolutely.  Have seen several of these of various types of the years.
> It usually works best if the processor itself calls out/polls some
> endpoint to get the latest instruction set.  This approach tends to
> scale better, means clustered systems work smoothly as well, and it is
> nice from a reliability perspective.  You can still choose to push new
> configuration information to the processor but keep in mind you cannot
> change its properties while it is running.
>
> Feel free to fire more questions as you dig deeper into it.
>
> Thanks
> Joe
>
> On Thu, Jan 21, 2016 at 10:33 PM, Frank Martínez <mnesa...@gmail.com>
> wrote:
> > Hi Guys,
> >
> > I want to develop a custom Router processor, But I want that my processor
> > logic depends on external parameters than can be hot changed. So I have
> to
> > send some signals to the processor while it is running, so it will change
> > its internal routing logic. Is it possible to do that with apache nifi?
> >
> > Thanks,
> >
> > Frank Martínez.
> >
> > --
> > Frank D. Martínez M.
>



-- 
Frank D. Martínez M.

Reply via email to