nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 尹文才 <batman...@gmail.com>
Subject Re: get ControllerService inside Advanced custom UI
Date Sun, 02 Jul 2017 04:15:45 GMT
Thanks Matt, how should I get the service identifier with the method
getComponentDetails, do you mean I should add a service identifier property
in my processor to let user to specify it for the controller service? In
that case how could the service identifier configured associate with the
configured controller service?

Regards,
Ben

2017-07-01 21:35 GMT+08:00 Matt Gilman <matt.c.gilman@gmail.com>:

> Ben,
>
> That is the correct method to invoke. The serviceIdentifier will be the
> value of the Property that identifies the service in question. The
> componentId will be the identifier of Processor. You'll need to invoke
>
> ComponentDetails getComponentDetails(NiFiWebRequestContext requestContext)
>
> in order to get the service identifier from the configured properties.
>
> Thanks
>
> Matt
>
> On Sat, Jul 1, 2017 at 4:17 AM, 尹文才 <batman713@gmail.com> wrote:
>
> > Hi guys, I' m currently creating a custom UI for my processor and I need
> to
> > get the DBCP Connection ControllerService in the backend code for the UI,
> > the ControllerService is a property defined in the processor properties.
> I
> > saw there's one method in class NiFiWebConfigurationContext as below:
> >
> > ontrollerService getControllerService(String serviceIdentifier, String
> > componentId);
> >
> >
> > However this method requires the serviceIdentifier which I don't know
> >
> > how to obtain. How exactly should I get the ControllerService?
> >
> > Thanks.
> >
> >
> > Regards,
> >
> > Ben
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message