Dynamic Types

Greg Hinkle greghinkle at gmail.com
Thu Oct 21 20:42:01 UTC 2010


Is there any documentation regarding the dynamic typing system? (or does it have any relation to 
http://rhq-project.org/display/RHQ/Design-Dynamic+Metadata )?


It seems like the types, once discovered, need to be persisted and merged on the server for 
consistency with the rest of the model... those would also need to be persistently sync'ed to the 
agents as well. Right?

-Greg


On Oct 21, 2010, at 4:37 PM, Heiko W.Rupp wrote:

> 
> Am 21.10.2010 um 22:31 schrieb Heiko W.Rupp:
>> 
>> Is there an (easy) way to reconnect the resources to the type once the type got re-discovered as described above?
> 
> 
> 
> Ah, I see near the end of org.rhq.core.pc.inventory.InventoryManager#mergeResource
>            resource.setResourceType(fullResourceType);
> 
>            resourceContainer = initResourceContainer(resource);
> ...
>        refreshResourceComponentState(resourceContainer, pluginConfigUpdated);
> 
> I guess this would mean to find the resource without type once the type is known
> again and run those above lines. Or is there a better idea? Especially as it looks like
> the information about that resource is lost when the first merge fails
> 
>    Heiko
> 
> -- 
> Reg. Adresse: Red Hat GmbH, Otto-Hahn-Strasse 20, 85609 Dornach bei München
> Handelsregister: Amtsgericht München HRB 153243
> Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham, Charles Cachera
> 
> _______________________________________________
> rhq-devel mailing list
> rhq-devel at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/rhq-devel



More information about the rhq-devel mailing list