ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject ignite git commit: IGNITE-1364: GridImpl -> IgniteImpl.
Date Thu, 03 Sep 2015 12:26:27 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1364 9691415af -> 778170b4a


IGNITE-1364: GridImpl -> IgniteImpl.


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

Branch: refs/heads/ignite-1364
Commit: 778170b4aa09ef85b953b59dabe8589ce3215671
Parents: 9691415
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Thu Sep 3 15:27:04 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Thu Sep 3 15:27:04 2015 +0300

----------------------------------------------------------------------
 modules/platform/src/main/cpp/core/Makefile.am  |   2 +-
 .../src/main/cpp/core/include/Makefile.am       |   2 +-
 .../src/main/cpp/core/include/ignite/grid.h     |   6 +-
 .../cpp/core/include/ignite/impl/grid_impl.h    | 146 -------------------
 .../cpp/core/include/ignite/impl/ignite_impl.h  | 146 +++++++++++++++++++
 .../src/main/cpp/core/project/vs/core.vcxproj   |   4 +-
 .../cpp/core/project/vs/core.vcxproj.filters    |   4 +-
 .../main/cpp/core/project/vs/core.vcxprojrel    |   4 +-
 modules/platform/src/main/cpp/core/src/grid.cpp |   6 +-
 .../platform/src/main/cpp/core/src/ignition.cpp |   6 +-
 .../src/main/cpp/core/src/impl/grid_impl.cpp    |  42 ------
 .../src/main/cpp/core/src/impl/ignite_impl.cpp  |  42 ++++++
 12 files changed, 205 insertions(+), 205 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/Makefile.am
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/Makefile.am b/modules/platform/src/main/cpp/core/Makefile.am
index 180c71f..27b7213 100644
--- a/modules/platform/src/main/cpp/core/Makefile.am
+++ b/modules/platform/src/main/cpp/core/Makefile.am
@@ -48,7 +48,7 @@ COMMON_SRC = os/linux/src/impl/utils.cpp \
              src/impl/grid_environment.cpp \
              src/impl/cache/query/query_impl.cpp \
              src/impl/cache/cache_impl.cpp \
-             src/impl/grid_impl.cpp \
+             src/impl/ignite_impl.cpp \
              src/grid.cpp \
              src/ignition.cpp
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/include/Makefile.am
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/include/Makefile.am b/modules/platform/src/main/cpp/core/include/Makefile.am
index 4ee48d2..bba330b 100644
--- a/modules/platform/src/main/cpp/core/include/Makefile.am
+++ b/modules/platform/src/main/cpp/core/include/Makefile.am
@@ -43,7 +43,7 @@ nobase_include_HEADERS = ignite/cache/cache.h \
                          ignite/impl/portable/portable_utils.h \
                          ignite/impl/portable/portable_writer_impl.h \
                          ignite/impl/grid_environment.h \
-                         ignite/impl/grid_impl.h \
+                         ignite/impl/ignite_impl.h \
                          ignite/impl/handle_registry.h \
                          ignite/impl/operations.h \
                          ignite/portable/portable.h \

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/include/ignite/grid.h
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/include/ignite/grid.h b/modules/platform/src/main/cpp/core/include/ignite/grid.h
index 5ab9c80..a8d0f42 100644
--- a/modules/platform/src/main/cpp/core/include/ignite/grid.h
+++ b/modules/platform/src/main/cpp/core/include/ignite/grid.h
@@ -19,7 +19,7 @@
 #define _IGNITE_GRID
 
 #include "ignite/cache/cache.h"
-#include "ignite/impl/grid_impl.h"
+#include "ignite/impl/ignite_impl.h"
 #include "ignite/ignite_configuration.h"
 
 namespace ignite
@@ -38,7 +38,7 @@ namespace ignite
         /**
          * Constructor.
          */
-        Grid(impl::GridImpl* impl);
+        Grid(impl::IgniteImpl* impl);
         
         /**
          * Get name of the grid.
@@ -147,7 +147,7 @@ namespace ignite
         }
     private:
         /** Implementation delegate. */
