Author: rareddy
Date: 2010-06-03 19:05:59 -0400 (Thu, 03 Jun 2010)
New Revision: 2175
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/process/DQPConfiguration.java
Log:
TEIID-1062: adding support for exposing the teiid runtime version through managed
property.
Modified: trunk/engine/src/main/java/org/teiid/dqp/internal/process/DQPConfiguration.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/dqp/internal/process/DQPConfiguration.java 2010-06-03
21:55:23 UTC (rev 2174)
+++
trunk/engine/src/main/java/org/teiid/dqp/internal/process/DQPConfiguration.java 2010-06-03
23:05:59 UTC (rev 2175)
@@ -23,6 +23,7 @@
import org.jboss.managed.api.annotation.ManagementProperty;
import org.teiid.client.RequestMessage;
+import org.teiid.core.util.ApplicationInfo;
public class DQPConfiguration{
@@ -172,5 +173,10 @@
public void setQueryThresholdInSecs(int queryThresholdInSecs) {
this.queryThresholdInSecs = queryThresholdInSecs;
- }
+ }
+
+ @ManagementProperty(description="Teiid runtime version", readOnly=true)
+ public String getRuntimeVersion() {
+ return ApplicationInfo.getInstance().getBuildNumber();
+ }
}