Hi all,
I’m developing an IIQ plugin for my organization to use. Besides of REST endpoints it exposes, I also need some code to “run always” in the background (it checks some server for updates every few seconds). I do prefer if it will always run and not get triggered every period of time.
As far as I understood from the docs, the most appropriate way of doing so is by implementing a ServiceExecutor. I tried to do exactly that - based on the SIEM community plugin - I implement a class that extends BasePluginService, and it’s configure() and execute() methods. I then register the class as serviceExecutors entry in the manifest.xml file, but when I install the plugin the service doesn’t seem to run.
Few questions I have:
Is there any step I’m missing in order for the service to actually register to IIQ? I couldn’t find a full documentation of the process
Is the ServiceExecutor the right solution for my needs?
When does the execute() method runs exactly? And, does it happen by default when I install the plugin or do I need to enable it in some way?
I’ve never implemented a service, but I am assuming you need to define a ServiceDefinition object which references your executor class. There are a bunch of out of the box ones you can reference in debug.