-        ignite::common::concurrent::SharedPointer<impl::GridImpl> impl;
+        ignite::common::concurrent::SharedPointer<impl::IgniteImpl> impl;
     };
 }
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/include/ignite/impl/grid_impl.h
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/include/ignite/impl/grid_impl.h b/modules/platform/src/main/cpp/core/include/ignite/impl/grid_impl.h
deleted file mode 100644
index 0cbcc0a..0000000
--- a/modules/platform/src/main/cpp/core/include/ignite/impl/grid_impl.h
+++ /dev/null
@@ -1,146 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef _IGNITE_GRID_IMPL
-#define _IGNITE_GRID_IMPL
-
-#include <ignite/common/concurrent.h>
-#include <ignite/common/java.h>
-
-#include "ignite/impl/cache/cache_impl.h"
-#include "ignite/impl/grid_environment.h"
-#include "ignite/impl/utils.h"
-
-namespace ignite 
-{    
-    namespace impl 
-    {            
-        /**
-         * Grid implementation.
-         */
-        class GridImpl
-        {
-            friend class Grid;
-        public:
-            /**
-             * Constructor used to create new instance.
-             *
-             * @param env Environment.
-             * @param javaRef Reference to java object.
-             */
-            GridImpl(ignite::common::concurrent::SharedPointer<GridEnvironment> env,
jobject javaRef);
-            
-            /**
-             * Destructor.
-             */
-            ~GridImpl();
-
-            /**
-             * Get name of the grid.
-             *
-             * @param Name.
-             */
-            char* GetName();
-
-            /**
-             * Get cache.
-             *
-             * @param name Cache name.
-             * @param err Error.
-             */
-            template<typename K, typename V> 
-            cache::CacheImpl* GetCache(const char* name, IgniteError* err)
-            {
-                ignite::common::java::JniErrorInfo jniErr;
-
-                jobject cacheJavaRef = env.Get()->Context()->ProcessorCache(javaRef,
name, &jniErr);
-
-                if (!cacheJavaRef)
-                {
-                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
-
-                    return NULL;
-                }
-
-                char* name0 = utils::CopyChars(name);
-
-                return new cache::CacheImpl(name0, env, cacheJavaRef);
-            }
-
-            /**
-             * Get or create cache.
-             *
-             * @param name Cache name.
-             * @param err Error.
-             */
-            template<typename K, typename V>
-            cache::CacheImpl* GetOrCreateCache(const char* name, IgniteError* err)
-            {
-                ignite::common::java::JniErrorInfo jniErr;
-
-                jobject cacheJavaRef = env.Get()->Context()->ProcessorGetOrCreateCache(javaRef,
name, &jniErr);
-
-                if (!cacheJavaRef)
-                {
-                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
-
-                    return NULL;
-                }
-
-                char* name0 = utils::CopyChars(name);
-
-                return new cache::CacheImpl(name0, env, cacheJavaRef);
-            }
-
-            /**
-             * Create cache.
-             *
-             * @param name Cache name.
-             * @param err Error.
-             */
-            template<typename K, typename V>
-            cache::CacheImpl* CreateCache(const char* name, IgniteError* err)
-            {
-                ignite::common::java::JniErrorInfo jniErr;
-
-                jobject cacheJavaRef = env.Get()->Context()->ProcessorCreateCache(javaRef,
name, &jniErr);
-
-                if (!cacheJavaRef)
-                {
-                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
-
-                    return NULL;
-                }
-
-                char* name0 = utils::CopyChars(name);
-
-                return new cache::CacheImpl(name0, env, cacheJavaRef);
-            }
-        private:
-            /** Environment. */
-            ignite::common::concurrent::SharedPointer<GridEnvironment> env;
-            
-            /** Native Java counterpart. */
-            jobject javaRef;   
-            
-            IGNITE_NO_COPY_ASSIGNMENT(GridImpl)
-        };
-    }
-    
-}
-
-#endif
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/include/ignite/impl/ignite_impl.h
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/include/ignite/impl/ignite_impl.h b/modules/platform/src/main/cpp/core/include/ignite/impl/ignite_impl.h
new file mode 100644
index 0000000..a69b2b5
--- /dev/null
+++ b/modules/platform/src/main/cpp/core/include/ignite/impl/ignite_impl.h
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _IGNITE_IMPL
+#define _IGNITE_IMPL
+
+#include <ignite/common/concurrent.h>
+#include <ignite/common/java.h>
+
+#include "ignite/impl/cache/cache_impl.h"
+#include "ignite/impl/grid_environment.h"
+#include "ignite/impl/utils.h"
+
+namespace ignite 
+{    
+    namespace impl 
+    {            
+        /**
+         * Grid implementation.
+         */
+        class IgniteImpl
+        {
+            friend class Grid;
+        public:
+            /**
+             * Constructor used to create new instance.
+             *
+             * @param env Environment.
+             * @param javaRef Reference to java object.
+             */
+            IgniteImpl(ignite::common::concurrent::SharedPointer<GridEnvironment> env,
jobject javaRef);
+            
+            /**
+             * Destructor.
+             */
+            ~IgniteImpl();
+
+            /**
+             * Get name of the grid.
+             *
+             * @param Name.
+             */
+            char* GetName();
+
+            /**
+             * Get cache.
+             *
+             * @param name Cache name.
+             * @param err Error.
+             */
+            template<typename K, typename V> 
+            cache::CacheImpl* GetCache(const char* name, IgniteError* err)
+            {
+                ignite::common::java::JniErrorInfo jniErr;
+
+                jobject cacheJavaRef = env.Get()->Context()->ProcessorCache(javaRef,
name, &jniErr);
+
+                if (!cacheJavaRef)
+                {
+                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
+
+                    return NULL;
+                }
+
+                char* name0 = utils::CopyChars(name);
+
+                return new cache::CacheImpl(name0, env, cacheJavaRef);
+            }
+
+            /**
+             * Get or create cache.
+             *
+             * @param name Cache name.
+             * @param err Error.
+             */
+            template<typename K, typename V>
+            cache::CacheImpl* GetOrCreateCache(const char* name, IgniteError* err)
+            {
+                ignite::common::java::JniErrorInfo jniErr;
+
+                jobject cacheJavaRef = env.Get()->Context()->ProcessorGetOrCreateCache(javaRef,
name, &jniErr);
+
+                if (!cacheJavaRef)
+                {
+                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
+
+                    return NULL;
+                }
+
+                char* name0 = utils::CopyChars(name);
+
+                return new cache::CacheImpl(name0, env, cacheJavaRef);
+            }
+
+            /**
+             * Create cache.
+             *
+             * @param name Cache name.
+             * @param err Error.
+             */
+            template<typename K, typename V>
+            cache::CacheImpl* CreateCache(const char* name, IgniteError* err)
+            {
+                ignite::common::java::JniErrorInfo jniErr;
+
+                jobject cacheJavaRef = env.Get()->Context()->ProcessorCreateCache(javaRef,
name, &jniErr);
+
+                if (!cacheJavaRef)
+                {
+                    IgniteError::SetError(jniErr.code, jniErr.errCls, jniErr.errMsg, err);
+
+                    return NULL;
+                }
+
+                char* name0 = utils::CopyChars(name);
+
+                return new cache::CacheImpl(name0, env, cacheJavaRef);
+            }
+        private:
+            /** Environment. */
+            ignite::common::concurrent::SharedPointer<GridEnvironment> env;
+            
+            /** Native Java counterpart. */
+            jobject javaRef;   
+            
+            IGNITE_NO_COPY_ASSIGNMENT(IgniteImpl)
+        };
+    }
+    
+}
+
+#endif
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/project/vs/core.vcxproj
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/project/vs/core.vcxproj b/modules/platform/src/main/cpp/core/project/vs/core.vcxproj
index c197406..124bea8 100644
--- a/modules/platform/src/main/cpp/core/project/vs/core.vcxproj
+++ b/modules/platform/src/main/cpp/core/project/vs/core.vcxproj
@@ -205,7 +205,7 @@
     <ClInclude Include="..\..\include\ignite\impl\cache\cache_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\cache\query\query_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\grid_environment.h" />
