Bug 1147930

Summary: Notify resource components when metric schedules changed
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: AgentAssignee: Libor Zoubek <lzoubek>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: theute
Target Milestone: ER05   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-30 13:58:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2014-09-30 10:38:18 UTC
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:

Comment 1 Libor Zoubek 2014-09-30 13:58:23 UTC
Based on discussion with mazz and Heiko, we don't need this implemented.