Bug 535453 (RHQ-2147)

Summary: allow a resource type to have multiple possible parent resource types via "references" in the plugin descriptor
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Plugin ContainerAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ccrouch, cwelton, jshaughn
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2147
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-05 17:24:48 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Ian Springer 2009-06-12 09:41:00 EDT
This would allow us to merge for a number of "duplicate" Resource types (e.g. EJBs under either standalone EJB-JAR or embedded EJB-JAR; JVMs under JBossAS, Tomcat, or RHQ Agent; Scripts under different Server types; etc.)

Note, our model already supports this, and we already allow it for servers and top-level services, which can potentially have any of the platform resource types as parents. I think a nice way to support it across the boards at the plugin descriptor level would be using the notion of references, e.g.:

<server name="JBossAS Server">
   <service name="Web Application (WAR)">
      <metric ...>
      <operation ...>
         etc.
   </service>
   <service name="Enterprise Application (EAR)">
      <service ref="Web Application (WAR)"/>
           ...
      </service>
       ...
</server>

Comment 1 Red Hat Bugzilla 2009-11-10 15:58:46 EST
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2147
Comment 3 Jay Shaughnessy 2014-05-05 17:24:48 EDT
See the use of ENTITY in AS7 plugin.  That is the style used for this.