# ignite-868 Fixed test.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/780afb92 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/780afb92 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/780afb92 Branch: refs/heads/ignite-868 Commit: 780afb9298886d63ed12fba76949db4c9261d4bc Parents: 2ac7301 Author: Andrey <anovi...@gridgain.com> Authored: Mon Jun 1 09:43:51 2015 +0700 Committer: Andrey <anovi...@gridgain.com> Committed: Mon Jun 1 09:43:51 2015 +0700 ---------------------------------------------------------------------- .../org/apache/ignite/internal/GridUpdateNotifier.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/780afb92/modules/core/src/main/java/org/apache/ignite/internal/GridUpdateNotifier.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/GridUpdateNotifier.java b/modules/core/src/main/java/org/apache/ignite/internal/GridUpdateNotifier.java index dc22128..30330a6 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/GridUpdateNotifier.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/GridUpdateNotifier.java @@ -41,9 +41,6 @@ import static java.net.URLEncoder.*; * gracefully ignore any errors occurred during notification and verification process. */ class GridUpdateNotifier { - /** Access URL to be used to access latest version data. */ - private static final String UPD_STATUS_PARAMS = IgniteProperties.get("ignite.update.status.params"); - /** Throttling for logging out. */ private static final long THROTTLE_PERIOD = 24 * 60 * 60 * 1000; // 1 day. @@ -68,6 +65,9 @@ class GridUpdateNotifier { /** Grid name. */ private final String gridName; + /** Access URL to be used to access latest version data. */ + private final String updStatusParams; + /** Whether or not to report only new version. */ private volatile boolean reportOnlyNew; @@ -116,6 +116,9 @@ class GridUpdateNotifier { url = "http://tiny.cc/updater/update_status_ignite.php"; this.gridName = gridName == null ? "null" : gridName; + + updStatusParams = IgniteProperties.get("ignite.update.status.params"); + this.gw = gw; pluginVers = U.newHashMap(pluginProviders.size()); @@ -286,7 +289,7 @@ class GridUpdateNotifier { String postParams = "gridName=" + encode(gridName, CHARSET) + - (!F.isEmpty(UPD_STATUS_PARAMS) ? "&" + UPD_STATUS_PARAMS : "") + + (!F.isEmpty(updStatusParams) ? "&" + updStatusParams : "") + (topSize > 0 ? "&topSize=" + topSize : "") + (!F.isEmpty(stackTrace) ? "&stackTrace=" + encode(stackTrace, CHARSET) : "") + (!F.isEmpty(vmProps) ? "&vmProps=" + encode(vmProps, CHARSET) : "") +