Hi Joe,

I'm not sure if a controller service can do this, but a ReportingTask has
access to similar information.

A ReportingTask gets access to a ReportingContext, which can access
EventAccess which can access ProcessGroupStatus.

>From ProcessGroupStatus you are at the root process group and can enumerate
the flow:

private Collection<ConnectionStatus> connectionStatus = new ArrayList<>();
private Collection<ProcessorStatus> processorStatus = new ArrayList<>();
private Collection<ProcessGroupStatus> processGroupStatus = new
ArrayList<>();
private Collection<RemoteProcessGroupStatus> remoteProcessGroupStatus = new
ArrayList<>();
private Collection<PortStatus> inputPortStatus = new ArrayList<>();
private Collection<PortStatus> outputPortStatus = new ArrayList<>();

Not sure if that is what you were looking for.

-Bryan


On Fri, Apr 22, 2016 at 8:25 AM, Joe Skora <[email protected]> wrote:

> Is it possible and if so what is the best way for a controller service to
> get the collection of all processors or queues?
>
> The goal being to iterate over the collection of processors or queues to
> gather information or make adjustments to the flow.
>

Reply via email to