-    <ClInclude Include="..\..\include\ignite\impl\grid_impl.h" />
+    <ClInclude Include="..\..\include\ignite\impl\ignite_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\handle_registry.h" />
     <ClInclude Include="..\..\include\ignite\impl\interop\interop.h" />
     <ClInclude Include="..\..\include\ignite\impl\interop\interop_input_stream.h" />
@@ -241,7 +241,7 @@
     <ClCompile Include="..\..\src\impl\cache\cache_impl.cpp" />
     <ClCompile Include="..\..\src\impl\cache\query\query_impl.cpp" />
     <ClCompile Include="..\..\src\impl\grid_environment.cpp" />
-    <ClCompile Include="..\..\src\impl\grid_impl.cpp" />
+    <ClCompile Include="..\..\src\impl\ignite_impl.cpp" />
     <ClCompile Include="..\..\src\impl\handle_registry.cpp" />
     <ClCompile Include="..\..\src\impl\interop\interop_input_stream.cpp" />
     <ClCompile Include="..\..\src\impl\interop\interop_memory.cpp" />

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/project/vs/core.vcxproj.filters
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/project/vs/core.vcxproj.filters b/modules/platform/src/main/cpp/core/project/vs/core.vcxproj.filters
index b0800fb..d7daaca 100644
--- a/modules/platform/src/main/cpp/core/project/vs/core.vcxproj.filters
+++ b/modules/platform/src/main/cpp/core/project/vs/core.vcxproj.filters
@@ -16,7 +16,7 @@
     <ClCompile Include="..\..\src\impl\grid_environment.cpp">
       <Filter>Code\impl</Filter>
     </ClCompile>
