Description of problem: In order to implement Bug 1029409 we need some mechanism to notify plugins about updated schedules. Fortunately there's already a "message" sent from server to agent when measurement schedules change. The idea is to introduce new Listener interface that would be implemented by ResourceComponent classes. Agent internal code would invoke this interface whenever it recieved a request from server about updated metric schedules. This approach has a drawback. Resource component would get invoked many times on many agents in case user changes/enables metric schedule on resource type level. On the other hand it gives a plugin writer a way to implement this listener per resource (if given metric was enabled on resource A and stays disabled on B, plugin can configure managed resource to "produce" metric for resource A only) AS7 plugin can implement this interface just by checking whether global EJB3 statistics are enabled and would enable it eventually. Additional info:
Based on discussion with mazz and Heiko, we don't need this implemented.