modules/core/domain/src/main/java/org/rhq/core/domain/common/composite/SystemSetting.java | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 3ab3dd077d3750536da6528df506c88c7435b31b Author: Lukas Krejci lkrejci@redhat.com Date: Tue Oct 1 18:04:30 2013 +0200
[BZ 1011971] - Deprecate SystemSetting.SERVER_VERSION
We have equivalent, more detailed, always up-to-date and per-server information available in SystemManagerRemote.getProductInfo().
SERVER_VERSION would not be updated during server upgrades (this is old behavior present at least as of RHQ 4.4.0).
diff --git a/modules/core/domain/src/main/java/org/rhq/core/domain/common/composite/SystemSetting.java b/modules/core/domain/src/main/java/org/rhq/core/domain/common/composite/SystemSetting.java index ef9360c..d19e558 100644 --- a/modules/core/domain/src/main/java/org/rhq/core/domain/common/composite/SystemSetting.java +++ b/modules/core/domain/src/main/java/org/rhq/core/domain/common/composite/SystemSetting.java @@ -95,7 +95,14 @@ public enum SystemSetting { */ ALLOW_RESOURCE_GENERIC_PROPERTIES_UPGRADE("RESOURCE_GENERIC_PROPERTIES_UPGRADE", PropertySimpleType.BOOLEAN, true, true),
+ /** + * @deprecated This attribute is no longer maintained and might not reflect the true version of the running server. + * Use {@code SystemManagerRemote.getProductInfo()} method to get at an equivalent and always up-to-date + * information. + */ + @Deprecated SERVER_VERSION("SERVER_VERSION", PropertySimpleType.STRING, true, true), + DB_SCHEMA_VERSION("DB_SCHEMA_VERSION", PropertySimpleType.STRING, true, true),
/** How long do we keep data compressed in hourly intervals? This is not configurable through "normal" means but direct DB update. */