I’m still working on the idea, probably it will end up in something with a little bit of conventions for the structure of the files, but these are the key points I really need for this tool:
It’s pretty simple: just configure any number of intervals, a callback in case of success, a callback in case of failure, and the function that checks the server
Each callback(), failback(), checkback() run in the Poller context, means that this operator points to the Poller instance.
A bunch of additional methods are available like: start(), stop(), restart(), next().
To do: implement Deferred pattern for the method that checks the server
Update: Update with a GitHub repository and support for deferred/promise.