ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [2/2] ignite git commit: IGNITE-2834: Implemented (2).
Date Thu, 17 Mar 2016 14:03:59 GMT
IGNITE-2834: Implemented (2).


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

Branch: refs/heads/ignite-2834
Commit: cd0b132658e32ce4ff82e91c2c16a07a416d14f1
Parents: 83048d5
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Thu Mar 17 17:03:30 2016 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Thu Mar 17 17:03:30 2016 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheUtils.java  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/cd0b1326/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
index 617d9b8..1cdd303 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheUtils.java
@@ -73,6 +73,7 @@ import org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx
 import org.apache.ignite.internal.processors.cache.transactions.IgniteTxEntry;
 import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
 import org.apache.ignite.internal.processors.cache.version.GridCacheVersionEx;
+import org.apache.ignite.internal.processors.igfs.IgfsUtils;
 import org.apache.ignite.internal.transactions.IgniteTxRollbackCheckedException;
 import org.apache.ignite.internal.util.lang.IgniteInClosureX;
 import org.apache.ignite.internal.util.typedef.C1;
@@ -1377,6 +1378,15 @@ public class GridCacheUtils {
 //    }
 
     /**
+     * @param cfg Grid configuration.
+     * @param cacheName Cache name.
+     * @return {@code True} in this is IGFS data or meta cache.
+     */
+    public static boolean isIgfsCache(IgniteConfiguration cfg, @Nullable String cacheName)
{
+        return IgfsUtils.isIgfsCache(cfg, cacheName);
+    }
+
+    /**
      * Convert TTL to expire time.
      *
      * @param ttl TTL.


Mime
View raw message