Hi all,
we want to write a Plugin that needs to be able to perform certain operations, that wouldn't be a problem over the API. But I have the feeling, that it is not a good idea, to do a REST call from within a Plugin, and that there should be a better way to access certain functionality?
Concretely:
- check, if the local node is the current Master
- close an index
Ideally also: - check, how long an Index is open
- get the Index that is open for the longest time
Are there components that I could inject into the Plugin to perform these operations and get this information ?
Thanks !
Martin