-    <ClCompile Include="..\..\src\impl\grid_impl.cpp">
+    <ClCompile Include="..\..\src\impl\ignite_impl.cpp">
       <Filter>Code\impl</Filter>
     </ClCompile>
     <ClCompile Include="..\..\src\portable\portable_containers.cpp">
@@ -108,7 +108,7 @@
     <ClInclude Include="..\..\include\ignite\impl\grid_environment.h">
       <Filter>Code\impl</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\include\ignite\impl\grid_impl.h">
+    <ClInclude Include="..\..\include\ignite\impl\ignite_impl.h">
       <Filter>Code\impl</Filter>
     </ClInclude>
     <ClInclude Include="..\..\include\ignite\impl\operations.h">

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/project/vs/core.vcxprojrel
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/project/vs/core.vcxprojrel b/modules/platform/src/main/cpp/core/project/vs/core.vcxprojrel
index c197406..124bea8 100644
--- a/modules/platform/src/main/cpp/core/project/vs/core.vcxprojrel
+++ b/modules/platform/src/main/cpp/core/project/vs/core.vcxprojrel
@@ -205,7 +205,7 @@
     <ClInclude Include="..\..\include\ignite\impl\cache\cache_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\cache\query\query_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\grid_environment.h" />
-    <ClInclude Include="..\..\include\ignite\impl\grid_impl.h" />
+    <ClInclude Include="..\..\include\ignite\impl\ignite_impl.h" />
     <ClInclude Include="..\..\include\ignite\impl\handle_registry.h" />
     <ClInclude Include="..\..\include\ignite\impl\interop\interop.h" />
     <ClInclude Include="..\..\include\ignite\impl\interop\interop_input_stream.h" />
@@ -241,7 +241,7 @@
     <ClCompile Include="..\..\src\impl\cache\cache_impl.cpp" />
     <ClCompile Include="..\..\src\impl\cache\query\query_impl.cpp" />
     <ClCompile Include="..\..\src\impl\grid_environment.cpp" />
-    <ClCompile Include="..\..\src\impl\grid_impl.cpp" />
+    <ClCompile Include="..\..\src\impl\ignite_impl.cpp" />
     <ClCompile Include="..\..\src\impl\handle_registry.cpp" />
     <ClCompile Include="..\..\src\impl\interop\interop_input_stream.cpp" />
     <ClCompile Include="..\..\src\impl\interop\interop_memory.cpp" />

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/src/grid.cpp
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/src/grid.cpp b/modules/platform/src/main/cpp/core/src/grid.cpp
index 21bbe34..f4e68c5 100644
--- a/modules/platform/src/main/cpp/core/src/grid.cpp
+++ b/modules/platform/src/main/cpp/core/src/grid.cpp
@@ -17,7 +17,7 @@
 
 #include <ignite/common/java.h>
 
