ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: # IGNITE-45 Fix TCK on teamcity.
Date Mon, 16 Mar 2015 16:24:44 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45 fbc56e856 -> d9d895f3a


# IGNITE-45 Fix TCK on teamcity.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/d9d895f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/d9d895f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/d9d895f3

Branch: refs/heads/ignite-45
Commit: d9d895f3a470ca0ac9dce47f938e9e4104cfebd0
Parents: fbc56e8
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Mon Mar 16 19:24:03 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Mon Mar 16 19:24:03 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/cache/CacheManager.java   | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d9d895f3/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
index 94bd376..83443b3 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
@@ -31,6 +31,7 @@ import javax.cache.management.*;
 import javax.management.*;
 import java.net.*;
 import java.util.*;
+import java.util.concurrent.atomic.*;
 
 /**
  * Implementation of JSR-107 {@link CacheManager}.
@@ -43,6 +44,9 @@ public class CacheManager implements javax.cache.CacheManager {
     private static final String CACHE_CONFIGURATION = "CacheConfiguration";
 
     /** */
+    private static final AtomicInteger igniteCnt = new AtomicInteger();
+
+    /** */
     private final URI uri;
 
     /** */
@@ -76,8 +80,7 @@ public class CacheManager implements javax.cache.CacheManager {
             if (uri.equals(cachingProvider.getDefaultURI())) {
                 IgniteConfiguration cfg = new IgniteConfiguration();
 
-                cfg.setGridName("CacheManager [uri=" + uri.toString() + ", classLoader="
-                    + clsLdr.getClass().getSimpleName() + '#' + clsLdr.hashCode());
+                cfg.setGridName("CacheManager_" + igniteCnt.getAndIncrement());
 
                 ignite = (IgniteKernal)IgnitionEx.start(cfg);
             }


Mime
View raw message