Author: tejones
Date: 2010-06-04 17:00:20 -0400 (Fri, 04 Jun 2010)
New Revision: 2179
Modified:
trunk/console/src/main/java/org/teiid/rhq/plugin/PlatformDiscoveryComponent.java
Log:
TEIID-1111: Added Teiid version to discovered resource
Modified:
trunk/console/src/main/java/org/teiid/rhq/plugin/PlatformDiscoveryComponent.java
===================================================================
---
trunk/console/src/main/java/org/teiid/rhq/plugin/PlatformDiscoveryComponent.java 2010-06-04
20:48:04 UTC (rev 2178)
+++
trunk/console/src/main/java/org/teiid/rhq/plugin/PlatformDiscoveryComponent.java 2010-06-04
21:00:20 UTC (rev 2179)
@@ -67,7 +67,9 @@
PluginConstants.ComponentType.Platform.TEIID_TYPE,
PluginConstants.ComponentType.Platform.TEIID_SUB_TYPE),
PluginConstants.ComponentType.Platform.TEIID_RUNTIME_ENGINE);
-
+
+ String version = ProfileServiceUtil.getSimpleValue(mc, "runtimeVersion",
String.class);
+
/**
*
* A discovered resource must have a unique key, that must stay the same
@@ -76,9 +78,8 @@
DiscoveredResourceDetails detail = new DiscoveredResourceDetails(
discoveryContext.getResourceType(), // ResourceType
mc.getName(), // Resource Key
- PluginConstants.ComponentType.Platform.TEIID_ENGINE_RESOURCE_NAME, // Resource
- // Name
- null, // Version TODO can we get that from discovery ?
+ PluginConstants.ComponentType.Platform.TEIID_ENGINE_RESOURCE_NAME, // Resource name
+ version,
PluginConstants.ComponentType.Platform.TEIID_ENGINE_RESOURCE_DESCRIPTION, //
Description
discoveryContext.getDefaultPluginConfiguration(), // Plugin
// Config