-#include "ignite/impl/grid_impl.h"
+#include "ignite/impl/ignite_impl.h"
 #include "ignite/grid.h"
 
 using namespace ignite::common::concurrent;
@@ -25,12 +25,12 @@ using namespace ignite::impl;
 
 namespace ignite
 {    
-    Grid::Grid() : impl(SharedPointer<GridImpl>())
+    Grid::Grid() : impl(SharedPointer<IgniteImpl>())
     {
         // No-op.
     }
 
-    Grid::Grid(GridImpl* impl) : impl(SharedPointer<GridImpl>(impl))
+    Grid::Grid(IgniteImpl* impl) : impl(SharedPointer<IgniteImpl>(impl))
     {
         // No-op.
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/src/ignition.cpp
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/src/ignition.cpp b/modules/platform/src/main/cpp/core/src/ignition.cpp
index ea42210..ccd40fc 100644
--- a/modules/platform/src/main/cpp/core/src/ignition.cpp
+++ b/modules/platform/src/main/cpp/core/src/ignition.cpp
@@ -23,7 +23,7 @@
 #include <ignite/common/java.h>
 
 #include "ignite/impl/grid_environment.h"
-#include "ignite/impl/grid_impl.h"
+#include "ignite/impl/ignite_impl.h"
 #include "ignite/impl/utils.h"
 #include "ignite/ignition.h"
 
@@ -282,7 +282,7 @@ namespace ignite
         }
         else 
         {
-            GridImpl* impl = new GridImpl(env, javaRef);
+            IgniteImpl* impl = new IgniteImpl(env, javaRef);
 
             return Grid(impl);
         }
@@ -349,7 +349,7 @@ namespace ignite
                         if (err->GetCode() == IgniteError::IGNITE_SUCCESS) {
                             if (ref)
                             {
-                                GridImpl* impl = new GridImpl(*env, ref);
+                                IgniteImpl* impl = new IgniteImpl(*env, ref);
 
                                 res = Grid(impl);
                             }

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/src/impl/grid_impl.cpp
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/src/impl/grid_impl.cpp b/modules/platform/src/main/cpp/core/src/impl/grid_impl.cpp
deleted file mode 100644
index 2328239..0000000
--- a/modules/platform/src/main/cpp/core/src/impl/grid_impl.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "ignite/impl/grid_impl.h"
-
-using namespace ignite::common::concurrent;
-using namespace ignite::common::java;
-
-namespace ignite
-{    
-    namespace impl
-    {
-        GridImpl::GridImpl(SharedPointer<GridEnvironment> env, jobject javaRef) : env(env),
javaRef(javaRef)
-        {
-            // No-op.
-        }
-
-        GridImpl::~GridImpl()
-        {
-            JniContext::Release(javaRef);
-        }
-
-        char* GridImpl::GetName()
-        {
-            return env.Get()->GridName();
-        }
-    }    
-}

http://git-wip-us.apache.org/repos/asf/ignite/blob/778170b4/modules/platform/src/main/cpp/core/src/impl/ignite_impl.cpp
----------------------------------------------------------------------
diff --git a/modules/platform/src/main/cpp/core/src/impl/ignite_impl.cpp b/modules/platform/src/main/cpp/core/src/impl/ignite_impl.cpp
new file mode 100644
index 0000000..189b6b0
--- /dev/null
+++ b/modules/platform/src/main/cpp/core/src/impl/ignite_impl.cpp
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "ignite/impl/ignite_impl.h"
+
+using namespace ignite::common::concurrent;
+using namespace ignite::common::java;
+
+namespace ignite
+{    
+    namespace impl
+    {
+        IgniteImpl::IgniteImpl(SharedPointer<GridEnvironment> env, jobject javaRef)
: env(env), javaRef(javaRef)
+        {
+            // No-op.
+        }
+
+        IgniteImpl::~IgniteImpl()
+        {
+            JniContext::Release(javaRef);
+        }
+
+        char* IgniteImpl::GetName()
+        {
+            return env.Get()->GridName();
+        }
+    }    
+}


Mime
View raw message