List installed plugins from within plugin

Hi all,

I am currently creating a plugin, but need to know if there is another plugin installed before indexing some documents.

I know there is the _cat/plugins API, but is there any way to get the list of currently installed plugins without making an API call? I see NodeInfo class holds this information but I can't figure out a way to access this.

Any help would be great! Thanks!

The way to do this is with a NodeInfoRequest using the NodeClient, but this probably is not something you want to do on every indexing request. What is it about another plugin being installed you want to know? If you can explain more about what you are trying to achieve, we can probably help come up with another alternative.