You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2015/12/08 14:17:39 UTC

[01/19] ignite git commit: first draft

Repository: ignite
Updated Branches:
  refs/heads/ignite-1694 [created] 4d79c2b65


first draft


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

Branch: refs/heads/ignite-1694
Commit: 7966a36aa604adc0df0afa310856295a06e9de1c
Parents: 894057e
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 16:22:57 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 16:22:57 2015 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7966a36a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 9a49fae..63ba30a 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -312,6 +312,10 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         private static readonly ProcessorDataStreamerDelegate PROCESSOR_DATA_STREAMER;
         private static readonly ProcessorTransactionsDelegate PROCESSOR_TRANSACTIONS;
         private static readonly ProcessorComputeDelegate PROCESSOR_COMPUTE;
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute")]
+        private static extern void* PROCESSOR_COMPUTE2(void* ctx, void* obj, void* prj);
+
         private static readonly ProcessorMessageDelegate PROCESSOR_MESSAGE;
         private static readonly ProcessorEventsDelegate PROCESSOR_EVENTS;
         private static readonly ProcessorServicesDelegate PROCESSOR_SERVICES;
@@ -719,7 +723,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ProcessorCompute(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
+            void* res = PROCESSOR_COMPUTE2(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }


[17/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: c9e37195a17522dbb59c2c3f6cdd25f50ac886c3
Parents: 036be93
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 11:53:45 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 11:53:45 2015 +0300

----------------------------------------------------------------------
 modules/platforms/dotnet/Apache.Ignite.FxCop | 221 ----------------------
 1 file changed, 221 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/c9e37195/modules/platforms/dotnet/Apache.Ignite.FxCop
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.FxCop b/modules/platforms/dotnet/Apache.Ignite.FxCop
index fddb1c8..0df73c5 100644
--- a/modules/platforms/dotnet/Apache.Ignite.FxCop
+++ b/modules/platforms/dotnet/Apache.Ignite.FxCop
@@ -386,220 +386,6 @@
        </Namespace>
        <Namespace Name="Apache.Ignite.Core.Impl.Unmanaged">
         <Types>
-         <Type Name="IgniteJniNativeMethods">
-          <Members>
-           <Member Name="#AtomicLongIsClosed(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.AtomicLongIsClosed(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CacheSize(System.Void*,System.Void*,System.Int32,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'loc'</Item>
-               <Item>'IgniteJniNativeMethods.CacheSize(void*, void*, int, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CacheTryEnterLock(System.Void*,System.Void*,System.Int64,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.CacheTryEnterLock(void*, void*, long, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#CreateContext(System.Void*,System.Int32,System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.CreateContext(void*, int, void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvm(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvmContext(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerAllowOverwriteGet(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteGet(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerAllowOverwriteSet(System.Void*,System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'val'</Item>
-               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteSet(void*, void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerSkipStoreGet(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreGet(void*, void*)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DataStreamerSkipStoreSet(System.Void*,System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'val'</Item>
-               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreSet(void*, void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#DestroyJvm(System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.DestroyJvm(void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'IgniteManager.DestroyJvm()'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#EventsIsEnabled(System.Void*,System.Void*,System.Int32)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.EventsIsEnabled(void*, void*, int)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#EventsStopLocalListen(System.Void*,System.Void*,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.EventsStopLocalListen(void*, void*, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#HandlersSize()">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.HandlersSize()'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedUtils.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedCallbacks.UnmanagedCallbacks()'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStart(System.Void*,System.SByte*,System.SByte*,System.Int32,System.Int64)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStart(UnmanagedContext, string, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStop(System.Void*,System.SByte*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'cancel'</Item>
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-              </Issue>
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-              </Issue>
-             </Message>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.Stop(string, bool)'</Item>
-              </Issue>
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.StopAll(bool)'</Item>
-              </Issue>
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#IgnitionStopAll(System.Void*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'cancel'</Item>
-               <Item>'IgniteJniNativeMethods.IgnitionStopAll(void*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorAtomicLong(System.Void*,System.Void*,System.SByte*,System.Int64,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'create'</Item>
-               <Item>'IgniteJniNativeMethods.ProcessorAtomicLong(void*, void*, sbyte*, long, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorDataStreamer(System.Void*,System.Void*,System.SByte*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'keepBinary'</Item>
-               <Item>'IgniteJniNativeMethods.ProcessorDataStreamer(void*, void*, sbyte*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ProcessorReleaseStart(System.Void*,System.Void*)">
-            <Messages>
-             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
-              <Issue Name="PlatformInvokeStack">
-               <Item>'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'</Item>
-               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.ProcessorReleaseStart(IUnmanagedTarget)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#ServicesGetServiceProxy(System.Void*,System.Void*,System.Char*,System.Boolean)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue>
-               <Item>'sticky'</Item>
-               <Item>'IgniteJniNativeMethods.ServicesGetServiceProxy(void*, void*, char*, bool)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-           <Member Name="#TxSetRollbackOnly(System.Void*,System.Void*,System.Int64)">
-            <Messages>
-             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
-              <Issue Name="Return">
-               <Item>'IgniteJniNativeMethods.TxSetRollbackOnly(void*, void*, long)'</Item>
-              </Issue>
-             </Message>
-            </Messages>
-           </Member>
-          </Members>
-         </Type>
          <Type Name="UnmanagedUtils">
           <Members>
            <Member Name="#.cctor()">
@@ -635,13 +421,6 @@
    <Rule TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810">
     <Resolution Name="Default">Initialize all static fields in {0} when those fields are declared and remove the explicit static constructor.</Resolution>
    </Rule>
-   <Rule TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414">
-    <Resolution Name="Default">Add the MarshalAsAttribute to parameter {0} of P/Invoke {1}. If the corresponding unmanaged parameter is a 4-byte Win32 'BOOL', use [MarshalAs(UnmanagedType.Bool)]. For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
-    <Resolution Name="Return">Add the MarshalAsAttribute to the return type of P/Invoke {0}. If the corresponding unmanaged return type is a 4-byte Win32 'BOOL', use MarshalAs(UnmanagedType.Bool). For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
-   </Rule>
-   <Rule TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118">
-    <Resolution Name="PlatformInvokeStack">Review declarative security for {0} and its callers for potential vulnerabilities. The following call stack might expose a way to circumvent security protection: {1}</Resolution>
-   </Rule>
    <Rule TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305">
     <Resolution Name="Default">Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.</Resolution>
    </Rule>


[03/19] ignite git commit: Delegates done

Posted by vo...@apache.org.
Delegates done


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

Branch: refs/heads/ignite-1694
Commit: 5aa5fcb5767aa6118fcbdc03c0352af05955d7b7
Parents: e429050
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:01:30 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:01:30 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 311 +++++++++++++++++++
 1 file changed, 311 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/5aa5fcb5/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index f0b3f4c..8e1eec5 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -34,109 +34,420 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         // ReSharper disable InconsistentNaming
 
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int REALLOCATE(long memPtr, int cap);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId, long dataPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal, bool create);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr, long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType, void* arg, long inMemPtr, long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int AffinityParts(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update, long access);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_CLEAR(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_ITERATOR(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void ContinuousQryClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* MessagingWithAsync(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void QryCursorIterator(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void QryCursorClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* ACQUIRE(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void RELEASE(void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout, int txSize);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int TxCommit(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int TxRollback(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int TxClose(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int TxState(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void TxResetMetrics(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void THROW_TO_JAVA(void* ctx, char* msg);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern int HANDLERS_SIZE();
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DELETE_CONTEXT(void* ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void DESTROY_JVM(void* ctx);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal, long newVal);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
+        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         private static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
 
         // ReSharper restore InconsistentNaming


[11/19] ignite git commit: Cleanup

Posted by vo...@apache.org.
Cleanup


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

Branch: refs/heads/ignite-1694
Commit: adcd04391a3a94f353055fbd4b7f2a27643349fe
Parents: 4b4eefd
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:41:49 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:41:49 2015 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/adcd0439/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index ca06ef0..c618c1d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -43,8 +43,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
             var ptr = NativeMethods.LoadLibrary(path);
 
             if (ptr == IntPtr.Zero)
-                throw new IgniteException("Failed to load " + IgniteUtils.FileIgniteJniDll + ": " + Marshal.GetLastWin32Error());
-
+                throw new IgniteException(string.Format("Failed to load {0}: {1}", 
+                    IgniteUtils.FileIgniteJniDll, Marshal.GetLastWin32Error()));
         }
 
         /// <summary>


[10/19] ignite git commit: Cleanup

Posted by vo...@apache.org.
Cleanup


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

Branch: refs/heads/ignite-1694
Commit: 4b4eefdb87f70db72115baaef662167b305dbf7a
Parents: 8a6f448
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:33:35 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:33:35 2015 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs         | 2 ++
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs    | 3 ---
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4b4eefdb/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
index b01f210..af473e4 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
@@ -18,10 +18,12 @@
 namespace Apache.Ignite.Core.Impl.Unmanaged
 {
     using System.Runtime.InteropServices;
+    using System.Security;
 
     /// <summary>
     /// Ignite JNI methods.
     /// </summary>
+    [SuppressUnmanagedCodeSecurity]
     internal unsafe static class IgniteJni
     {
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,

http://git-wip-us.apache.org/repos/asf/ignite/blob/4b4eefdb/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 288dc30..ca06ef0 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -20,7 +20,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     using System;
     using System.Diagnostics.CodeAnalysis;
     using System.Runtime.InteropServices;
-    using System.Security;
     using Apache.Ignite.Core.Common;
 
     using JNI = IgniteJni;
@@ -28,7 +27,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     /// <summary>
     /// Unmanaged utility classes.
     /// </summary>
-    [SuppressUnmanagedCodeSecurity]
     internal static unsafe class UnmanagedUtils
     {
         /** Interop factory ID for .Net. */
@@ -38,7 +36,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         /// Initializer.
         /// </summary>
         [SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
-        [SuppressMessage("Microsoft.Performance", "CA1810:InitializeReferenceTypeStaticFieldsInline")]
         static UnmanagedUtils()
         {
             var path = IgniteUtils.UnpackEmbeddedResource(IgniteUtils.FileIgniteJniDll);


[02/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: e4290506e38a0e47077fb6aa7af6a0744340ec5c
Parents: 7966a36
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 17:49:10 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 17:49:10 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 655 +++----------------
 1 file changed, 108 insertions(+), 547 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/e4290506/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 63ba30a..f0b3f4c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -19,10 +19,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 {
     using System;
     using System.Diagnostics.CodeAnalysis;
-    using System.Globalization;
     using System.Runtime.InteropServices;
     using Apache.Ignite.Core.Common;
-    using Apache.Ignite.Core.Impl.Common;
 
     /// <summary>
     /// Unmanaged utility classes.
@@ -32,409 +30,119 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         /** Interop factory ID for .Net. */
         private const int InteropFactoryId = 1;
 
-        #region PROCEDURE NAMES
-
-        private const string ProcReallocate = "IgniteReallocate";
-
-        private const string ProcIgnitionStart = "IgniteIgnitionStart";
-        private const string ProcIgnitionStop = "IgniteIgnitionStop";
-        private const string ProcIgnitionStopAll = "IgniteIgnitionStopAll";
-        
-        private const string ProcProcessorReleaseStart = "IgniteProcessorReleaseStart";
-        private const string ProcProcessorProjection = "IgniteProcessorProjection";
-        private const string ProcProcessorCache = "IgniteProcessorCache";
-        private const string ProcProcessorGetOrCreateCache = "IgniteProcessorGetOrCreateCache";
-        private const string ProcProcessorCreateCache = "IgniteProcessorCreateCache";
-        private const string ProcProcessorAffinity = "IgniteProcessorAffinity";
-        private const string ProcProcessorDataStreamer = "IgniteProcessorDataStreamer";
-        private const string ProcProcessorTransactions = "IgniteProcessorTransactions";
-        private const string ProcProcessorCompute = "IgniteProcessorCompute";
-        private const string ProcProcessorMessage = "IgniteProcessorMessage";
-        private const string ProcProcessorEvents = "IgniteProcessorEvents";
-        private const string ProcProcessorServices = "IgniteProcessorServices";
-        private const string ProcProcessorExtensions = "IgniteProcessorExtensions";
-        private const string ProcProcessorAtomicLong = "IgniteProcessorAtomicLong";
-        
-        private const string ProcTargetInStreamOutLong = "IgniteTargetInStreamOutLong";
-        private const string ProcTargetInStreamOutStream = "IgniteTargetInStreamOutStream";
-        private const string ProcTargetInStreamOutObject = "IgniteTargetInStreamOutObject";
-        private const string ProcTargetInObjectStreamOutStream = "IgniteTargetInObjectStreamOutStream";
-        private const string ProcTargetOutLong = "IgniteTargetOutLong";
-        private const string ProcTargetOutStream = "IgniteTargetOutStream";
-        private const string ProcTargetOutObject = "IgniteTargetOutObject";
-        private const string ProcTargetListenFut = "IgniteTargetListenFuture";
-        private const string ProcTargetListenFutForOp = "IgniteTargetListenFutureForOperation";
-
-        private const string ProcAffinityParts = "IgniteAffinityPartitions";
-
-        private const string ProcCacheWithSkipStore = "IgniteCacheWithSkipStore";
-        private const string ProcCacheWithNoRetries = "IgniteCacheWithNoRetries";
-        private const string ProcCacheWithExpiryPolicy = "IgniteCacheWithExpiryPolicy";
-        private const string ProcCacheWithAsync = "IgniteCacheWithAsync";
-        private const string ProcCacheWithKeepBinary = "IgniteCacheWithKeepPortable";
-        private const string ProcCacheClear = "IgniteCacheClear";
-        private const string ProcCacheRemoveAll = "IgniteCacheRemoveAll";
-        private const string ProcCacheOutOpQueryCursor = "IgniteCacheOutOpQueryCursor";
-        private const string ProcCacheOutOpContinuousQuery = "IgniteCacheOutOpContinuousQuery";
-        private const string ProcCacheIterator = "IgniteCacheIterator";
-        private const string ProcCacheLocalIterator = "IgniteCacheLocalIterator";
-        private const string ProcCacheEnterLock = "IgniteCacheEnterLock";
-        private const string ProcCacheExitLock = "IgniteCacheExitLock";
-        private const string ProcCacheTryEnterLock = "IgniteCacheTryEnterLock";
-        private const string ProcCacheCloseLock = "IgniteCacheCloseLock";
-        private const string ProcCacheRebalance = "IgniteCacheRebalance";
-        private const string ProcCacheSize = "IgniteCacheSize";
-
-        private const string ProcCacheStoreCallbackInvoke = "IgniteCacheStoreCallbackInvoke";
-
-        private const string ProcComputeWithNoFailover = "IgniteComputeWithNoFailover";
-        private const string ProcComputeWithTimeout = "IgniteComputeWithTimeout";
-        private const string ProcComputeExecuteNative = "IgniteComputeExecuteNative";
-
-        private const string ProcContinuousQryClose = "IgniteContinuousQueryClose";
-        private const string ProcContinuousQryGetInitialQueryCursor = "IgniteContinuousQueryGetInitialQueryCursor";
-
-        private const string ProcDataStreamerListenTop = "IgniteDataStreamerListenTopology";
-        private const string ProcDataStreamerAllowOverwriteGet = "IgniteDataStreamerAllowOverwriteGet";
-        private const string ProcDataStreamerAllowOverwriteSet = "IgniteDataStreamerAllowOverwriteSet";
-        private const string ProcDataStreamerSkipStoreGet = "IgniteDataStreamerSkipStoreGet";
-        private const string ProcDataStreamerSkipStoreSet = "IgniteDataStreamerSkipStoreSet";
-        private const string ProcDataStreamerPerNodeBufferSizeGet = "IgniteDataStreamerPerNodeBufferSizeGet";
-        private const string ProcDataStreamerPerNodeBufferSizeSet = "IgniteDataStreamerPerNodeBufferSizeSet";
-        private const string ProcDataStreamerPerNodeParallelOpsGet = "IgniteDataStreamerPerNodeParallelOperationsGet";
-        private const string ProcDataStreamerPerNodeParallelOpsSet = "IgniteDataStreamerPerNodeParallelOperationsSet";
-
-        private const string ProcMessagingWithAsync = "IgniteMessagingWithAsync";
-
-        private const string ProcQryCursorIterator = "IgniteQueryCursorIterator";
-        private const string ProcQryCursorClose = "IgniteQueryCursorClose";
-
-        private const string ProcProjectionForOthers = "IgniteProjectionForOthers";
-        private const string ProcProjectionForRemotes = "IgniteProjectionForRemotes";
-        private const string ProcProjectionForDaemons = "IgniteProjectionForDaemons";
-        private const string ProcProjectionForRandom = "IgniteProjectionForRandom";
-        private const string ProcProjectionForOldest = "IgniteProjectionForOldest";
-        private const string ProcProjectionForYoungest = "IgniteProjectionForYoungest";
-        private const string ProcProjectionResetMetrics = "IgniteProjectionResetMetrics";
-        private const string ProcProjectionOutOpRet = "IgniteProjectionOutOpRet";
-
-        private const string ProcAcquire = "IgniteAcquire";
-        private const string ProcRelease = "IgniteRelease";
-
-        private const string ProcTxStart = "IgniteTransactionsStart";
-        private const string ProcTxCommit = "IgniteTransactionsCommit";
-        private const string ProcTxCommitAsync = "IgniteTransactionsCommitAsync";
-        private const string ProcTxRollback = "IgniteTransactionsRollback";
-        private const string ProcTxRollbackAsync = "IgniteTransactionsRollbackAsync";
-        private const string ProcTxClose = "IgniteTransactionsClose";
-        private const string ProcTxState = "IgniteTransactionsState";
-        private const string ProcTxSetRollbackOnly = "IgniteTransactionsSetRollbackOnly";
-        private const string ProcTxResetMetrics = "IgniteTransactionsResetMetrics";
-
-        private const string ProcThrowToJava = "IgniteThrowToJava";
-
-        private const string ProcDestroyJvm = "IgniteDestroyJvm";
-
-        private const string ProcHandlersSize = "IgniteHandlersSize";
-
-        private const string ProcCreateContext = "IgniteCreateContext";
-        
-        private const string ProcEventsWithAsync = "IgniteEventsWithAsync";
-        private const string ProcEventsStopLocalListen = "IgniteEventsStopLocalListen";
-        private const string ProcEventsLocalListen = "IgniteEventsLocalListen";
-        private const string ProcEventsIsEnabled = "IgniteEventsIsEnabled";
-
-        private const string ProcDeleteContext = "IgniteDeleteContext";
-        
-        private const string ProcServicesWithAsync = "IgniteServicesWithAsync";
-        private const string ProcServicesWithServerKeepBinary = "IgniteServicesWithServerKeepPortable";
-        private const string ProcServicesCancel = "IgniteServicesCancel";
-        private const string ProcServicesCancelAll = "IgniteServicesCancelAll";
-        private const string ProcServicesGetServiceProxy = "IgniteServicesGetServiceProxy";
-
-        private const string ProcAtomicLongGet = "IgniteAtomicLongGet";
-        private const string ProcAtomicLongIncrementAndGet = "IgniteAtomicLongIncrementAndGet";
-        private const string ProcAtomicLongAddAndGet = "IgniteAtomicLongAddAndGet";
-        private const string ProcAtomicLongDecrementAndGet = "IgniteAtomicLongDecrementAndGet";
-        private const string ProcAtomicLongGetAndSet = "IgniteAtomicLongGetAndSet";
-        private const string ProcAtomicLongCompareAndSetAndGet = "IgniteAtomicLongCompareAndSetAndGet";
-        private const string ProcAtomicLongIsClosed = "IgniteAtomicLongIsClosed";
-        private const string ProcAtomicLongClose = "IgniteAtomicLongClose";
-
-        #endregion
-
-        #region DELEGATE DEFINITIONS
-
-        private delegate int ReallocateDelegate(long memPtr, int cap);
-
-        private delegate void* IgnitionStartDelegate(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId, long dataPtr);
-        private delegate bool IgnitionStopDelegate(void* ctx, sbyte* gridName, bool cancel);
-        private delegate void IgnitionStopAllDelegate(void* ctx, bool cancel);
-
-        private delegate void ProcessorReleaseStartDelegate(void* ctx, void* obj);
-        private delegate void* ProcessorProjectionDelegate(void* ctx, void* obj);
-        private delegate void* ProcessorCacheDelegate(void* ctx, void* obj, sbyte* name);
-        private delegate void* ProcessorCreateCacheDelegate(void* ctx, void* obj, sbyte* name);
-        private delegate void* ProcessorGetOrCreateCacheDelegate(void* ctx, void* obj, sbyte* name);
-        private delegate void* ProcessorAffinityDelegate(void* ctx, void* obj, sbyte* name);
-        private delegate void* ProcessorDataStreamerDelegate(void* ctx, void* obj, sbyte* name, bool keepBinary);
-        private delegate void* ProcessorTransactionsDelegate(void* ctx, void* obj);
-        private delegate void* ProcessorComputeDelegate(void* ctx, void* obj, void* prj);
-        private delegate void* ProcessorMessageDelegate(void* ctx, void* obj, void* prj);
-        private delegate void* ProcessorEventsDelegate(void* ctx, void* obj, void* prj);
-        private delegate void* ProcessorServicesDelegate(void* ctx, void* obj, void* prj);
-        private delegate void* ProcessorExtensionsDelegate(void* ctx, void* obj);
-        private delegate void* ProcessorAtomicLongDelegate(void* ctx, void* obj, sbyte* name, long initVal, bool create);
-        
-        private delegate long TargetInStreamOutLongDelegate(void* ctx, void* target, int opType, long memPtr);
-        private delegate void TargetInStreamOutStreamDelegate(void* ctx, void* target, int opType, long inMemPtr, long outMemPtr);
-        private delegate void* TargetInStreamOutObjectDelegate(void* ctx, void* target, int opType, long memPtr);
-        private delegate void TargetInObjectStreamOutStreamDelegate(void* ctx, void* target, int opType, void* arg, long inMemPtr, long outMemPtr);
-        private delegate long TargetOutLongDelegate(void* ctx, void* target, int opType);
-        private delegate void TargetOutStreamDelegate(void* ctx, void* target, int opType, long memPtr);
-        private delegate void* TargetOutObjectDelegate(void* ctx, void* target, int opType);
-        private delegate void TargetListenFutureDelegate(void* ctx, void* target, long futId, int typ);
-        private delegate void TargetListenFutureForOpDelegate(void* ctx, void* target, long futId, int typ, int opId);
-
-        private delegate int AffinityPartitionsDelegate(void* ctx, void* target);
-
-        private delegate void* CacheWithSkipStoreDelegate(void* ctx, void* obj);
-        private delegate void* CacheNoRetriesDelegate(void* ctx, void* obj);
-        private delegate void* CacheWithExpiryPolicyDelegate(void* ctx, void* obj, long create, long update, long access);
-        private delegate void* CacheWithAsyncDelegate(void* ctx, void* obj);
-        private delegate void* CacheWithKeepBinaryDelegate(void* ctx, void* obj);
-        private delegate void CacheClearDelegate(void* ctx, void* obj);
-        private delegate void CacheRemoveAllDelegate(void* ctx, void* obj);
-        private delegate void* CacheOutOpQueryCursorDelegate(void* ctx, void* obj, int type, long memPtr);
-        private delegate void* CacheOutOpContinuousQueryDelegate(void* ctx, void* obj, int type, long memPtr);
-        private delegate void* CacheIteratorDelegate(void* ctx, void* obj);
-        private delegate void* CacheLocalIteratorDelegate(void* ctx, void* obj, int peekModes);
-        private delegate void CacheEnterLockDelegate(void* ctx, void* obj, long id);
-        private delegate void CacheExitLockDelegate(void* ctx, void* obj, long id);
-        private delegate bool CacheTryEnterLockDelegate(void* ctx, void* obj, long id, long timeout);
-        private delegate void CacheCloseLockDelegate(void* ctx, void* obj, long id);
-        private delegate void CacheRebalanceDelegate(void* ctx, void* obj, long futId);
-        private delegate int CacheSizeDelegate(void* ctx, void* obj, int peekModes, bool loc);
-
-        private delegate void CacheStoreCallbackInvokeDelegate(void* ctx, void* obj, long memPtr);
-
-        private delegate void ComputeWithNoFailoverDelegate(void* ctx, void* target);
-        private delegate void ComputeWithTimeoutDelegate(void* ctx, void* target, long timeout);
-        private delegate void ComputeExecuteNativeDelegate(void* ctx, void* target, long taskPtr, long topVer);
-
-        private delegate void ContinuousQueryCloseDelegate(void* ctx, void* target);
-        private delegate void* ContinuousQueryGetInitialQueryCursorDelegate(void* ctx, void* target);
-
-        private delegate void DataStreamerListenTopologyDelegate(void* ctx, void* obj, long ptr);
-        private delegate bool DataStreamerAllowOverwriteGetDelegate(void* ctx, void* obj);
-        private delegate void DataStreamerAllowOverwriteSetDelegate(void* ctx, void* obj, bool val);
-        private delegate bool DataStreamerSkipStoreGetDelegate(void* ctx, void* obj);
-        private delegate void DataStreamerSkipStoreSetDelegate(void* ctx, void* obj, bool val);
-        private delegate int DataStreamerPerNodeBufferSizeGetDelegate(void* ctx, void* obj);
-        private delegate void DataStreamerPerNodeBufferSizeSetDelegate(void* ctx, void* obj, int val);
-        private delegate int DataStreamerPerNodeParallelOperationsGetDelegate(void* ctx, void* obj);
-        private delegate void DataStreamerPerNodeParallelOperationsSetDelegate(void* ctx, void* obj, int val);
-
-        private delegate void* MessagingWithAsyncDelegate(void* ctx, void* target);
-
-        private delegate void* ProjectionForOthersDelegate(void* ctx, void* obj, void* prj);
-		private delegate void* ProjectionForRemotesDelegate(void* ctx, void* obj);
-		private delegate void* ProjectionForDaemonsDelegate(void* ctx, void* obj);
-		private delegate void* ProjectionForRandomDelegate(void* ctx, void* obj);
-		private delegate void* ProjectionForOldestDelegate(void* ctx, void* obj);
-		private delegate void* ProjectionForYoungestDelegate(void* ctx, void* obj);
-		private delegate void ProjectionResetMetricsDelegate(void* ctx, void* obj);
-		private delegate void* ProjectionOutOpRetDelegate(void* ctx, void* obj, int type, long memPtr);
-
-        private delegate void QueryCursorIteratorDelegate(void* ctx, void* target);
-        private delegate void QueryCursorCloseDelegate(void* ctx, void* target);
-
-        private delegate void* AcquireDelegate(void* ctx, void* target);
-        private delegate void ReleaseDelegate(void* target);
-
-        private delegate long TransactionsStartDelegate(void* ctx, void* target, int concurrency, int isolation, long timeout, int txSize);
-        private delegate int TransactionsCommitDelegate(void* ctx, void* target, long id);
-        private delegate void TransactionsCommitAsyncDelegate(void* ctx, void* target, long id, long futId);
-        private delegate int TransactionsRollbackDelegate(void* ctx, void* target, long id);
-        private delegate void TransactionsRollbackAsyncDelegate(void* ctx, void* target, long id, long futId);
-        private delegate int TransactionsCloseDelegate(void* ctx, void* target, long id);
-        private delegate int TransactionsStateDelegate(void* ctx, void* target, long id);
-        private delegate bool TransactionsSetRollbackOnlyDelegate(void* ctx, void* target, long id);
-        private delegate void TransactionsResetMetricsDelegate(void* ctx, void* target);
-
-        private delegate void ThrowToJavaDelegate(void* ctx, char* msg);
-
-        private delegate void DestroyJvmDelegate(void* ctx);
-
-        private delegate int HandlersSizeDelegate();
-
-        private delegate void* CreateContextDelegate(void* opts, int optsLen, void* cbs);
-        
-        private delegate void* EventsWithAsyncDelegate(void* ctx, void* obj);
-        private delegate bool EventsStopLocalListenDelegate(void* ctx, void* obj, long hnd);
-        private delegate void EventsLocalListenDelegate(void* ctx, void* obj, long hnd, int type);
-        private delegate bool EventsIsEnabledDelegate(void* ctx, void* obj, int type);
-
-        private delegate void DeleteContextDelegate(void* ptr);
-
-        private delegate void* ServicesWithAsyncDelegate(void* ctx, void* target);
-        private delegate void* ServicesWithServerKeepBinaryDelegate(void* ctx, void* target);
-        private delegate long ServicesCancelDelegate(void* ctx, void* target, char* name);
-        private delegate long ServicesCancelAllDelegate(void* ctx, void* target);
-        private delegate void* ServicesGetServiceProxyDelegate(void* ctx, void* target, char* name, bool sticky);
-
-        private delegate long AtomicLongGetDelegate(void* ctx, void* target);
-        private delegate long AtomicLongIncrementAndGetDelegate(void* ctx, void* target);
-        private delegate long AtomicLongAddAndGetDelegate(void* ctx, void* target, long value);
-        private delegate long AtomicLongDecrementAndGetDelegate(void* ctx, void* target);
-        private delegate long AtomicLongGetAndSetDelegate(void* ctx, void* target, long value);
-        private delegate long AtomicLongCompareAndSetAndGetDelegate(void* ctx, void* target, long expVal, long newVal);
-        private delegate bool AtomicLongIsClosedDelegate(void* ctx, void* target);
-        private delegate void AtomicLongCloseDelegate(void* ctx, void* target);
-
-        #endregion
-
         #region DELEGATE MEMBERS
 
         // ReSharper disable InconsistentNaming
-        private static readonly ReallocateDelegate REALLOCATE;
-
-        private static readonly IgnitionStartDelegate IGNITION_START;
-        private static readonly IgnitionStopDelegate IGNITION_STOP;
-        private static readonly IgnitionStopAllDelegate IGNITION_STOP_ALL;
-
-        private static readonly ProcessorReleaseStartDelegate PROCESSOR_RELEASE_START;
-        private static readonly ProcessorProjectionDelegate PROCESSOR_PROJECTION;
-        private static readonly ProcessorCacheDelegate PROCESSOR_CACHE;
-        private static readonly ProcessorCreateCacheDelegate PROCESSOR_CREATE_CACHE;
-        private static readonly ProcessorGetOrCreateCacheDelegate PROCESSOR_GET_OR_CREATE_CACHE;
-        private static readonly ProcessorAffinityDelegate PROCESSOR_AFFINITY;
-        private static readonly ProcessorDataStreamerDelegate PROCESSOR_DATA_STREAMER;
-        private static readonly ProcessorTransactionsDelegate PROCESSOR_TRANSACTIONS;
-        private static readonly ProcessorComputeDelegate PROCESSOR_COMPUTE;
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute")]
-        private static extern void* PROCESSOR_COMPUTE2(void* ctx, void* obj, void* prj);
-
-        private static readonly ProcessorMessageDelegate PROCESSOR_MESSAGE;
-        private static readonly ProcessorEventsDelegate PROCESSOR_EVENTS;
-        private static readonly ProcessorServicesDelegate PROCESSOR_SERVICES;
-        private static readonly ProcessorExtensionsDelegate PROCESSOR_EXTENSIONS;
-        private static readonly ProcessorAtomicLongDelegate PROCESSOR_ATOMIC_LONG;
-        
-        private static readonly TargetInStreamOutLongDelegate TARGET_IN_STREAM_OUT_LONG;
-        private static readonly TargetInStreamOutStreamDelegate TARGET_IN_STREAM_OUT_STREAM;
-        private static readonly TargetInStreamOutObjectDelegate TARGET_IN_STREAM_OUT_OBJECT;
-        private static readonly TargetInObjectStreamOutStreamDelegate TARGET_IN_OBJECT_STREAM_OUT_STREAM;
-        private static readonly TargetOutLongDelegate TARGET_OUT_LONG;
-        private static readonly TargetOutStreamDelegate TARGET_OUT_STREAM;
-        private static readonly TargetOutObjectDelegate TARGET_OUT_OBJECT;
-        private static readonly TargetListenFutureDelegate TargetListenFut;
-        private static readonly TargetListenFutureForOpDelegate TargetListenFutForOp;
-
-        private static readonly AffinityPartitionsDelegate AffinityParts;
-
-        private static readonly CacheWithSkipStoreDelegate CACHE_WITH_SKIP_STORE;
-        private static readonly CacheNoRetriesDelegate CACHE_WITH_NO_RETRIES;
-        private static readonly CacheWithExpiryPolicyDelegate CACHE_WITH_EXPIRY_POLICY;
-        private static readonly CacheWithAsyncDelegate CACHE_WITH_ASYNC;
-        private static readonly CacheWithKeepBinaryDelegate CACHE_WITH_KEEP_BINARY;
-        private static readonly CacheClearDelegate CACHE_CLEAR;
-        private static readonly CacheRemoveAllDelegate CACHE_REMOVE_ALL;
-        private static readonly CacheOutOpQueryCursorDelegate CACHE_OUT_OP_QUERY_CURSOR;
-        private static readonly CacheOutOpContinuousQueryDelegate CACHE_OUT_OP_CONTINUOUS_QUERY;
-        private static readonly CacheIteratorDelegate CACHE_ITERATOR;
-        private static readonly CacheLocalIteratorDelegate CACHE_LOCAL_ITERATOR;
-        private static readonly CacheEnterLockDelegate CACHE_ENTER_LOCK;
-        private static readonly CacheExitLockDelegate CACHE_EXIT_LOCK;
-        private static readonly CacheTryEnterLockDelegate CACHE_TRY_ENTER_LOCK;
-        private static readonly CacheCloseLockDelegate CACHE_CLOSE_LOCK;
-        private static readonly CacheRebalanceDelegate CACHE_REBALANCE;
-        private static readonly CacheSizeDelegate CACHE_SIZE;
-
-        private static readonly CacheStoreCallbackInvokeDelegate CACHE_STORE_CALLBACK_INVOKE;
-
-        private static readonly ComputeWithNoFailoverDelegate COMPUTE_WITH_NO_FAILOVER;
-        private static readonly ComputeWithTimeoutDelegate COMPUTE_WITH_TIMEOUT;
-        private static readonly ComputeExecuteNativeDelegate COMPUTE_EXECUTE_NATIVE;
-
-        private static readonly ContinuousQueryCloseDelegate ContinuousQryClose;
-        private static readonly ContinuousQueryGetInitialQueryCursorDelegate ContinuousQryGetInitialQueryCursor;
-
-        private static readonly DataStreamerListenTopologyDelegate DataStreamerListenTop;
-        private static readonly DataStreamerAllowOverwriteGetDelegate DATA_STREAMER_ALLOW_OVERWRITE_GET;
-        private static readonly DataStreamerAllowOverwriteSetDelegate DATA_STREAMER_ALLOW_OVERWRITE_SET;
-        private static readonly DataStreamerSkipStoreGetDelegate DATA_STREAMER_SKIP_STORE_GET;
-        private static readonly DataStreamerSkipStoreSetDelegate DATA_STREAMER_SKIP_STORE_SET;
-        private static readonly DataStreamerPerNodeBufferSizeGetDelegate DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET;
-        private static readonly DataStreamerPerNodeBufferSizeSetDelegate DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET;
-        private static readonly DataStreamerPerNodeParallelOperationsGetDelegate DataStreamerPerNodeParallelOpsGet;
-        private static readonly DataStreamerPerNodeParallelOperationsSetDelegate DataStreamerPerNodeParallelOpsSet;
-
-        private static readonly MessagingWithAsyncDelegate MessagingWithAsync;
-
-        private static readonly ProjectionForOthersDelegate PROJECTION_FOR_OTHERS;
-        private static readonly ProjectionForRemotesDelegate PROJECTION_FOR_REMOTES;
-        private static readonly ProjectionForDaemonsDelegate PROJECTION_FOR_DAEMONS;
-        private static readonly ProjectionForRandomDelegate PROJECTION_FOR_RANDOM;
-        private static readonly ProjectionForOldestDelegate PROJECTION_FOR_OLDEST;
-        private static readonly ProjectionForYoungestDelegate PROJECTION_FOR_YOUNGEST;
-        private static readonly ProjectionResetMetricsDelegate PROJECTION_RESET_METRICS;
-        private static readonly ProjectionOutOpRetDelegate PROJECTION_OUT_OP_RET;
-
-        private static readonly QueryCursorIteratorDelegate QryCursorIterator;
-        private static readonly QueryCursorCloseDelegate QryCursorClose;
-
-        private static readonly AcquireDelegate ACQUIRE;
-        private static readonly ReleaseDelegate RELEASE;
-
-        private static readonly TransactionsStartDelegate TxStart;
-        private static readonly TransactionsCommitDelegate TxCommit;
-        private static readonly TransactionsCommitAsyncDelegate TxCommitAsync;
-        private static readonly TransactionsRollbackDelegate TxRollback;
-        private static readonly TransactionsRollbackAsyncDelegate TxRollbackAsync;
-        private static readonly TransactionsCloseDelegate TxClose;
-        private static readonly TransactionsStateDelegate TxState;
-        private static readonly TransactionsSetRollbackOnlyDelegate TxSetRollbackOnly;
-        private static readonly TransactionsResetMetricsDelegate TxResetMetrics;
-
-        private static readonly ThrowToJavaDelegate THROW_TO_JAVA;
-
-        private static readonly DestroyJvmDelegate DESTROY_JVM;
-
-        private static readonly HandlersSizeDelegate HANDLERS_SIZE;
-
-        private static readonly CreateContextDelegate CREATE_CONTEXT;
-        
-        private static readonly EventsWithAsyncDelegate EVENTS_WITH_ASYNC;
-        private static readonly EventsStopLocalListenDelegate EVENTS_STOP_LOCAL_LISTEN;
-        private static readonly EventsLocalListenDelegate EVENTS_LOCAL_LISTEN;
-        private static readonly EventsIsEnabledDelegate EVENTS_IS_ENABLED;
- 
-        private static readonly DeleteContextDelegate DELETE_CONTEXT;
-        
-        private static readonly ServicesWithAsyncDelegate SERVICES_WITH_ASYNC;
-        private static readonly ServicesWithServerKeepBinaryDelegate SERVICES_WITH_SERVER_KEEP_BINARY;
-        private static readonly ServicesCancelDelegate SERVICES_CANCEL;
-        private static readonly ServicesCancelAllDelegate SERVICES_CANCEL_ALL;
-        private static readonly ServicesGetServiceProxyDelegate SERVICES_GET_SERVICE_PROXY;
-
-        private static readonly AtomicLongGetDelegate ATOMIC_LONG_GET;
-        private static readonly AtomicLongIncrementAndGetDelegate ATOMIC_LONG_INCREMENT_AND_GET;
-        private static readonly AtomicLongAddAndGetDelegate ATOMIC_LONG_ADD_AND_GET;
-        private static readonly AtomicLongDecrementAndGetDelegate ATOMIC_LONG_DECREMENT_AND_GET;
-        private static readonly AtomicLongGetAndSetDelegate ATOMIC_LONG_GET_AND_SET;
-        private static readonly AtomicLongCompareAndSetAndGetDelegate ATOMIC_LONG_COMPARE_AND_SET_AND_GET;
-        private static readonly AtomicLongIsClosedDelegate ATOMIC_LONG_IS_CLOSED;
-        private static readonly AtomicLongCloseDelegate ATOMIC_LONG_CLOSE;
+
+        private static extern int REALLOCATE(long memPtr, int cap);
+        private static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId, long dataPtr);
+        private static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
+        private static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
+        private static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
+        private static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
+        private static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
+        private static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+        private static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+        private static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
+        private static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
+        private static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
+        private static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
+        private static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
+        private static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
+        private static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
+        private static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
+        private static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal, bool create);
+        private static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
+        private static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr, long outMemPtr);
+        private static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
+        private static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType, void* arg, long inMemPtr, long outMemPtr);
+        private static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
+        private static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
+        private static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
+        private static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
+        private static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
+        private static extern int AffinityParts(void* ctx, void* target);
+        private static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
+        private static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
+        private static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update, long access);
+        private static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
+        private static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
+        private static extern void CACHE_CLEAR(void* ctx, void* obj);
+        private static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
+        private static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
+        private static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
+        private static extern void* CACHE_ITERATOR(void* ctx, void* obj);
+        private static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
+        private static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
+        private static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
+        private static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
+        private static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
+        private static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
+        private static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
+        private static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
+        private static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
+        private static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
+        private static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+        private static extern void ContinuousQryClose(void* ctx, void* target);
+        private static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+        private static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+        private static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+        private static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+        private static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+        private static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
+        private static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
+        private static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
+        private static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
+        private static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
+        private static extern void* MessagingWithAsync(void* ctx, void* target);
+        private static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
+        private static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
+        private static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
+        private static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
+        private static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
+        private static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
+        private static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
+        private static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
+        private static extern void QryCursorIterator(void* ctx, void* target);
+        private static extern void QryCursorClose(void* ctx, void* target);
+        private static extern void* ACQUIRE(void* ctx, void* target);
+        private static extern void RELEASE(void* target);
+        private static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout, int txSize);
+        private static extern int TxCommit(void* ctx, void* target, long id);
+        private static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
+        private static extern int TxRollback(void* ctx, void* target, long id);
+        private static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+        private static extern int TxClose(void* ctx, void* target, long id);
+        private static extern int TxState(void* ctx, void* target, long id);
+        private static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
+        private static extern void TxResetMetrics(void* ctx, void* target);
+        private static extern void THROW_TO_JAVA(void* ctx, char* msg);
+        private static extern int HANDLERS_SIZE();
+        private static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
+        private static extern void DELETE_CONTEXT(void* ptr);
+        private static extern void DESTROY_JVM(void* ctx);
+        private static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
+        private static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
+        private static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
+        private static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
+        private static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
+        private static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
+        private static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
+        private static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
+        private static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
+        private static extern long ATOMIC_LONG_GET(void* ctx, void* target);
+        private static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
+        private static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
+        private static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
+        private static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
+        private static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal, long newVal);
+        private static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
+        private static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
 
         // ReSharper restore InconsistentNaming
 
         #endregion
 
-        /** Library pointer. */
-        private static readonly IntPtr Ptr;
-
         /// <summary>
         /// Initializer.
         /// </summary>
@@ -444,136 +152,11 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         {
             var path = IgniteUtils.UnpackEmbeddedResource(IgniteUtils.FileIgniteJniDll);
 
-            Ptr = NativeMethods.LoadLibrary(path);
+            var ptr = NativeMethods.LoadLibrary(path);
 
-            if (Ptr == IntPtr.Zero)
+            if (ptr == IntPtr.Zero)
                 throw new IgniteException("Failed to load " + IgniteUtils.FileIgniteJniDll + ": " + Marshal.GetLastWin32Error());
 
-            REALLOCATE = CreateDelegate<ReallocateDelegate>(ProcReallocate);
-
-            IGNITION_START = CreateDelegate<IgnitionStartDelegate>(ProcIgnitionStart);
-            IGNITION_STOP = CreateDelegate<IgnitionStopDelegate>(ProcIgnitionStop);
-            IGNITION_STOP_ALL = CreateDelegate<IgnitionStopAllDelegate>(ProcIgnitionStopAll);
-            
-            PROCESSOR_RELEASE_START = CreateDelegate<ProcessorReleaseStartDelegate>(ProcProcessorReleaseStart);
-            PROCESSOR_PROJECTION = CreateDelegate<ProcessorProjectionDelegate>(ProcProcessorProjection);
-            PROCESSOR_CACHE = CreateDelegate<ProcessorCacheDelegate>(ProcProcessorCache);
-            PROCESSOR_CREATE_CACHE = CreateDelegate<ProcessorCreateCacheDelegate>(ProcProcessorCreateCache);
-            PROCESSOR_GET_OR_CREATE_CACHE = CreateDelegate<ProcessorGetOrCreateCacheDelegate>(ProcProcessorGetOrCreateCache);
-            PROCESSOR_AFFINITY = CreateDelegate<ProcessorAffinityDelegate>(ProcProcessorAffinity);
-            PROCESSOR_DATA_STREAMER = CreateDelegate<ProcessorDataStreamerDelegate>(ProcProcessorDataStreamer);
-            PROCESSOR_TRANSACTIONS = CreateDelegate<ProcessorTransactionsDelegate>(ProcProcessorTransactions);
-            PROCESSOR_COMPUTE = CreateDelegate<ProcessorComputeDelegate>(ProcProcessorCompute);
-            PROCESSOR_MESSAGE = CreateDelegate<ProcessorMessageDelegate>(ProcProcessorMessage);
-            PROCESSOR_EVENTS = CreateDelegate<ProcessorEventsDelegate>(ProcProcessorEvents);
-            PROCESSOR_SERVICES = CreateDelegate<ProcessorServicesDelegate>(ProcProcessorServices);
-            PROCESSOR_EXTENSIONS = CreateDelegate<ProcessorExtensionsDelegate>(ProcProcessorExtensions);
-            PROCESSOR_ATOMIC_LONG = CreateDelegate<ProcessorAtomicLongDelegate>(ProcProcessorAtomicLong);
-            
-            TARGET_IN_STREAM_OUT_LONG = CreateDelegate<TargetInStreamOutLongDelegate>(ProcTargetInStreamOutLong);
-            TARGET_IN_STREAM_OUT_STREAM = CreateDelegate<TargetInStreamOutStreamDelegate>(ProcTargetInStreamOutStream);
-            TARGET_IN_STREAM_OUT_OBJECT = CreateDelegate<TargetInStreamOutObjectDelegate>(ProcTargetInStreamOutObject);
-            TARGET_IN_OBJECT_STREAM_OUT_STREAM = CreateDelegate<TargetInObjectStreamOutStreamDelegate>(ProcTargetInObjectStreamOutStream);
-            TARGET_OUT_LONG = CreateDelegate<TargetOutLongDelegate>(ProcTargetOutLong);
-            TARGET_OUT_STREAM = CreateDelegate<TargetOutStreamDelegate>(ProcTargetOutStream);
-            TARGET_OUT_OBJECT = CreateDelegate<TargetOutObjectDelegate>(ProcTargetOutObject);
-            TargetListenFut = CreateDelegate<TargetListenFutureDelegate>(ProcTargetListenFut);
-            TargetListenFutForOp = CreateDelegate<TargetListenFutureForOpDelegate>(ProcTargetListenFutForOp);
-
-            AffinityParts = CreateDelegate<AffinityPartitionsDelegate>(ProcAffinityParts);
-
-            CACHE_WITH_SKIP_STORE = CreateDelegate<CacheWithSkipStoreDelegate>(ProcCacheWithSkipStore);
-            CACHE_WITH_NO_RETRIES = CreateDelegate<CacheNoRetriesDelegate>(ProcCacheWithNoRetries);
-            CACHE_WITH_EXPIRY_POLICY = CreateDelegate<CacheWithExpiryPolicyDelegate>(ProcCacheWithExpiryPolicy);
-            CACHE_WITH_ASYNC = CreateDelegate<CacheWithAsyncDelegate>(ProcCacheWithAsync);
-            CACHE_WITH_KEEP_BINARY = CreateDelegate<CacheWithKeepBinaryDelegate>(ProcCacheWithKeepBinary);
-            CACHE_CLEAR = CreateDelegate<CacheClearDelegate>(ProcCacheClear);
-            CACHE_REMOVE_ALL = CreateDelegate<CacheRemoveAllDelegate>(ProcCacheRemoveAll);
-            CACHE_OUT_OP_QUERY_CURSOR = CreateDelegate<CacheOutOpQueryCursorDelegate>(ProcCacheOutOpQueryCursor);
-            CACHE_OUT_OP_CONTINUOUS_QUERY = CreateDelegate<CacheOutOpContinuousQueryDelegate>(ProcCacheOutOpContinuousQuery);
-            CACHE_ITERATOR = CreateDelegate<CacheIteratorDelegate>(ProcCacheIterator);
-            CACHE_LOCAL_ITERATOR = CreateDelegate<CacheLocalIteratorDelegate>(ProcCacheLocalIterator);
-            CACHE_ENTER_LOCK = CreateDelegate<CacheEnterLockDelegate>(ProcCacheEnterLock);
-            CACHE_EXIT_LOCK = CreateDelegate<CacheExitLockDelegate>(ProcCacheExitLock);
-            CACHE_TRY_ENTER_LOCK = CreateDelegate<CacheTryEnterLockDelegate>(ProcCacheTryEnterLock);
-            CACHE_CLOSE_LOCK = CreateDelegate<CacheCloseLockDelegate>(ProcCacheCloseLock);
-            CACHE_REBALANCE = CreateDelegate<CacheRebalanceDelegate>(ProcCacheRebalance);
-            CACHE_SIZE = CreateDelegate<CacheSizeDelegate>(ProcCacheSize);
-
-            CACHE_STORE_CALLBACK_INVOKE = CreateDelegate<CacheStoreCallbackInvokeDelegate>(ProcCacheStoreCallbackInvoke);
-
-            COMPUTE_WITH_NO_FAILOVER = CreateDelegate<ComputeWithNoFailoverDelegate>(ProcComputeWithNoFailover);
-            COMPUTE_WITH_TIMEOUT = CreateDelegate<ComputeWithTimeoutDelegate>(ProcComputeWithTimeout);
-            COMPUTE_EXECUTE_NATIVE = CreateDelegate<ComputeExecuteNativeDelegate>(ProcComputeExecuteNative);
-
-            ContinuousQryClose = CreateDelegate<ContinuousQueryCloseDelegate>(ProcContinuousQryClose);
-            ContinuousQryGetInitialQueryCursor = CreateDelegate<ContinuousQueryGetInitialQueryCursorDelegate>(ProcContinuousQryGetInitialQueryCursor);
-
-            DataStreamerListenTop = CreateDelegate<DataStreamerListenTopologyDelegate>(ProcDataStreamerListenTop); 
-            DATA_STREAMER_ALLOW_OVERWRITE_GET = CreateDelegate<DataStreamerAllowOverwriteGetDelegate>(ProcDataStreamerAllowOverwriteGet);
-            DATA_STREAMER_ALLOW_OVERWRITE_SET = CreateDelegate<DataStreamerAllowOverwriteSetDelegate>(ProcDataStreamerAllowOverwriteSet); 
-            DATA_STREAMER_SKIP_STORE_GET = CreateDelegate<DataStreamerSkipStoreGetDelegate>(ProcDataStreamerSkipStoreGet); 
-            DATA_STREAMER_SKIP_STORE_SET = CreateDelegate<DataStreamerSkipStoreSetDelegate>(ProcDataStreamerSkipStoreSet); 
-            DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET = CreateDelegate<DataStreamerPerNodeBufferSizeGetDelegate>(ProcDataStreamerPerNodeBufferSizeGet); 
-            DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET = CreateDelegate<DataStreamerPerNodeBufferSizeSetDelegate>(ProcDataStreamerPerNodeBufferSizeSet); 
-            DataStreamerPerNodeParallelOpsGet = CreateDelegate<DataStreamerPerNodeParallelOperationsGetDelegate>(ProcDataStreamerPerNodeParallelOpsGet); 
-            DataStreamerPerNodeParallelOpsSet = CreateDelegate<DataStreamerPerNodeParallelOperationsSetDelegate>(ProcDataStreamerPerNodeParallelOpsSet); 
-
-            MessagingWithAsync = CreateDelegate<MessagingWithAsyncDelegate>(ProcMessagingWithAsync);
-
-            PROJECTION_FOR_OTHERS = CreateDelegate<ProjectionForOthersDelegate>(ProcProjectionForOthers);
-            PROJECTION_FOR_REMOTES = CreateDelegate<ProjectionForRemotesDelegate>(ProcProjectionForRemotes);
-            PROJECTION_FOR_DAEMONS = CreateDelegate<ProjectionForDaemonsDelegate>(ProcProjectionForDaemons);
-            PROJECTION_FOR_RANDOM = CreateDelegate<ProjectionForRandomDelegate>(ProcProjectionForRandom);
-            PROJECTION_FOR_OLDEST = CreateDelegate<ProjectionForOldestDelegate>(ProcProjectionForOldest);
-            PROJECTION_FOR_YOUNGEST = CreateDelegate<ProjectionForYoungestDelegate>(ProcProjectionForYoungest);
-            PROJECTION_RESET_METRICS = CreateDelegate<ProjectionResetMetricsDelegate>(ProcProjectionResetMetrics);
-            PROJECTION_OUT_OP_RET = CreateDelegate<ProjectionOutOpRetDelegate>(ProcProjectionOutOpRet);
-
-            QryCursorIterator = CreateDelegate<QueryCursorIteratorDelegate>(ProcQryCursorIterator);
-            QryCursorClose = CreateDelegate<QueryCursorCloseDelegate>(ProcQryCursorClose);
-
-            ACQUIRE = CreateDelegate<AcquireDelegate>(ProcAcquire);
-            RELEASE = CreateDelegate<ReleaseDelegate>(ProcRelease);
-
-            TxStart = CreateDelegate<TransactionsStartDelegate>(ProcTxStart);
-            TxCommit = CreateDelegate<TransactionsCommitDelegate>(ProcTxCommit);
-            TxCommitAsync = CreateDelegate<TransactionsCommitAsyncDelegate>(ProcTxCommitAsync);
-            TxRollback = CreateDelegate<TransactionsRollbackDelegate>(ProcTxRollback);
-            TxRollbackAsync = CreateDelegate<TransactionsRollbackAsyncDelegate>(ProcTxRollbackAsync);
-            TxClose = CreateDelegate<TransactionsCloseDelegate>(ProcTxClose);
-            TxState = CreateDelegate<TransactionsStateDelegate>(ProcTxState);
-            TxSetRollbackOnly = CreateDelegate<TransactionsSetRollbackOnlyDelegate>(ProcTxSetRollbackOnly);
-            TxResetMetrics = CreateDelegate<TransactionsResetMetricsDelegate>(ProcTxResetMetrics);
-
-            THROW_TO_JAVA = CreateDelegate<ThrowToJavaDelegate>(ProcThrowToJava);
-
-            HANDLERS_SIZE = CreateDelegate<HandlersSizeDelegate>(ProcHandlersSize);
-
-            CREATE_CONTEXT = CreateDelegate<CreateContextDelegate>(ProcCreateContext);
-            DELETE_CONTEXT = CreateDelegate<DeleteContextDelegate>(ProcDeleteContext);
-
-            DESTROY_JVM = CreateDelegate<DestroyJvmDelegate>(ProcDestroyJvm);
-
-            EVENTS_WITH_ASYNC = CreateDelegate<EventsWithAsyncDelegate>(ProcEventsWithAsync);
-            EVENTS_STOP_LOCAL_LISTEN = CreateDelegate<EventsStopLocalListenDelegate>(ProcEventsStopLocalListen);
-            EVENTS_LOCAL_LISTEN = CreateDelegate<EventsLocalListenDelegate>(ProcEventsLocalListen);
-            EVENTS_IS_ENABLED = CreateDelegate<EventsIsEnabledDelegate>(ProcEventsIsEnabled);
-            
-            SERVICES_WITH_ASYNC = CreateDelegate<ServicesWithAsyncDelegate>(ProcServicesWithAsync);
-            SERVICES_WITH_SERVER_KEEP_BINARY = CreateDelegate<ServicesWithServerKeepBinaryDelegate>(ProcServicesWithServerKeepBinary);
-            SERVICES_CANCEL = CreateDelegate<ServicesCancelDelegate>(ProcServicesCancel);
-            SERVICES_CANCEL_ALL = CreateDelegate<ServicesCancelAllDelegate>(ProcServicesCancelAll);
-            SERVICES_GET_SERVICE_PROXY = CreateDelegate<ServicesGetServiceProxyDelegate>(ProcServicesGetServiceProxy);
-
-            ATOMIC_LONG_GET = CreateDelegate<AtomicLongGetDelegate>(ProcAtomicLongGet);
-            ATOMIC_LONG_INCREMENT_AND_GET = CreateDelegate<AtomicLongIncrementAndGetDelegate>(ProcAtomicLongIncrementAndGet);
-            ATOMIC_LONG_ADD_AND_GET = CreateDelegate<AtomicLongAddAndGetDelegate>(ProcAtomicLongAddAndGet);
-            ATOMIC_LONG_DECREMENT_AND_GET = CreateDelegate<AtomicLongDecrementAndGetDelegate>(ProcAtomicLongDecrementAndGet);
-            ATOMIC_LONG_GET_AND_SET = CreateDelegate<AtomicLongGetAndSetDelegate>(ProcAtomicLongGetAndSet);
-            ATOMIC_LONG_COMPARE_AND_SET_AND_GET = CreateDelegate<AtomicLongCompareAndSetAndGetDelegate>(ProcAtomicLongCompareAndSetAndGet);
-            ATOMIC_LONG_IS_CLOSED = CreateDelegate<AtomicLongIsClosedDelegate>(ProcAtomicLongIsClosed);
-            ATOMIC_LONG_CLOSE = CreateDelegate<AtomicLongCloseDelegate>(ProcAtomicLongClose);
         }
 
         #region NATIVE METHODS: PROCESSOR
@@ -723,7 +306,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ProcessorCompute(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_COMPUTE2(target.Context, target.Target, prj.Target);
+            void* res = PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
@@ -1349,27 +932,5 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         {
             // No-op.
         }
-
-        /// <summary>
-        /// Create delegate for the given procedure.
-        /// </summary>
-        /// <typeparam name="T">Delegate type.</typeparam>
-        /// <param name="procName">Procedure name.</param>
-        /// <returns></returns>
-        private static T CreateDelegate<T>(string procName)
-        {
-            var procPtr = NativeMethods.GetProcAddress(Ptr, procName);
-
-            if (procPtr == IntPtr.Zero)
-            {
-                var error = Marshal.GetLastWin32Error();
-
-                throw new IgniteException(string.Format(CultureInfo.InvariantCulture,
-                    "Unable to find native function: {0} (Error code: {1}). Make sure that module.def is up to date",
-                    procName, error));
-            }
-
-            return TypeCaster<T>.Cast(Marshal.GetDelegateForFunctionPointer(procPtr, typeof (T)));
-        }
     }
 }


[12/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: 039f38faf17e124f49ab65fc4b2db681485d2da6
Parents: adcd043
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:45:52 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:45:52 2015 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs          | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/039f38fa/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
index af473e4..4bd27ba 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
@@ -26,6 +26,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     [SuppressUnmanagedCodeSecurity]
     internal unsafe static class IgniteJni
     {
+        // TODO: Fix FxCop
+
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         public static extern int Reallocate(long memPtr, int cap);


[15/19] ignite git commit: MarshalAs fixed for all booleans

Posted by vo...@apache.org.
MarshalAs fixed for all booleans


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

Branch: refs/heads/ignite-1694
Commit: 36ce8b2c405d8e24ba8a9f4e1f84705a4f3ab108
Parents: 503bbde
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 11:53:09 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 11:53:09 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/IgniteJniNativeMethods.cs    | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/36ce8b2c/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
index 9996d3e..cce832b 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
@@ -40,11 +40,11 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         [return: MarshalAs(UnmanagedType.U1)]
-        public static extern bool IgnitionStop(void* ctx, sbyte* gridName, bool cancel);
+        public static extern bool IgnitionStop(void* ctx, sbyte* gridName, [MarshalAs(UnmanagedType.U1)] bool cancel);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void IgnitionStopAll(void* ctx, bool cancel);
+        public static extern void IgnitionStopAll(void* ctx, [MarshalAs(UnmanagedType.U1)] bool cancel);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -72,7 +72,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, bool keepBinary);
+        public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, 
+            [MarshalAs(UnmanagedType.U1)] bool keepBinary);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -101,7 +102,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         public static extern void* ProcessorAtomicLong(void* ctx, void* obj, sbyte* name, long initVal,
-            bool create);
+            [MarshalAs(UnmanagedType.U1)] bool create);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -213,7 +214,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int CacheSize(void* ctx, void* obj, int peekModes, bool loc);
+        public static extern int CacheSize(void* ctx, void* obj, int peekModes, [MarshalAs(UnmanagedType.U1)] bool loc);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -250,7 +251,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, bool val);
+        public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, 
+            [MarshalAs(UnmanagedType.U1)] bool val);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -259,7 +261,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, bool val);
+        public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, 
+            [MarshalAs(UnmanagedType.U1)] bool val);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -423,7 +426,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name, bool sticky);
+        public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name,
+            [MarshalAs(UnmanagedType.U1)] bool sticky);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]


[16/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: 036be936078377a0469d2c6d4a6c255da4e5b2be
Parents: 36ce8b2
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 11:53:16 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 11:53:16 2015 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs    | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/036be936/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
index cce832b..7a2f606 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
@@ -26,8 +26,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     [SuppressUnmanagedCodeSecurity]
     internal unsafe static class IgniteJniNativeMethods
     {
-        // TODO: Fix FxCop
-
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
         public static extern int Reallocate(long memPtr, int cap);


[13/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: 09e79b0d6024e6325ee010bf3e81f02ef5760e43
Parents: 039f38f
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:51:10 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:51:10 2015 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.csproj                   |   2 +-
 .../Impl/Unmanaged/IgniteJni.cs                 | 454 -------------------
 .../Impl/Unmanaged/IgniteJniNativeMethods.cs    | 454 +++++++++++++++++++
 .../Impl/Unmanaged/UnmanagedUtils.cs            |   2 +-
 4 files changed, 456 insertions(+), 456 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/09e79b0d/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
index fff4842..8cce9b1 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
@@ -294,7 +294,7 @@
     <Compile Include="Impl\Transactions\TransactionImpl.cs" />
     <Compile Include="Impl\Transactions\TransactionMetricsImpl.cs" />
     <Compile Include="Impl\Transactions\TransactionsImpl.cs" />
-    <Compile Include="Impl\Unmanaged\IgniteJni.cs" />
+    <Compile Include="Impl\Unmanaged\IgniteJniNativeMethods.cs" />
     <Compile Include="Impl\Unmanaged\IUnmanagedTarget.cs" />
     <Compile Include="Impl\Unmanaged\UnmanagedCallbackHandlers.cs" />
     <Compile Include="Impl\Unmanaged\UnmanagedCallbacks.cs" />

http://git-wip-us.apache.org/repos/asf/ignite/blob/09e79b0d/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
deleted file mode 100644
index 4bd27ba..0000000
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
+++ /dev/null
@@ -1,454 +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.
- */
-
-namespace Apache.Ignite.Core.Impl.Unmanaged
-{
-    using System.Runtime.InteropServices;
-    using System.Security;
-
-    /// <summary>
-    /// Ignite JNI methods.
-    /// </summary>
-    [SuppressUnmanagedCodeSecurity]
-    internal unsafe static class IgniteJni
-    {
-        // TODO: Fix FxCop
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int Reallocate(long memPtr, int cap);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* IgnitionStart(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
-            long dataPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool IgnitionStop(void* ctx, sbyte* gridName, bool cancel);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void IgnitionStopAll(void* ctx, bool cancel);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ProcessorReleaseStart(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorProjection(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorCache(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorCreateCache(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorGetOrCreateCache(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorAffinity(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, bool keepBinary);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorTransactions(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorCompute(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorMessage(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorEvents(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorServices(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorExtensions(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProcessorAtomicLong(void* ctx, void* obj, sbyte* name, long initVal,
-            bool create);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long TargetInStreamOutLong(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TargetInStreamOutStream(void* ctx, void* target, int opType, long inMemPtr,
-            long outMemPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* TargetInStreanOutObject(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TargetInObjectStreamOutStream(void* ctx, void* target, int opType,
-            void* arg, long inMemPtr, long outMemPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long TargetOutLong(void* ctx, void* target, int opType);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TargetOutStream(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* TargetOutObject(void* ctx, void* target, int opType);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int AffinityParts(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheWithSkipStore(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheWithNoRetries(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheWithExpiryPolicy(void* ctx, void* obj, long create, long update,
-            long access);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheWithAsync(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheWithKeepBinary(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheClear(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheRemoveAll(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheOutOpQueryCursor(void* ctx, void* obj, int type, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheOutOpContinuousQuery(void* ctx, void* obj, int type, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheIterator(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CacheLocalIterator(void* ctx, void* obj, int peekModes);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheEnterLock(void* ctx, void* obj, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheExitLock(void* ctx, void* obj, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool CacheTryEnterLock(void* ctx, void* obj, long id, long timeout);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheCloseLock(void* ctx, void* obj, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheRebalance(void* ctx, void* obj, long futId);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int CacheSize(void* ctx, void* obj, int peekModes, bool loc);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CacheStoreCallbackInvoke(void* ctx, void* obj, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ComputeWithNoFailover(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ComputeWithTimeout(void* ctx, void* target, long timeout);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ComputeExecuteNative(void* ctx, void* target, long taskPtr, long topVer);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ContinuousQryClose(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool DataStreamerAllowOverwriteGet(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, bool val);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool DataStreamerSkipStoreGet(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, bool val);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int DataStreamerPerNodeBufferSizeGet(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerPerNodeBufferSizeSet(void* ctx, void* obj, int val);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* MessagingWithAsync(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForOthers(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForRemotes(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForDaemons(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForRandom(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForOldest(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionForYoungest(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ProjectionResetMetrics(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ProjectionOutOpRet(void* ctx, void* obj, int type, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void QryCursorIterator(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void QryCursorClose(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* Acquire(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void Release(void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
-            int txSize);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int TxCommit(void* ctx, void* target, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int TxRollback(void* ctx, void* target, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int TxClose(void* ctx, void* target, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int TxState(void* ctx, void* target, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TxResetMetrics(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ThrowToJava(void* ctx, char* msg);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int HandlersSize();
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CreateContext(void* opts, int optsLen, void* cbs);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DeleteContext(void* ptr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DestroyJvm(void* ctx);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* EventsWithAsync(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool EventsStopLocalListen(void* ctx, void* obj, long hnd);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void EventsLocalListen(void* ctx, void* obj, long hnd, int type);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool EventsIsEnabled(void* ctx, void* obj, int type);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ServicesWithAsync(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ServicesWithServerKeepBinary(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ServicesCancel(void* ctx, void* target, char* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ServicesCancelAll(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name, bool sticky);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongGet(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongIncrementAndGet(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongAddAndGet(void* ctx, void* target, long value);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongDecrementAndGet(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongGetAndSet(void* ctx, void* target, long value);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long AtomicLongCompareAndSetAndGet(void* ctx, void* target, long expVal,
-            long newVal);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool AtomicLongIsClosed(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void AtomicLongClose(void* ctx, void* target);
-    }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/09e79b0d/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
new file mode 100644
index 0000000..a63230b
--- /dev/null
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
@@ -0,0 +1,454 @@
+/*
+ * 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.
+ */
+
+namespace Apache.Ignite.Core.Impl.Unmanaged
+{
+    using System.Runtime.InteropServices;
+    using System.Security;
+
+    /// <summary>
+    /// Ignite JNI native methods.
+    /// </summary>
+    [SuppressUnmanagedCodeSecurity]
+    internal unsafe static class IgniteJniNativeMethods
+    {
+        // TODO: Fix FxCop
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int Reallocate(long memPtr, int cap);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* IgnitionStart(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
+            long dataPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool IgnitionStop(void* ctx, sbyte* gridName, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void IgnitionStopAll(void* ctx, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ProcessorReleaseStart(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorProjection(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorCache(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorCreateCache(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorGetOrCreateCache(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorAffinity(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, bool keepBinary);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorTransactions(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorCompute(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorMessage(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorEvents(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorServices(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorExtensions(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProcessorAtomicLong(void* ctx, void* obj, sbyte* name, long initVal,
+            bool create);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TargetInStreamOutLong(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetInStreamOutStream(void* ctx, void* target, int opType, long inMemPtr,
+            long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* TargetInStreanOutObject(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetInObjectStreamOutStream(void* ctx, void* target, int opType,
+            void* arg, long inMemPtr, long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TargetOutLong(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetOutStream(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* TargetOutObject(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int AffinityParts(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheWithSkipStore(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheWithNoRetries(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheWithExpiryPolicy(void* ctx, void* obj, long create, long update,
+            long access);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheWithAsync(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheWithKeepBinary(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheClear(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheRemoveAll(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheOutOpQueryCursor(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheOutOpContinuousQuery(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheIterator(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CacheLocalIterator(void* ctx, void* obj, int peekModes);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheEnterLock(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheExitLock(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool CacheTryEnterLock(void* ctx, void* obj, long id, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheCloseLock(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheRebalance(void* ctx, void* obj, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int CacheSize(void* ctx, void* obj, int peekModes, bool loc);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CacheStoreCallbackInvoke(void* ctx, void* obj, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ComputeWithNoFailover(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ComputeWithTimeout(void* ctx, void* target, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ComputeExecuteNative(void* ctx, void* target, long taskPtr, long topVer);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ContinuousQryClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool DataStreamerAllowOverwriteGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool DataStreamerSkipStoreGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int DataStreamerPerNodeBufferSizeGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerPerNodeBufferSizeSet(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* MessagingWithAsync(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForOthers(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForRemotes(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForDaemons(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForRandom(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForOldest(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionForYoungest(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ProjectionResetMetrics(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ProjectionOutOpRet(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void QryCursorIterator(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void QryCursorClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* Acquire(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void Release(void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
+            int txSize);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxCommit(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxRollback(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxClose(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxState(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxResetMetrics(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ThrowToJava(void* ctx, char* msg);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int HandlersSize();
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CreateContext(void* opts, int optsLen, void* cbs);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DeleteContext(void* ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DestroyJvm(void* ctx);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* EventsWithAsync(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool EventsStopLocalListen(void* ctx, void* obj, long hnd);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void EventsLocalListen(void* ctx, void* obj, long hnd, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool EventsIsEnabled(void* ctx, void* obj, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ServicesWithAsync(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ServicesWithServerKeepBinary(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ServicesCancel(void* ctx, void* target, char* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ServicesCancelAll(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name, bool sticky);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongGet(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongIncrementAndGet(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongAddAndGet(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongDecrementAndGet(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongGetAndSet(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long AtomicLongCompareAndSetAndGet(void* ctx, void* target, long expVal,
+            long newVal);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool AtomicLongIsClosed(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void AtomicLongClose(void* ctx, void* target);
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/09e79b0d/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index c618c1d..a1bfc8a 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -22,7 +22,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     using System.Runtime.InteropServices;
     using Apache.Ignite.Core.Common;
 
-    using JNI = IgniteJni;
+    using JNI = IgniteJniNativeMethods;
 
     /// <summary>
     /// Unmanaged utility classes.


[07/19] ignite git commit: Extract to a separate class

Posted by vo...@apache.org.
Extract to a separate class


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

Branch: refs/heads/ignite-1694
Commit: 4348b334760fce4c7998ed098df1cda5d77ff9fd
Parents: 6ad92df
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:14:21 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:14:21 2015 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.csproj                   |   1 +
 .../Impl/Unmanaged/IgniteJni.cs                 | 450 +++++++++++++++++++
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 427 ------------------
 3 files changed, 451 insertions(+), 427 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4348b334/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
index d7db33e..fff4842 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
@@ -294,6 +294,7 @@
     <Compile Include="Impl\Transactions\TransactionImpl.cs" />
     <Compile Include="Impl\Transactions\TransactionMetricsImpl.cs" />
     <Compile Include="Impl\Transactions\TransactionsImpl.cs" />
+    <Compile Include="Impl\Unmanaged\IgniteJni.cs" />
     <Compile Include="Impl\Unmanaged\IUnmanagedTarget.cs" />
     <Compile Include="Impl\Unmanaged\UnmanagedCallbackHandlers.cs" />
     <Compile Include="Impl\Unmanaged\UnmanagedCallbacks.cs" />

http://git-wip-us.apache.org/repos/asf/ignite/blob/4348b334/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
new file mode 100644
index 0000000..2991baf
--- /dev/null
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
@@ -0,0 +1,450 @@
+/*
+ * 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.
+ */
+
+namespace Apache.Ignite.Core.Impl.Unmanaged
+{
+    using System.Runtime.InteropServices;
+
+    /// <summary>
+    /// Ignite JNI methods.
+    /// </summary>
+    internal unsafe static class IgniteJni
+    {
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int REALLOCATE(long memPtr, int cap);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
+            long dataPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal,
+            bool create);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr,
+            long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType,
+            void* arg, long inMemPtr, long outMemPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int AffinityParts(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update,
+            long access);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_CLEAR(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_ITERATOR(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ContinuousQryClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* MessagingWithAsync(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void QryCursorIterator(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void QryCursorClose(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* ACQUIRE(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void RELEASE(void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
+            int txSize);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxCommit(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxRollback(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxClose(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int TxState(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void TxResetMetrics(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void THROW_TO_JAVA(void* ctx, char* msg);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern int HANDLERS_SIZE();
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DELETE_CONTEXT(void* ptr);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void DESTROY_JVM(void* ctx);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
+            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal,
+            long newVal);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
+
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
+            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        public static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4348b334/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 557468e..4af5f89 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -32,433 +32,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         /** Interop factory ID for .Net. */
         private const int InteropFactoryId = 1;
 
-        /** JNI imported methods. */
-        private static class IgniteJni
-        {
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int REALLOCATE(long memPtr, int cap);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
-                long dataPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal, 
-                bool create);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr,
-                long outMemPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType, 
-                void* arg, long inMemPtr, long outMemPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int AffinityParts(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update,
-                long access);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_CLEAR(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_ITERATOR(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void ContinuousQryClose(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* MessagingWithAsync(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void QryCursorIterator(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void QryCursorClose(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* ACQUIRE(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void RELEASE(void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
-                int txSize);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int TxCommit(void* ctx, void* target, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int TxRollback(void* ctx, void* target, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int TxClose(void* ctx, void* target, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int TxState(void* ctx, void* target, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void TxResetMetrics(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void THROW_TO_JAVA(void* ctx, char* msg);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern int HANDLERS_SIZE();
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DELETE_CONTEXT(void* ptr);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void DESTROY_JVM(void* ctx);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_GET(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet", 
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
-                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal,
-                long newVal);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
-
-            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
-                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-            public static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
-        }
-
         /// <summary>
         /// Initializer.
         /// </summary>


[14/19] ignite git commit: Fixing MarshalAs

Posted by vo...@apache.org.
Fixing MarshalAs


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

Branch: refs/heads/ignite-1694
Commit: 503bbde8736e83e2c5fbba97277dfc1d984b6087
Parents: 09e79b0
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Thu Nov 12 11:50:52 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Thu Nov 12 11:50:52 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/IgniteJniNativeMethods.cs    |   8 +
 modules/platforms/dotnet/Apache.Ignite.FxCop    | 543 ++++++++++++++++++-
 2 files changed, 549 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/503bbde8/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
index a63230b..9996d3e 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
@@ -39,6 +39,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool IgnitionStop(void* ctx, sbyte* gridName, bool cancel);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
@@ -199,6 +200,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool CacheTryEnterLock(void* ctx, void* obj, long id, long timeout);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
@@ -243,6 +245,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool DataStreamerAllowOverwriteGet(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
@@ -251,6 +254,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool DataStreamerSkipStoreGet(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
@@ -356,6 +360,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics",
@@ -388,6 +393,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool EventsStopLocalListen(void* ctx, void* obj, long hnd);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
@@ -396,6 +402,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool EventsIsEnabled(void* ctx, void* obj, int type);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
@@ -445,6 +452,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool AtomicLongIsClosed(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,

http://git-wip-us.apache.org/repos/asf/ignite/blob/503bbde8/modules/platforms/dotnet/Apache.Ignite.FxCop
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.FxCop b/modules/platforms/dotnet/Apache.Ignite.FxCop
index 5c7f7f1..fddb1c8 100644
--- a/modules/platforms/dotnet/Apache.Ignite.FxCop
+++ b/modules/platforms/dotnet/Apache.Ignite.FxCop
@@ -107,11 +107,550 @@
    </RuleFile>
    <RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" />
    <RuleFile Name="$(FxCopDir)\Rules\PortabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
-   <RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" />
+   <RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="False">
+    <Rule Name="AptcaMethodsShouldOnlyCallAptcaMethods" Enabled="True" />
+    <Rule Name="AptcaTypesShouldOnlyExtendAptcaBaseTypes" Enabled="True" />
+    <Rule Name="ArrayFieldsShouldNotBeReadOnly" Enabled="True" />
+    <Rule Name="CallGCKeepAliveWhenUsingNativeResources" Enabled="True" />
+    <Rule Name="CatchNonClsCompliantExceptionsInGeneralHandlers" Enabled="True" />
+    <Rule Name="DoNotDeclareReadOnlyMutableReferenceTypes" Enabled="True" />
+    <Rule Name="DoNotIndirectlyExposeMethodsWithLinkDemands" Enabled="True" />
+    <Rule Name="MethodSecurityShouldBeASupersetOfType" Enabled="True" />
+    <Rule Name="OverrideLinkDemandsShouldBeIdenticalToBase" Enabled="True" />
+    <Rule Name="PointersShouldNotBeVisible" Enabled="True" />
+    <Rule Name="ReviewDeclarativeSecurityOnValueTypes" Enabled="True" />
+    <Rule Name="ReviewDenyAndPermitOnlyUsage" Enabled="True" />
+    <Rule Name="ReviewImperativeSecurity" Enabled="True" />
+    <Rule Name="ReviewVisibleEventHandlers" Enabled="True" />
+    <Rule Name="SealMethodsThatSatisfyPrivateInterfaces" Enabled="True" />
+    <Rule Name="SecureAsserts" Enabled="True" />
+    <Rule Name="SecuredTypesShouldNotExposeFields" Enabled="True" />
+    <Rule Name="SecureSerializationConstructors" Enabled="True" />
+    <Rule Name="SecurityTransparentAssembliesShouldNotContainSecurityCriticalCode" Enabled="True" />
+    <Rule Name="SecurityTransparentCodeShouldNotAssert" Enabled="True" />
+    <Rule Name="SecurityTransparentCodeShouldNotReferenceNonpublicSecurityCriticalCode" Enabled="True" />
+    <Rule Name="StaticConstructorsShouldBePrivate" Enabled="True" />
+    <Rule Name="TypeLinkDemandsRequireInheritanceDemands" Enabled="True" />
+    <Rule Name="WrapVulnerableFinallyClausesInOuterTry" Enabled="True" />
+   </RuleFile>
    <RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" />
   </RuleFiles>
   <Groups />
   <Settings />
  </Rules>
- <FxCopReport Version="1.36" />
+ <FxCopReport Version="1.36">
+  <Targets>
+   <Target Name="$(ProjectDir)/Apache.Ignite.Core/bin/x64/Debug/Apache.Ignite.Core.dll">
+    <Modules>
+     <Module Name="apache.ignite.core.dll">
+      <Namespaces>
+       <Namespace Name="Apache.Ignite.Core.Binary">
+        <Types>
+         <Type Name="IBinaryReader">
+          <Members>
+           <Member Name="#GetRawReader()">
+            <Messages>
+             <Message TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024" Created="2015-11-11 15:43:38Z">
+              <Issue Certainty="50">
+               <Item>'IBinaryReader.GetRawReader()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="IBinaryWriter">
+          <Members>
+           <Member Name="#GetRawWriter()">
+            <Messages>
+             <Message TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024" Created="2015-11-11 15:43:38Z">
+              <Issue Certainty="50">
+               <Item>'IBinaryWriter.GetRawWriter()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="IIgniteBinary">
+          <Members>
+           <Member Name="#GetBinaryTypes()">
+            <Messages>
+             <Message TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024" Created="2015-11-11 15:43:38Z">
+              <Issue Certainty="50">
+               <Item>'IIgniteBinary.GetBinaryTypes()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Cache">
+        <Types>
+         <Type Name="ICache`2">
+          <Members>
+           <Member Name="#TryLocalPeek(!0,!1&amp;,Apache.Ignite.Core.Cache.CachePeekMode[])">
+            <Messages>
+             <Message Id="1#" TypeName="AvoidOutParameters" Category="Microsoft.Design" CheckId="CA1021" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'value'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Compute">
+        <Types>
+         <Type Name="ComputeJobAdapter`1">
+          <Members>
+           <Member Name="#GetArgument`1(System.Int32)">
+            <Messages>
+             <Message TypeName="DoNotRaiseReservedExceptionTypes" Category="Microsoft.Usage" CheckId="CA2201" Created="2015-11-11 15:43:38Z">
+              <Issue Name="Reserved">
+               <Item>'ComputeJobAdapter&lt;T&gt;.GetArgument&lt;TArg&gt;(int)'</Item>
+               <Item>'IndexOutOfRangeException'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Events">
+        <Types>
+         <Type Name="IEvents">
+          <Members>
+           <Member Name="#GetEnabledEvents()">
+            <Messages>
+             <Message TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024" Created="2015-11-11 15:43:38Z">
+              <Issue Certainty="50">
+               <Item>'IEvents.GetEnabledEvents()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Impl">
+        <Types>
+         <Type Name="IgniteUtils">
+          <Members>
+           <Member Name="#.cctor()">
+            <Messages>
+             <Message TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'IgniteUtils'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Impl.Binary">
+        <Types>
+         <Type Name="BinaryReader">
+          <Members>
+           <Member Name="#Deserialize`1()">
+            <Messages>
+             <Message Id="System.String.Format(System.String,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object)'</Item>
+               <Item>'BinaryReader.Deserialize&lt;T&gt;()'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#IsNotNullHeader(System.Byte)">
+            <Messages>
+             <Message Id="System.String.Format(System.String,System.Object,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object, object)'</Item>
+               <Item>'BinaryReader.IsNotNullHeader(byte)'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="Marshaller">
+          <Members>
+           <Member Name="#AddType(System.Type,System.Int32,System.String,System.Boolean,System.Boolean,Apache.Ignite.Core.Binary.IBinaryNameMapper,Apache.Ignite.Core.Binary.IBinaryIdMapper,Apache.Ignite.Core.Binary.IBinarySerializer,System.String)">
+            <Messages>
+             <Message Id="System.String.Format(System.String,System.Object,System.Object,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object, object, object)'</Item>
+               <Item>'Marshaller.AddType(Type, int, string, bool, bool, IBinaryNameMapper, IBinaryIdMapper, IBinarySerializer, string)'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Impl.Common">
+        <Types>
+         <Type Name="Classpath">
+          <Members>
+           <Member Name="#AppendHomeClasspath(System.String,System.Boolean,System.Text.StringBuilder)">
+            <Messages>
+             <Message Id="System.String.EndsWith(System.String)" TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'Classpath.AppendHomeClasspath(string, bool, StringBuilder)'</Item>
+               <Item>'string.EndsWith(string)'</Item>
+               <Item>'string.EndsWith(string, StringComparison)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#CreateClasspath(System.String,Apache.Ignite.Core.IgniteConfiguration,System.Boolean)">
+            <Messages>
+             <Message Id="System.String.EndsWith(System.String)" TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'Classpath.CreateClasspath(string, IgniteConfiguration, bool)'</Item>
+               <Item>'string.EndsWith(string)'</Item>
+               <Item>'string.EndsWith(string, StringComparison)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="Future`1">
+          <Members>
+           <Member Name="#OnNullResult()">
+            <Messages>
+             <Message TypeName="DoNotCatchGeneralExceptionTypes" Category="Microsoft.Design" CheckId="CA1031" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'Future&lt;T&gt;.OnNullResult()'</Item>
+               <Item>'Exception'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="IgniteHome">
+          <Members>
+           <Member Name="#Resolve(Apache.Ignite.Core.IgniteConfiguration)">
+            <Messages>
+             <Message Id="System.String.Format(System.String,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object)'</Item>
+               <Item>'IgniteHome.Resolve(IgniteConfiguration)'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+             <Message Id="System.String.Format(System.String,System.Object,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object, object)'</Item>
+               <Item>'IgniteHome.Resolve(IgniteConfiguration)'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Impl.Memory">
+        <Types>
+         <Type Name="IPlatformMemory">
+          <Members>
+           <Member Name="#GetStream()">
+            <Messages>
+             <Message TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024" Created="2015-11-11 15:43:38Z">
+              <Issue Certainty="50">
+               <Item>'IPlatformMemory.GetStream()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+       <Namespace Name="Apache.Ignite.Core.Impl.Unmanaged">
+        <Types>
+         <Type Name="IgniteJniNativeMethods">
+          <Members>
+           <Member Name="#AtomicLongIsClosed(System.Void*,System.Void*)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.AtomicLongIsClosed(void*, void*)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#CacheSize(System.Void*,System.Void*,System.Int32,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'loc'</Item>
+               <Item>'IgniteJniNativeMethods.CacheSize(void*, void*, int, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#CacheTryEnterLock(System.Void*,System.Void*,System.Int64,System.Int64)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.CacheTryEnterLock(void*, void*, long, long)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#CreateContext(System.Void*,System.Int32,System.Void*)">
+            <Messages>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.CreateContext(void*, int, void*)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.CreateContext(void*, int, void*)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvm(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'IgniteManager.CreateJvmContext(IgniteConfiguration, UnmanagedCallbacks)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#DataStreamerAllowOverwriteGet(System.Void*,System.Void*)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteGet(void*, void*)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#DataStreamerAllowOverwriteSet(System.Void*,System.Void*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'val'</Item>
+               <Item>'IgniteJniNativeMethods.DataStreamerAllowOverwriteSet(void*, void*, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#DataStreamerSkipStoreGet(System.Void*,System.Void*)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreGet(void*, void*)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#DataStreamerSkipStoreSet(System.Void*,System.Void*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'val'</Item>
+               <Item>'IgniteJniNativeMethods.DataStreamerSkipStoreSet(void*, void*, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#DestroyJvm(System.Void*)">
+            <Messages>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.DestroyJvm(void*)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.DestroyJvm(void*)'&#xD;&#xA;   -&gt;'IgniteManager.DestroyJvm()'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#EventsIsEnabled(System.Void*,System.Void*,System.Int32)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.EventsIsEnabled(void*, void*, int)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#EventsStopLocalListen(System.Void*,System.Void*,System.Int64)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.EventsStopLocalListen(void*, void*, long)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#HandlersSize()">
+            <Messages>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.HandlersSize()'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedUtils.HandlersSize()'&#xD;&#xA;   -&gt;'UnmanagedCallbacks.UnmanagedCallbacks()'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#IgnitionStart(System.Void*,System.SByte*,System.SByte*,System.Int32,System.Int64)">
+            <Messages>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStart(void*, sbyte*, sbyte*, int, long)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStart(UnmanagedContext, string, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#IgnitionStop(System.Void*,System.SByte*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'cancel'</Item>
+               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
+              </Issue>
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
+              </Issue>
+             </Message>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.Stop(string, bool)'</Item>
+              </Issue>
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignite.Stop(bool)'&#xD;&#xA;   -&gt;'Ignition.StopAll(bool)'</Item>
+              </Issue>
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.IgnitionStop(void*, sbyte*, bool)'&#xD;&#xA;   -&gt;'UnmanagedUtils.IgnitionStop(void*, string, bool)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#IgnitionStopAll(System.Void*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'cancel'</Item>
+               <Item>'IgniteJniNativeMethods.IgnitionStopAll(void*, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#ProcessorAtomicLong(System.Void*,System.Void*,System.SByte*,System.Int64,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'create'</Item>
+               <Item>'IgniteJniNativeMethods.ProcessorAtomicLong(void*, void*, sbyte*, long, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#ProcessorDataStreamer(System.Void*,System.Void*,System.SByte*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'keepBinary'</Item>
+               <Item>'IgniteJniNativeMethods.ProcessorDataStreamer(void*, void*, sbyte*, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#ProcessorReleaseStart(System.Void*,System.Void*)">
+            <Messages>
+             <Message TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118" Created="2015-11-11 15:48:32Z">
+              <Issue Name="PlatformInvokeStack">
+               <Item>'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'</Item>
+               <Item>&#xD;&#xA;   -&gt;'IgniteJniNativeMethods.ProcessorReleaseStart(void*, void*)'&#xD;&#xA;   -&gt;'UnmanagedUtils.ProcessorReleaseStart(IUnmanagedTarget)'&#xD;&#xA;   -&gt;'Ignition.Start(IgniteConfiguration)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#ServicesGetServiceProxy(System.Void*,System.Void*,System.Char*,System.Boolean)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue>
+               <Item>'sticky'</Item>
+               <Item>'IgniteJniNativeMethods.ServicesGetServiceProxy(void*, void*, char*, bool)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+           <Member Name="#TxSetRollbackOnly(System.Void*,System.Void*,System.Int64)">
+            <Messages>
+             <Message TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414" Created="2015-11-11 15:48:32Z">
+              <Issue Name="Return">
+               <Item>'IgniteJniNativeMethods.TxSetRollbackOnly(void*, void*, long)'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+         <Type Name="UnmanagedUtils">
+          <Members>
+           <Member Name="#.cctor()">
+            <Messages>
+             <Message Id="System.String.Format(System.String,System.Object,System.Object)" TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305" Created="2015-11-11 15:43:38Z">
+              <Issue>
+               <Item>'string.Format(string, object, object)'</Item>
+               <Item>'UnmanagedUtils.UnmanagedUtils()'</Item>
+               <Item>'string.Format(IFormatProvider, string, params object[])'</Item>
+              </Issue>
+             </Message>
+            </Messages>
+           </Member>
+          </Members>
+         </Type>
+        </Types>
+       </Namespace>
+      </Namespaces>
+     </Module>
+    </Modules>
+   </Target>
+  </Targets>
+  <Rules>
+   <Rule TypeName="AvoidOutParameters" Category="Microsoft.Design" CheckId="CA1021">
+    <Resolution Name="Default">Consider a design that does not require that {0} be an out parameter.</Resolution>
+   </Rule>
+   <Rule TypeName="DoNotCatchGeneralExceptionTypes" Category="Microsoft.Design" CheckId="CA1031">
+    <Resolution Name="Default">Modify {0} to catch a more specific exception than {1} or rethrow the exception.</Resolution>
+   </Rule>
+   <Rule TypeName="DoNotRaiseReservedExceptionTypes" Category="Microsoft.Usage" CheckId="CA2201">
+    <Resolution Name="Reserved">{0} creates an exception of type {1}, an exception type that is reserved by the runtime and should never be raised by managed code. If this exception instance might be thrown, use a different exception type.</Resolution>
+   </Rule>
+   <Rule TypeName="InitializeReferenceTypeStaticFieldsInline" Category="Microsoft.Performance" CheckId="CA1810">
+    <Resolution Name="Default">Initialize all static fields in {0} when those fields are declared and remove the explicit static constructor.</Resolution>
+   </Rule>
+   <Rule TypeName="MarkBooleanPInvokeArgumentsWithMarshalAs" Category="Microsoft.Interoperability" CheckId="CA1414">
+    <Resolution Name="Default">Add the MarshalAsAttribute to parameter {0} of P/Invoke {1}. If the corresponding unmanaged parameter is a 4-byte Win32 'BOOL', use [MarshalAs(UnmanagedType.Bool)]. For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
+    <Resolution Name="Return">Add the MarshalAsAttribute to the return type of P/Invoke {0}. If the corresponding unmanaged return type is a 4-byte Win32 'BOOL', use MarshalAs(UnmanagedType.Bool). For a 1-byte C++ 'bool', use MarshalAs(UnmanagedType.U1).</Resolution>
+   </Rule>
+   <Rule TypeName="ReviewSuppressUnmanagedCodeSecurityUsage" Category="Microsoft.Security" CheckId="CA2118">
+    <Resolution Name="PlatformInvokeStack">Review declarative security for {0} and its callers for potential vulnerabilities. The following call stack might expose a way to circumvent security protection: {1}</Resolution>
+   </Rule>
+   <Rule TypeName="SpecifyIFormatProvider" Category="Microsoft.Globalization" CheckId="CA1305">
+    <Resolution Name="Default">Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'.</Resolution>
+   </Rule>
+   <Rule TypeName="SpecifyStringComparison" Category="Microsoft.Globalization" CheckId="CA1307">
+    <Resolution Name="Default">{0} makes a call to {1} that does not explicitly provide a StringComparison. This should be replaced with a call to {2}.</Resolution>
+   </Rule>
+   <Rule TypeName="UsePropertiesWhereAppropriate" Category="Microsoft.Design" CheckId="CA1024">
+    <Resolution Name="Default">Change {0} to a property if appropriate.</Resolution>
+   </Rule>
+  </Rules>
+ </FxCopReport>
 </FxCopProject>


[05/19] ignite git commit: Reformatting

Posted by vo...@apache.org.
http://git-wip-us.apache.org/repos/asf/ignite/blob/6ad92dfe/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index dd5769b..557468e 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -32,429 +32,432 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         /** Interop factory ID for .Net. */
         private const int InteropFactoryId = 1;
 
-        #region DELEGATE MEMBERS
-
-        // ReSharper disable InconsistentNaming
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int REALLOCATE(long memPtr, int cap);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId, long dataPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal, bool create);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr, long outMemPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType, void* arg, long inMemPtr, long outMemPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int AffinityParts(void* ctx, void* target);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update, long access);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_CLEAR(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_ITERATOR(void* ctx, void* obj);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
-
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
+        /** JNI imported methods. */
+        private static class IgniteJni
+        {
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int REALLOCATE(long memPtr, int cap);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
+                long dataPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal, 
+                bool create);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr,
+                long outMemPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType, 
+                void* arg, long inMemPtr, long outMemPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int AffinityParts(void* ctx, void* target);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update,
+                long access);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_CLEAR(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void ContinuousQryClose(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_ITERATOR(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* MessagingWithAsync(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void ContinuousQryClose(void* ctx, void* target);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* MessagingWithAsync(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void QryCursorIterator(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void QryCursorClose(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* ACQUIRE(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void RELEASE(void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout, int txSize);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int TxCommit(void* ctx, void* target, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void QryCursorIterator(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void QryCursorClose(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int TxRollback(void* ctx, void* target, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* ACQUIRE(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void RELEASE(void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int TxClose(void* ctx, void* target, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
+                int txSize);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int TxState(void* ctx, void* target, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int TxCommit(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void TxResetMetrics(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int TxRollback(void* ctx, void* target, long id);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int TxClose(void* ctx, void* target, long id);
+
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int TxState(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void THROW_TO_JAVA(void* ctx, char* msg);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern int HANDLERS_SIZE();
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void TxResetMetrics(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void THROW_TO_JAVA(void* ctx, char* msg);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DELETE_CONTEXT(void* ptr);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern int HANDLERS_SIZE();
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void DESTROY_JVM(void* ctx);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DELETE_CONTEXT(void* ptr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void DESTROY_JVM(void* ctx);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_GET(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_GET(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal, long newVal);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet", 
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
-        CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        private static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
+                SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal,
+                long newVal);
 
-        // ReSharper restore InconsistentNaming
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
 
-        #endregion
+            [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
+                CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+            public static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
+        }
 
         /// <summary>
         /// Initializer.
@@ -472,6 +475,14 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         }
 
+        /// <summary>
+        /// No-op initializer used to force type loading and static constructor call.
+        /// </summary>
+        internal static void Initialize()
+        {
+            // No-op.
+        }
+
         #region NATIVE METHODS: PROCESSOR
 
         internal static IUnmanagedTarget IgnitionStart(UnmanagedContext ctx, string cfgPath, string gridName,
@@ -486,7 +497,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
                 try
                 {
-                    void* res = IGNITION_START(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
+                    void* res = IgniteJni.IGNITION_START(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
                         mem.SynchronizeOutput());
 
                     return new UnmanagedTarget(ctx, res);
@@ -505,7 +516,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                return IGNITION_STOP(ctx, gridName0, cancel);
+                return IgniteJni.IGNITION_STOP(ctx, gridName0, cancel);
             }
             finally
             {
@@ -515,17 +526,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void IgnitionStopAll(void* ctx, bool cancel)
         {
-            IGNITION_STOP_ALL(ctx, cancel);
+            IgniteJni.IGNITION_STOP_ALL(ctx, cancel);
         }
         
         internal static void ProcessorReleaseStart(IUnmanagedTarget target)
         {
-            PROCESSOR_RELEASE_START(target.Context, target.Target);
+            IgniteJni.PROCESSOR_RELEASE_START(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProcessorProjection(IUnmanagedTarget target)
         {
-            void* res = PROCESSOR_PROJECTION(target.Context, target.Target);
+            void* res = IgniteJni.PROCESSOR_PROJECTION(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -536,7 +547,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = PROCESSOR_CACHE(target.Context, target.Target, name0);
+                void* res = IgniteJni.PROCESSOR_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -552,7 +563,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = PROCESSOR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = IgniteJni.PROCESSOR_CREATE_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -568,7 +579,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = PROCESSOR_GET_OR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = IgniteJni.PROCESSOR_GET_OR_CREATE_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -584,7 +595,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = PROCESSOR_AFFINITY(target.Context, target.Target, name0);
+                void* res = IgniteJni.PROCESSOR_AFFINITY(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -600,7 +611,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = PROCESSOR_DATA_STREAMER(target.Context, target.Target, name0, keepBinary);
+                void* res = IgniteJni.PROCESSOR_DATA_STREAMER(target.Context, target.Target, name0, keepBinary);
 
                 return target.ChangeTarget(res);
             }
@@ -612,42 +623,42 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         
         internal static IUnmanagedTarget ProcessorTransactions(IUnmanagedTarget target)
         {
-            void* res = PROCESSOR_TRANSACTIONS(target.Context, target.Target);
+            void* res = IgniteJni.PROCESSOR_TRANSACTIONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorCompute(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
+            void* res = IgniteJni.PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorMessage(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_MESSAGE(target.Context, target.Target, prj.Target);
+            void* res = IgniteJni.PROCESSOR_MESSAGE(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorEvents(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_EVENTS(target.Context, target.Target, prj.Target);
+            void* res = IgniteJni.PROCESSOR_EVENTS(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorServices(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROCESSOR_SERVICES(target.Context, target.Target, prj.Target);
+            void* res = IgniteJni.PROCESSOR_SERVICES(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorExtensions(IUnmanagedTarget target)
         {
-            void* res = PROCESSOR_EXTENSIONS(target.Context, target.Target);
+            void* res = IgniteJni.PROCESSOR_EXTENSIONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -659,7 +670,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                var res = PROCESSOR_ATOMIC_LONG(target.Context, target.Target, name0, initialValue, create);
+                var res = IgniteJni.PROCESSOR_ATOMIC_LONG(target.Context, target.Target, name0, initialValue, create);
 
                 return res == null ? null : target.ChangeTarget(res);
             }
@@ -675,51 +686,51 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long TargetInStreamOutLong(IUnmanagedTarget target, int opType, long memPtr)
         {
-            return TARGET_IN_STREAM_OUT_LONG(target.Context, target.Target, opType, memPtr);
+            return IgniteJni.TARGET_IN_STREAM_OUT_LONG(target.Context, target.Target, opType, memPtr);
         }
 
         internal static void TargetInStreamOutStream(IUnmanagedTarget target, int opType, long inMemPtr, long outMemPtr)
         {
-            TARGET_IN_STREAM_OUT_STREAM(target.Context, target.Target, opType, inMemPtr, outMemPtr);
+            IgniteJni.TARGET_IN_STREAM_OUT_STREAM(target.Context, target.Target, opType, inMemPtr, outMemPtr);
         }
 
         internal static IUnmanagedTarget TargetInStreamOutObject(IUnmanagedTarget target, int opType, long inMemPtr)
         {
-            void* res = TARGET_IN_STREAM_OUT_OBJECT(target.Context, target.Target, opType, inMemPtr);
+            void* res = IgniteJni.TARGET_IN_STREAM_OUT_OBJECT(target.Context, target.Target, opType, inMemPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static void TargetInObjectStreamOutStream(IUnmanagedTarget target, int opType, void* arg, long inMemPtr, long outMemPtr)
         {
-            TARGET_IN_OBJECT_STREAM_OUT_STREAM(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
+            IgniteJni.TARGET_IN_OBJECT_STREAM_OUT_STREAM(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
         }
 
         internal static long TargetOutLong(IUnmanagedTarget target, int opType)
         {
-            return TARGET_OUT_LONG(target.Context, target.Target, opType);
+            return IgniteJni.TARGET_OUT_LONG(target.Context, target.Target, opType);
         }
 
         internal static void TargetOutStream(IUnmanagedTarget target, int opType, long memPtr)
         {
-            TARGET_OUT_STREAM(target.Context, target.Target, opType, memPtr);
+            IgniteJni.TARGET_OUT_STREAM(target.Context, target.Target, opType, memPtr);
         }
 
         internal static IUnmanagedTarget TargetOutObject(IUnmanagedTarget target, int opType)
         {
-            void* res = TARGET_OUT_OBJECT(target.Context, target.Target, opType);
+            void* res = IgniteJni.TARGET_OUT_OBJECT(target.Context, target.Target, opType);
 
             return target.ChangeTarget(res);
         }
 
         internal static void TargetListenFuture(IUnmanagedTarget target, long futId, int typ)
         {
-            TargetListenFut(target.Context, target.Target, futId, typ);
+            IgniteJni.TargetListenFut(target.Context, target.Target, futId, typ);
         }
 
         internal static void TargetListenFutureForOperation(IUnmanagedTarget target, long futId, int typ, int opId)
         {
-            TargetListenFutForOp(target.Context, target.Target, futId, typ, opId);
+            IgniteJni.TargetListenFutForOp(target.Context, target.Target, futId, typ, opId);
         }
 
         #endregion
@@ -728,7 +739,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static int AffinityPartitions(IUnmanagedTarget target)
         {
-            return AffinityParts(target.Context, target.Target);
+            return IgniteJni.AffinityParts(target.Context, target.Target);
         }
 
         #endregion
@@ -737,110 +748,110 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget CacheWithSkipStore(IUnmanagedTarget target)
         {
-            void* res = CACHE_WITH_SKIP_STORE(target.Context, target.Target);
+            void* res = IgniteJni.CACHE_WITH_SKIP_STORE(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithNoRetries(IUnmanagedTarget target)
         {
-            void* res = CACHE_WITH_NO_RETRIES(target.Context, target.Target);
+            void* res = IgniteJni.CACHE_WITH_NO_RETRIES(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithExpiryPolicy(IUnmanagedTarget target, long create, long update, long access)
         {
-            void* res = CACHE_WITH_EXPIRY_POLICY(target.Context, target.Target, create, update, access);
+            void* res = IgniteJni.CACHE_WITH_EXPIRY_POLICY(target.Context, target.Target, create, update, access);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithAsync(IUnmanagedTarget target)
         {
-            void* res = CACHE_WITH_ASYNC(target.Context, target.Target);
+            void* res = IgniteJni.CACHE_WITH_ASYNC(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithKeepBinary(IUnmanagedTarget target)
         {
-            void* res = CACHE_WITH_KEEP_BINARY(target.Context, target.Target);
+            void* res = IgniteJni.CACHE_WITH_KEEP_BINARY(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheClear(IUnmanagedTarget target)
         {
-            CACHE_CLEAR(target.Context, target.Target);
+            IgniteJni.CACHE_CLEAR(target.Context, target.Target);
         }
 
         internal static void CacheRemoveAll(IUnmanagedTarget target)
         {
-            CACHE_REMOVE_ALL(target.Context, target.Target);
+            IgniteJni.CACHE_REMOVE_ALL(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget CacheOutOpQueryCursor(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = CACHE_OUT_OP_QUERY_CURSOR(target.Context, target.Target, type, memPtr);
+            void* res = IgniteJni.CACHE_OUT_OP_QUERY_CURSOR(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheOutOpContinuousQuery(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = CACHE_OUT_OP_CONTINUOUS_QUERY(target.Context, target.Target, type, memPtr);
+            void* res = IgniteJni.CACHE_OUT_OP_CONTINUOUS_QUERY(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheIterator(IUnmanagedTarget target)
         {
-            void* res = CACHE_ITERATOR(target.Context, target.Target);
+            void* res = IgniteJni.CACHE_ITERATOR(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheLocalIterator(IUnmanagedTarget target, int peekModes)
         {
-            void* res = CACHE_LOCAL_ITERATOR(target.Context, target.Target, peekModes);
+            void* res = IgniteJni.CACHE_LOCAL_ITERATOR(target.Context, target.Target, peekModes);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheEnterLock(IUnmanagedTarget target, long id)
         {
-            CACHE_ENTER_LOCK(target.Context, target.Target, id);
+            IgniteJni.CACHE_ENTER_LOCK(target.Context, target.Target, id);
         }
 
         internal static void CacheExitLock(IUnmanagedTarget target, long id)
         {
-            CACHE_EXIT_LOCK(target.Context, target.Target, id);
+            IgniteJni.CACHE_EXIT_LOCK(target.Context, target.Target, id);
         }
 
         internal static bool CacheTryEnterLock(IUnmanagedTarget target, long id, long timeout)
         {
-            return CACHE_TRY_ENTER_LOCK(target.Context, target.Target, id, timeout);
+            return IgniteJni.CACHE_TRY_ENTER_LOCK(target.Context, target.Target, id, timeout);
         }
 
         internal static void CacheCloseLock(IUnmanagedTarget target, long id)
         {
-            CACHE_CLOSE_LOCK(target.Context, target.Target, id);
+            IgniteJni.CACHE_CLOSE_LOCK(target.Context, target.Target, id);
         }
 
         internal static void CacheRebalance(IUnmanagedTarget target, long futId)
         {
-            CACHE_REBALANCE(target.Context, target.Target, futId);
+            IgniteJni.CACHE_REBALANCE(target.Context, target.Target, futId);
         }
 
         internal static void CacheStoreCallbackInvoke(IUnmanagedTarget target, long memPtr)
         {
-            CACHE_STORE_CALLBACK_INVOKE(target.Context, target.Target, memPtr);
+            IgniteJni.CACHE_STORE_CALLBACK_INVOKE(target.Context, target.Target, memPtr);
         }
 
         internal static int CacheSize(IUnmanagedTarget target, int modes, bool loc)
         {
-            return CACHE_SIZE(target.Context, target.Target, modes, loc);
+            return IgniteJni.CACHE_SIZE(target.Context, target.Target, modes, loc);
         }
 
         #endregion
@@ -849,17 +860,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ComputeWithNoFailover(IUnmanagedTarget target)
         {
-            COMPUTE_WITH_NO_FAILOVER(target.Context, target.Target);
+            IgniteJni.COMPUTE_WITH_NO_FAILOVER(target.Context, target.Target);
         }
 
         internal static void ComputeWithTimeout(IUnmanagedTarget target, long timeout)
         {
-            COMPUTE_WITH_TIMEOUT(target.Context, target.Target, timeout);
+            IgniteJni.COMPUTE_WITH_TIMEOUT(target.Context, target.Target, timeout);
         }
 
         internal static void ComputeExecuteNative(IUnmanagedTarget target, long taskPtr, long topVer)
         {
-            COMPUTE_EXECUTE_NATIVE(target.Context, target.Target, taskPtr, topVer);
+            IgniteJni.COMPUTE_EXECUTE_NATIVE(target.Context, target.Target, taskPtr, topVer);
         }
 
         #endregion
@@ -868,12 +879,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ContinuousQueryClose(IUnmanagedTarget target)
         {
-            ContinuousQryClose(target.Context, target.Target);
+            IgniteJni.ContinuousQryClose(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ContinuousQueryGetInitialQueryCursor(IUnmanagedTarget target)
         {
-            void* res = ContinuousQryGetInitialQueryCursor(target.Context, target.Target);
+            void* res = IgniteJni.ContinuousQryGetInitialQueryCursor(target.Context, target.Target);
 
             return res == null ? null : target.ChangeTarget(res);
         }
@@ -884,47 +895,47 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void DataStreamerListenTopology(IUnmanagedTarget target, long ptr)
         {
-            DataStreamerListenTop(target.Context, target.Target, ptr);
+            IgniteJni.DataStreamerListenTop(target.Context, target.Target, ptr);
         }
 
         internal static bool DataStreamerAllowOverwriteGet(IUnmanagedTarget target)
         {
-            return DATA_STREAMER_ALLOW_OVERWRITE_GET(target.Context, target.Target);
+            return IgniteJni.DATA_STREAMER_ALLOW_OVERWRITE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerAllowOverwriteSet(IUnmanagedTarget target, bool val)
         {
-            DATA_STREAMER_ALLOW_OVERWRITE_SET(target.Context, target.Target, val);
+            IgniteJni.DATA_STREAMER_ALLOW_OVERWRITE_SET(target.Context, target.Target, val);
         }
 
         internal static bool DataStreamerSkipStoreGet(IUnmanagedTarget target)
         {
-            return DATA_STREAMER_SKIP_STORE_GET(target.Context, target.Target);
+            return IgniteJni.DATA_STREAMER_SKIP_STORE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerSkipStoreSet(IUnmanagedTarget target, bool val)
         {
-            DATA_STREAMER_SKIP_STORE_SET(target.Context, target.Target, val);
+            IgniteJni.DATA_STREAMER_SKIP_STORE_SET(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeBufferSizeGet(IUnmanagedTarget target)
         {
-            return DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(target.Context, target.Target);
+            return IgniteJni.DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerPerNodeBufferSizeSet(IUnmanagedTarget target, int val)
         {
-            DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(target.Context, target.Target, val);
+            IgniteJni.DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeParallelOperationsGet(IUnmanagedTarget target)
         {
-            return DataStreamerPerNodeParallelOpsGet(target.Context, target.Target);
+            return IgniteJni.DataStreamerPerNodeParallelOpsGet(target.Context, target.Target);
         }
 
         internal static void DataStreamerPerNodeParallelOperationsSet(IUnmanagedTarget target, int val)
         {
-            DataStreamerPerNodeParallelOpsSet(target.Context, target.Target, val);
+            IgniteJni.DataStreamerPerNodeParallelOpsSet(target.Context, target.Target, val);
         }
 
         #endregion
@@ -933,7 +944,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget MessagingWithASync(IUnmanagedTarget target)
         {
-            void* res = MessagingWithAsync(target.Context, target.Target);
+            void* res = IgniteJni.MessagingWithAsync(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -944,54 +955,54 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ProjectionForOthers(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = PROJECTION_FOR_OTHERS(target.Context, target.Target, prj.Target);
+            void* res = IgniteJni.PROJECTION_FOR_OTHERS(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRemotes(IUnmanagedTarget target)
         {
-            void* res = PROJECTION_FOR_REMOTES(target.Context, target.Target);
+            void* res = IgniteJni.PROJECTION_FOR_REMOTES(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForDaemons(IUnmanagedTarget target)
         {
-            void* res = PROJECTION_FOR_DAEMONS(target.Context, target.Target);
+            void* res = IgniteJni.PROJECTION_FOR_DAEMONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRandom(IUnmanagedTarget target)
         {
-            void* res = PROJECTION_FOR_RANDOM(target.Context, target.Target);
+            void* res = IgniteJni.PROJECTION_FOR_RANDOM(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForOldest(IUnmanagedTarget target)
         {
-            void* res = PROJECTION_FOR_OLDEST(target.Context, target.Target);
+            void* res = IgniteJni.PROJECTION_FOR_OLDEST(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForYoungest(IUnmanagedTarget target)
         {
-            void* res = PROJECTION_FOR_YOUNGEST(target.Context, target.Target);
+            void* res = IgniteJni.PROJECTION_FOR_YOUNGEST(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
         
         internal static void ProjectionResetMetrics(IUnmanagedTarget target)
         {
-            PROJECTION_RESET_METRICS(target.Context, target.Target);
+            IgniteJni.PROJECTION_RESET_METRICS(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProjectionOutOpRet(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = PROJECTION_OUT_OP_RET(target.Context, target.Target, type, memPtr);
+            void* res = IgniteJni.PROJECTION_OUT_OP_RET(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
@@ -1002,12 +1013,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void QueryCursorIterator(IUnmanagedTarget target)
         {
-            QryCursorIterator(target.Context, target.Target);
+            IgniteJni.QryCursorIterator(target.Context, target.Target);
         }
 
         internal static void QueryCursorClose(IUnmanagedTarget target)
         {
-            QryCursorClose(target.Context, target.Target);
+            IgniteJni.QryCursorClose(target.Context, target.Target);
         }
 
         #endregion
@@ -1016,47 +1027,47 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long TransactionsStart(IUnmanagedTarget target, int concurrency, int isolation, long timeout, int txSize)
         {
-            return TxStart(target.Context, target.Target, concurrency, isolation, timeout, txSize);
+            return IgniteJni.TxStart(target.Context, target.Target, concurrency, isolation, timeout, txSize);
         }
 
         internal static int TransactionsCommit(IUnmanagedTarget target, long id)
         {
-            return TxCommit(target.Context, target.Target, id);
+            return IgniteJni.TxCommit(target.Context, target.Target, id);
         }
 
         internal static void TransactionsCommitAsync(IUnmanagedTarget target, long id, long futId)
         {
-            TxCommitAsync(target.Context, target.Target, id, futId);
+            IgniteJni.TxCommitAsync(target.Context, target.Target, id, futId);
         }
 
         internal static int TransactionsRollback(IUnmanagedTarget target, long id)
         {
-            return TxRollback(target.Context, target.Target, id);
+            return IgniteJni.TxRollback(target.Context, target.Target, id);
         }
 
         internal static void TransactionsRollbackAsync(IUnmanagedTarget target, long id, long futId)
         {
-            TxRollbackAsync(target.Context, target.Target, id, futId);
+            IgniteJni.TxRollbackAsync(target.Context, target.Target, id, futId);
         }
 
         internal static int TransactionsClose(IUnmanagedTarget target, long id)
         {
-            return TxClose(target.Context, target.Target, id);
+            return IgniteJni.TxClose(target.Context, target.Target, id);
         }
 
         internal static int TransactionsState(IUnmanagedTarget target, long id)
         {
-            return TxState(target.Context, target.Target, id);
+            return IgniteJni.TxState(target.Context, target.Target, id);
         }
 
         internal static bool TransactionsSetRollbackOnly(IUnmanagedTarget target, long id)
         {
-            return TxSetRollbackOnly(target.Context, target.Target, id);
+            return IgniteJni.TxSetRollbackOnly(target.Context, target.

<TRUNCATED>

[06/19] ignite git commit: Reformatting

Posted by vo...@apache.org.
Reformatting


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

Branch: refs/heads/ignite-1694
Commit: 6ad92dfe76903e4ddd62ef7d5b4e489a3dd00c7d
Parents: d63261a
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:09:18 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:09:18 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 946 ++++++++++---------
 1 file changed, 474 insertions(+), 472 deletions(-)
----------------------------------------------------------------------



[04/19] ignite git commit: SuppressUnmanagedCodeSecurity

Posted by vo...@apache.org.
SuppressUnmanagedCodeSecurity


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

Branch: refs/heads/ignite-1694
Commit: d63261a79eea6999849024e369b68cb15d35f4ab
Parents: 5aa5fcb
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:02:34 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:02:34 2015 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d63261a7/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 8e1eec5..dd5769b 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -20,11 +20,13 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     using System;
     using System.Diagnostics.CodeAnalysis;
     using System.Runtime.InteropServices;
+    using System.Security;
     using Apache.Ignite.Core.Common;
 
     /// <summary>
     /// Unmanaged utility classes.
     /// </summary>
+    [SuppressUnmanagedCodeSecurity]
     internal static unsafe class UnmanagedUtils
     {
         /** Interop factory ID for .Net. */


[08/19] ignite git commit: wip

Posted by vo...@apache.org.
wip


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

Branch: refs/heads/ignite-1694
Commit: 97cfccc0906ba2c2ddf40f1f0ea66de4d9baba26
Parents: 4348b33
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:15:53 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:15:53 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 210 ++++++++++---------
 1 file changed, 106 insertions(+), 104 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/97cfccc0/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 4af5f89..9425df3 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -23,6 +23,8 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     using System.Security;
     using Apache.Ignite.Core.Common;
 
+    using JNI = IgniteJni;
+
     /// <summary>
     /// Unmanaged utility classes.
     /// </summary>
@@ -70,7 +72,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
                 try
                 {
-                    void* res = IgniteJni.IGNITION_START(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
+                    void* res = JNI.IGNITION_START(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
                         mem.SynchronizeOutput());
 
                     return new UnmanagedTarget(ctx, res);
@@ -89,7 +91,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                return IgniteJni.IGNITION_STOP(ctx, gridName0, cancel);
+                return JNI.IGNITION_STOP(ctx, gridName0, cancel);
             }
             finally
             {
@@ -99,17 +101,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void IgnitionStopAll(void* ctx, bool cancel)
         {
-            IgniteJni.IGNITION_STOP_ALL(ctx, cancel);
+            JNI.IGNITION_STOP_ALL(ctx, cancel);
         }
         
         internal static void ProcessorReleaseStart(IUnmanagedTarget target)
         {
-            IgniteJni.PROCESSOR_RELEASE_START(target.Context, target.Target);
+            JNI.PROCESSOR_RELEASE_START(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProcessorProjection(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROCESSOR_PROJECTION(target.Context, target.Target);
+            void* res = JNI.PROCESSOR_PROJECTION(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -120,7 +122,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = IgniteJni.PROCESSOR_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.PROCESSOR_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -136,7 +138,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = IgniteJni.PROCESSOR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.PROCESSOR_CREATE_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -152,7 +154,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = IgniteJni.PROCESSOR_GET_OR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.PROCESSOR_GET_OR_CREATE_CACHE(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -168,7 +170,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = IgniteJni.PROCESSOR_AFFINITY(target.Context, target.Target, name0);
+                void* res = JNI.PROCESSOR_AFFINITY(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -184,7 +186,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = IgniteJni.PROCESSOR_DATA_STREAMER(target.Context, target.Target, name0, keepBinary);
+                void* res = JNI.PROCESSOR_DATA_STREAMER(target.Context, target.Target, name0, keepBinary);
 
                 return target.ChangeTarget(res);
             }
@@ -196,42 +198,42 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         
         internal static IUnmanagedTarget ProcessorTransactions(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROCESSOR_TRANSACTIONS(target.Context, target.Target);
+            void* res = JNI.PROCESSOR_TRANSACTIONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorCompute(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = IgniteJni.PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
+            void* res = JNI.PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorMessage(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = IgniteJni.PROCESSOR_MESSAGE(target.Context, target.Target, prj.Target);
+            void* res = JNI.PROCESSOR_MESSAGE(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorEvents(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = IgniteJni.PROCESSOR_EVENTS(target.Context, target.Target, prj.Target);
+            void* res = JNI.PROCESSOR_EVENTS(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorServices(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = IgniteJni.PROCESSOR_SERVICES(target.Context, target.Target, prj.Target);
+            void* res = JNI.PROCESSOR_SERVICES(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorExtensions(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROCESSOR_EXTENSIONS(target.Context, target.Target);
+            void* res = JNI.PROCESSOR_EXTENSIONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -243,7 +245,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                var res = IgniteJni.PROCESSOR_ATOMIC_LONG(target.Context, target.Target, name0, initialValue, create);
+                var res = JNI.PROCESSOR_ATOMIC_LONG(target.Context, target.Target, name0, initialValue, create);
 
                 return res == null ? null : target.ChangeTarget(res);
             }
@@ -259,51 +261,51 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long TargetInStreamOutLong(IUnmanagedTarget target, int opType, long memPtr)
         {
-            return IgniteJni.TARGET_IN_STREAM_OUT_LONG(target.Context, target.Target, opType, memPtr);
+            return JNI.TARGET_IN_STREAM_OUT_LONG(target.Context, target.Target, opType, memPtr);
         }
 
         internal static void TargetInStreamOutStream(IUnmanagedTarget target, int opType, long inMemPtr, long outMemPtr)
         {
-            IgniteJni.TARGET_IN_STREAM_OUT_STREAM(target.Context, target.Target, opType, inMemPtr, outMemPtr);
+            JNI.TARGET_IN_STREAM_OUT_STREAM(target.Context, target.Target, opType, inMemPtr, outMemPtr);
         }
 
         internal static IUnmanagedTarget TargetInStreamOutObject(IUnmanagedTarget target, int opType, long inMemPtr)
         {
-            void* res = IgniteJni.TARGET_IN_STREAM_OUT_OBJECT(target.Context, target.Target, opType, inMemPtr);
+            void* res = JNI.TARGET_IN_STREAM_OUT_OBJECT(target.Context, target.Target, opType, inMemPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static void TargetInObjectStreamOutStream(IUnmanagedTarget target, int opType, void* arg, long inMemPtr, long outMemPtr)
         {
-            IgniteJni.TARGET_IN_OBJECT_STREAM_OUT_STREAM(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
+            JNI.TARGET_IN_OBJECT_STREAM_OUT_STREAM(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
         }
 
         internal static long TargetOutLong(IUnmanagedTarget target, int opType)
         {
-            return IgniteJni.TARGET_OUT_LONG(target.Context, target.Target, opType);
+            return JNI.TARGET_OUT_LONG(target.Context, target.Target, opType);
         }
 
         internal static void TargetOutStream(IUnmanagedTarget target, int opType, long memPtr)
         {
-            IgniteJni.TARGET_OUT_STREAM(target.Context, target.Target, opType, memPtr);
+            JNI.TARGET_OUT_STREAM(target.Context, target.Target, opType, memPtr);
         }
 
         internal static IUnmanagedTarget TargetOutObject(IUnmanagedTarget target, int opType)
         {
-            void* res = IgniteJni.TARGET_OUT_OBJECT(target.Context, target.Target, opType);
+            void* res = JNI.TARGET_OUT_OBJECT(target.Context, target.Target, opType);
 
             return target.ChangeTarget(res);
         }
 
         internal static void TargetListenFuture(IUnmanagedTarget target, long futId, int typ)
         {
-            IgniteJni.TargetListenFut(target.Context, target.Target, futId, typ);
+            JNI.TargetListenFut(target.Context, target.Target, futId, typ);
         }
 
         internal static void TargetListenFutureForOperation(IUnmanagedTarget target, long futId, int typ, int opId)
         {
-            IgniteJni.TargetListenFutForOp(target.Context, target.Target, futId, typ, opId);
+            JNI.TargetListenFutForOp(target.Context, target.Target, futId, typ, opId);
         }
 
         #endregion
@@ -312,7 +314,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static int AffinityPartitions(IUnmanagedTarget target)
         {
-            return IgniteJni.AffinityParts(target.Context, target.Target);
+            return JNI.AffinityParts(target.Context, target.Target);
         }
 
         #endregion
@@ -321,110 +323,110 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget CacheWithSkipStore(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.CACHE_WITH_SKIP_STORE(target.Context, target.Target);
+            void* res = JNI.CACHE_WITH_SKIP_STORE(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithNoRetries(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.CACHE_WITH_NO_RETRIES(target.Context, target.Target);
+            void* res = JNI.CACHE_WITH_NO_RETRIES(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithExpiryPolicy(IUnmanagedTarget target, long create, long update, long access)
         {
-            void* res = IgniteJni.CACHE_WITH_EXPIRY_POLICY(target.Context, target.Target, create, update, access);
+            void* res = JNI.CACHE_WITH_EXPIRY_POLICY(target.Context, target.Target, create, update, access);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithAsync(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.CACHE_WITH_ASYNC(target.Context, target.Target);
+            void* res = JNI.CACHE_WITH_ASYNC(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithKeepBinary(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.CACHE_WITH_KEEP_BINARY(target.Context, target.Target);
+            void* res = JNI.CACHE_WITH_KEEP_BINARY(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheClear(IUnmanagedTarget target)
         {
-            IgniteJni.CACHE_CLEAR(target.Context, target.Target);
+            JNI.CACHE_CLEAR(target.Context, target.Target);
         }
 
         internal static void CacheRemoveAll(IUnmanagedTarget target)
         {
-            IgniteJni.CACHE_REMOVE_ALL(target.Context, target.Target);
+            JNI.CACHE_REMOVE_ALL(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget CacheOutOpQueryCursor(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = IgniteJni.CACHE_OUT_OP_QUERY_CURSOR(target.Context, target.Target, type, memPtr);
+            void* res = JNI.CACHE_OUT_OP_QUERY_CURSOR(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheOutOpContinuousQuery(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = IgniteJni.CACHE_OUT_OP_CONTINUOUS_QUERY(target.Context, target.Target, type, memPtr);
+            void* res = JNI.CACHE_OUT_OP_CONTINUOUS_QUERY(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheIterator(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.CACHE_ITERATOR(target.Context, target.Target);
+            void* res = JNI.CACHE_ITERATOR(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheLocalIterator(IUnmanagedTarget target, int peekModes)
         {
-            void* res = IgniteJni.CACHE_LOCAL_ITERATOR(target.Context, target.Target, peekModes);
+            void* res = JNI.CACHE_LOCAL_ITERATOR(target.Context, target.Target, peekModes);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheEnterLock(IUnmanagedTarget target, long id)
         {
-            IgniteJni.CACHE_ENTER_LOCK(target.Context, target.Target, id);
+            JNI.CACHE_ENTER_LOCK(target.Context, target.Target, id);
         }
 
         internal static void CacheExitLock(IUnmanagedTarget target, long id)
         {
-            IgniteJni.CACHE_EXIT_LOCK(target.Context, target.Target, id);
+            JNI.CACHE_EXIT_LOCK(target.Context, target.Target, id);
         }
 
         internal static bool CacheTryEnterLock(IUnmanagedTarget target, long id, long timeout)
         {
-            return IgniteJni.CACHE_TRY_ENTER_LOCK(target.Context, target.Target, id, timeout);
+            return JNI.CACHE_TRY_ENTER_LOCK(target.Context, target.Target, id, timeout);
         }
 
         internal static void CacheCloseLock(IUnmanagedTarget target, long id)
         {
-            IgniteJni.CACHE_CLOSE_LOCK(target.Context, target.Target, id);
+            JNI.CACHE_CLOSE_LOCK(target.Context, target.Target, id);
         }
 
         internal static void CacheRebalance(IUnmanagedTarget target, long futId)
         {
-            IgniteJni.CACHE_REBALANCE(target.Context, target.Target, futId);
+            JNI.CACHE_REBALANCE(target.Context, target.Target, futId);
         }
 
         internal static void CacheStoreCallbackInvoke(IUnmanagedTarget target, long memPtr)
         {
-            IgniteJni.CACHE_STORE_CALLBACK_INVOKE(target.Context, target.Target, memPtr);
+            JNI.CACHE_STORE_CALLBACK_INVOKE(target.Context, target.Target, memPtr);
         }
 
         internal static int CacheSize(IUnmanagedTarget target, int modes, bool loc)
         {
-            return IgniteJni.CACHE_SIZE(target.Context, target.Target, modes, loc);
+            return JNI.CACHE_SIZE(target.Context, target.Target, modes, loc);
         }
 
         #endregion
@@ -433,17 +435,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ComputeWithNoFailover(IUnmanagedTarget target)
         {
-            IgniteJni.COMPUTE_WITH_NO_FAILOVER(target.Context, target.Target);
+            JNI.COMPUTE_WITH_NO_FAILOVER(target.Context, target.Target);
         }
 
         internal static void ComputeWithTimeout(IUnmanagedTarget target, long timeout)
         {
-            IgniteJni.COMPUTE_WITH_TIMEOUT(target.Context, target.Target, timeout);
+            JNI.COMPUTE_WITH_TIMEOUT(target.Context, target.Target, timeout);
         }
 
         internal static void ComputeExecuteNative(IUnmanagedTarget target, long taskPtr, long topVer)
         {
-            IgniteJni.COMPUTE_EXECUTE_NATIVE(target.Context, target.Target, taskPtr, topVer);
+            JNI.COMPUTE_EXECUTE_NATIVE(target.Context, target.Target, taskPtr, topVer);
         }
 
         #endregion
@@ -452,12 +454,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ContinuousQueryClose(IUnmanagedTarget target)
         {
-            IgniteJni.ContinuousQryClose(target.Context, target.Target);
+            JNI.ContinuousQryClose(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ContinuousQueryGetInitialQueryCursor(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.ContinuousQryGetInitialQueryCursor(target.Context, target.Target);
+            void* res = JNI.ContinuousQryGetInitialQueryCursor(target.Context, target.Target);
 
             return res == null ? null : target.ChangeTarget(res);
         }
@@ -468,47 +470,47 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void DataStreamerListenTopology(IUnmanagedTarget target, long ptr)
         {
-            IgniteJni.DataStreamerListenTop(target.Context, target.Target, ptr);
+            JNI.DataStreamerListenTop(target.Context, target.Target, ptr);
         }
 
         internal static bool DataStreamerAllowOverwriteGet(IUnmanagedTarget target)
         {
-            return IgniteJni.DATA_STREAMER_ALLOW_OVERWRITE_GET(target.Context, target.Target);
+            return JNI.DATA_STREAMER_ALLOW_OVERWRITE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerAllowOverwriteSet(IUnmanagedTarget target, bool val)
         {
-            IgniteJni.DATA_STREAMER_ALLOW_OVERWRITE_SET(target.Context, target.Target, val);
+            JNI.DATA_STREAMER_ALLOW_OVERWRITE_SET(target.Context, target.Target, val);
         }
 
         internal static bool DataStreamerSkipStoreGet(IUnmanagedTarget target)
         {
-            return IgniteJni.DATA_STREAMER_SKIP_STORE_GET(target.Context, target.Target);
+            return JNI.DATA_STREAMER_SKIP_STORE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerSkipStoreSet(IUnmanagedTarget target, bool val)
         {
-            IgniteJni.DATA_STREAMER_SKIP_STORE_SET(target.Context, target.Target, val);
+            JNI.DATA_STREAMER_SKIP_STORE_SET(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeBufferSizeGet(IUnmanagedTarget target)
         {
-            return IgniteJni.DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(target.Context, target.Target);
+            return JNI.DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(target.Context, target.Target);
         }
 
         internal static void DataStreamerPerNodeBufferSizeSet(IUnmanagedTarget target, int val)
         {
-            IgniteJni.DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(target.Context, target.Target, val);
+            JNI.DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeParallelOperationsGet(IUnmanagedTarget target)
         {
-            return IgniteJni.DataStreamerPerNodeParallelOpsGet(target.Context, target.Target);
+            return JNI.DataStreamerPerNodeParallelOpsGet(target.Context, target.Target);
         }
 
         internal static void DataStreamerPerNodeParallelOperationsSet(IUnmanagedTarget target, int val)
         {
-            IgniteJni.DataStreamerPerNodeParallelOpsSet(target.Context, target.Target, val);
+            JNI.DataStreamerPerNodeParallelOpsSet(target.Context, target.Target, val);
         }
 
         #endregion
@@ -517,7 +519,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget MessagingWithASync(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.MessagingWithAsync(target.Context, target.Target);
+            void* res = JNI.MessagingWithAsync(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -528,54 +530,54 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ProjectionForOthers(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = IgniteJni.PROJECTION_FOR_OTHERS(target.Context, target.Target, prj.Target);
+            void* res = JNI.PROJECTION_FOR_OTHERS(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRemotes(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROJECTION_FOR_REMOTES(target.Context, target.Target);
+            void* res = JNI.PROJECTION_FOR_REMOTES(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForDaemons(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROJECTION_FOR_DAEMONS(target.Context, target.Target);
+            void* res = JNI.PROJECTION_FOR_DAEMONS(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRandom(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROJECTION_FOR_RANDOM(target.Context, target.Target);
+            void* res = JNI.PROJECTION_FOR_RANDOM(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForOldest(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROJECTION_FOR_OLDEST(target.Context, target.Target);
+            void* res = JNI.PROJECTION_FOR_OLDEST(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForYoungest(IUnmanagedTarget target)
         {
-            void* res = IgniteJni.PROJECTION_FOR_YOUNGEST(target.Context, target.Target);
+            void* res = JNI.PROJECTION_FOR_YOUNGEST(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
         
         internal static void ProjectionResetMetrics(IUnmanagedTarget target)
         {
-            IgniteJni.PROJECTION_RESET_METRICS(target.Context, target.Target);
+            JNI.PROJECTION_RESET_METRICS(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProjectionOutOpRet(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = IgniteJni.PROJECTION_OUT_OP_RET(target.Context, target.Target, type, memPtr);
+            void* res = JNI.PROJECTION_OUT_OP_RET(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
@@ -586,12 +588,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void QueryCursorIterator(IUnmanagedTarget target)
         {
-            IgniteJni.QryCursorIterator(target.Context, target.Target);
+            JNI.QryCursorIterator(target.Context, target.Target);
         }
 
         internal static void QueryCursorClose(IUnmanagedTarget target)
         {
-            IgniteJni.QryCursorClose(target.Context, target.Target);
+            JNI.QryCursorClose(target.Context, target.Target);
         }
 
         #endregion
@@ -600,47 +602,47 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long TransactionsStart(IUnmanagedTarget target, int concurrency, int isolation, long timeout, int txSize)
         {
-            return IgniteJni.TxStart(target.Context, target.Target, concurrency, isolation, timeout, txSize);
+            return JNI.TxStart(target.Context, target.Target, concurrency, isolation, timeout, txSize);
         }
 
         internal static int TransactionsCommit(IUnmanagedTarget target, long id)
         {
-            return IgniteJni.TxCommit(target.Context, target.Target, id);
+            return JNI.TxCommit(target.Context, target.Target, id);
         }
 
         internal static void TransactionsCommitAsync(IUnmanagedTarget target, long id, long futId)
         {
-            IgniteJni.TxCommitAsync(target.Context, target.Target, id, futId);
+            JNI.TxCommitAsync(target.Context, target.Target, id, futId);
         }
 
         internal static int TransactionsRollback(IUnmanagedTarget target, long id)
         {
-            return IgniteJni.TxRollback(target.Context, target.Target, id);
+            return JNI.TxRollback(target.Context, target.Target, id);
         }
 
         internal static void TransactionsRollbackAsync(IUnmanagedTarget target, long id, long futId)
         {
-            IgniteJni.TxRollbackAsync(target.Context, target.Target, id, futId);
+            JNI.TxRollbackAsync(target.Context, target.Target, id, futId);
         }
 
         internal static int TransactionsClose(IUnmanagedTarget target, long id)
         {
-            return IgniteJni.TxClose(target.Context, target.Target, id);
+            return JNI.TxClose(target.Context, target.Target, id);
         }
 
         internal static int TransactionsState(IUnmanagedTarget target, long id)
         {
-            return IgniteJni.TxState(target.Context, target.Target, id);
+            return JNI.TxState(target.Context, target.Target, id);
         }
 
         internal static bool TransactionsSetRollbackOnly(IUnmanagedTarget target, long id)
         {
-            return IgniteJni.TxSetRollbackOnly(target.Context, target.Target, id);
+            return JNI.TxSetRollbackOnly(target.Context, target.Target, id);
         }
 
         internal static void TransactionsResetMetrics(IUnmanagedTarget target)
         {
-            IgniteJni.TxResetMetrics(target.Context, target.Target);
+            JNI.TxResetMetrics(target.Context, target.Target);
         }
 
         #endregion
@@ -649,7 +651,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void Reallocate(long memPtr, int cap)
         {
-            int res = IgniteJni.REALLOCATE(memPtr, cap);
+            int res = JNI.REALLOCATE(memPtr, cap);
 
             if (res != 0)
                 throw new IgniteException("Failed to reallocate external memory [ptr=" + memPtr + 
@@ -658,14 +660,14 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget Acquire(UnmanagedContext ctx, void* target)
         {
-            void* target0 = IgniteJni.ACQUIRE(ctx.NativeContext, target);
+            void* target0 = JNI.ACQUIRE(ctx.NativeContext, target);
 
             return new UnmanagedTarget(ctx, target0);
         }
 
         internal static void Release(IUnmanagedTarget target)
         {
-            IgniteJni.RELEASE(target.Target);
+            JNI.RELEASE(target.Target);
         }
 
         internal static void ThrowToJava(void* ctx, Exception e)
@@ -674,7 +676,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                IgniteJni.THROW_TO_JAVA(ctx, msgChars);
+                JNI.THROW_TO_JAVA(ctx, msgChars);
             }
             finally
             {
@@ -686,22 +688,22 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static int HandlersSize()
         {
-            return IgniteJni.HANDLERS_SIZE();
+            return JNI.HANDLERS_SIZE();
         }
 
         internal static void* CreateContext(void* opts, int optsLen, void* cbs)
         {
-            return IgniteJni.CREATE_CONTEXT(opts, optsLen, cbs);
+            return JNI.CREATE_CONTEXT(opts, optsLen, cbs);
         }
 
         internal static void DeleteContext(void* ctx)
         {
-            IgniteJni.DELETE_CONTEXT(ctx);
+            JNI.DELETE_CONTEXT(ctx);
         }
 
         internal static void DestroyJvm(void* ctx)
         {
-            IgniteJni.DESTROY_JVM(ctx);
+            JNI.DESTROY_JVM(ctx);
         }
 
         #endregion
@@ -710,22 +712,22 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget EventsWithAsync(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(IgniteJni.EVENTS_WITH_ASYNC(target.Context, target.Target));
+            return target.ChangeTarget(JNI.EVENTS_WITH_ASYNC(target.Context, target.Target));
         }
 
         internal static bool EventsStopLocalListen(IUnmanagedTarget target, long handle)
         {
-            return IgniteJni.EVENTS_STOP_LOCAL_LISTEN(target.Context, target.Target, handle);
+            return JNI.EVENTS_STOP_LOCAL_LISTEN(target.Context, target.Target, handle);
         }
 
         internal static bool EventsIsEnabled(IUnmanagedTarget target, int type)
         {
-            return IgniteJni.EVENTS_IS_ENABLED(target.Context, target.Target, type);
+            return JNI.EVENTS_IS_ENABLED(target.Context, target.Target, type);
         }
 
         internal static void EventsLocalListen(IUnmanagedTarget target, long handle, int type)
         {
-            IgniteJni.EVENTS_LOCAL_LISTEN(target.Context, target.Target, handle, type);
+            JNI.EVENTS_LOCAL_LISTEN(target.Context, target.Target, handle, type);
         }
 
         #endregion
@@ -734,12 +736,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ServicesWithAsync(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(IgniteJni.SERVICES_WITH_ASYNC(target.Context, target.Target));
+            return target.ChangeTarget(JNI.SERVICES_WITH_ASYNC(target.Context, target.Target));
         }
 
         internal static IUnmanagedTarget ServicesWithServerKeepBinary(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(IgniteJni.SERVICES_WITH_SERVER_KEEP_BINARY(target.Context, target.Target));
+            return target.ChangeTarget(JNI.SERVICES_WITH_SERVER_KEEP_BINARY(target.Context, target.Target));
         }
 
         internal static void ServicesCancel(IUnmanagedTarget target, string name)
@@ -748,7 +750,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                IgniteJni.SERVICES_CANCEL(target.Context, target.Target, nameChars);
+                JNI.SERVICES_CANCEL(target.Context, target.Target, nameChars);
             }
             finally
             {
@@ -758,7 +760,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ServicesCancelAll(IUnmanagedTarget target)
         {
-            IgniteJni.SERVICES_CANCEL_ALL(target.Context, target.Target);
+            JNI.SERVICES_CANCEL_ALL(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ServicesGetServiceProxy(IUnmanagedTarget target, string name, bool sticky)
@@ -767,7 +769,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                return target.ChangeTarget(IgniteJni.SERVICES_GET_SERVICE_PROXY(target.Context, target.Target, nameChars, sticky));
+                return target.ChangeTarget(JNI.SERVICES_GET_SERVICE_PROXY(target.Context, target.Target, nameChars, sticky));
             }
             finally
             {
@@ -781,42 +783,42 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long AtomicLongGet(IUnmanagedTarget target)
         {
-            return IgniteJni.ATOMIC_LONG_GET(target.Context, target.Target);
+            return JNI.ATOMIC_LONG_GET(target.Context, target.Target);
         }
 
         internal static long AtomicLongIncrementAndGet(IUnmanagedTarget target)
         {
-            return IgniteJni.ATOMIC_LONG_INCREMENT_AND_GET(target.Context, target.Target);
+            return JNI.ATOMIC_LONG_INCREMENT_AND_GET(target.Context, target.Target);
         }
 
         internal static long AtomicLongAddAndGet(IUnmanagedTarget target, long value)
         {
-            return IgniteJni.ATOMIC_LONG_ADD_AND_GET(target.Context, target.Target, value);
+            return JNI.ATOMIC_LONG_ADD_AND_GET(target.Context, target.Target, value);
         }
 
         internal static long AtomicLongDecrementAndGet(IUnmanagedTarget target)
         {
-            return IgniteJni.ATOMIC_LONG_DECREMENT_AND_GET(target.Context, target.Target);
+            return JNI.ATOMIC_LONG_DECREMENT_AND_GET(target.Context, target.Target);
         }
 
         internal static long AtomicLongGetAndSet(IUnmanagedTarget target, long value)
         {
-            return IgniteJni.ATOMIC_LONG_GET_AND_SET(target.Context, target.Target, value);
+            return JNI.ATOMIC_LONG_GET_AND_SET(target.Context, target.Target, value);
         }
 
         internal static long AtomicLongCompareAndSetAndGet(IUnmanagedTarget target, long expVal, long newVal)
         {
-            return IgniteJni.ATOMIC_LONG_COMPARE_AND_SET_AND_GET(target.Context, target.Target, expVal, newVal);
+            return JNI.ATOMIC_LONG_COMPARE_AND_SET_AND_GET(target.Context, target.Target, expVal, newVal);
         }
 
         internal static bool AtomicLongIsClosed(IUnmanagedTarget target)
         {
-            return IgniteJni.ATOMIC_LONG_IS_CLOSED(target.Context, target.Target);
+            return JNI.ATOMIC_LONG_IS_CLOSED(target.Context, target.Target);
         }
 
         internal static void AtomicLongClose(IUnmanagedTarget target)
         {
-            IgniteJni.ATOMIC_LONG_CLOSE(target.Context, target.Target);
+            JNI.ATOMIC_LONG_CLOSE(target.Context, target.Target);
         }
 
         #endregion


[09/19] ignite git commit: Fix naming style

Posted by vo...@apache.org.
Fix naming style


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

Branch: refs/heads/ignite-1694
Commit: 8a6f448ced8b28aafc7d543cfb215f0d8e94ba83
Parents: 97cfccc
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Nov 11 18:26:06 2015 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Nov 11 18:26:06 2015 +0300

----------------------------------------------------------------------
 .../Impl/Unmanaged/IgniteJni.cs                 | 168 +++++++++----------
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 168 +++++++++----------
 2 files changed, 168 insertions(+), 168 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8a6f448c/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
index 2991baf..b01f210 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJni.cs
@@ -26,107 +26,107 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     {
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int REALLOCATE(long memPtr, int cap);
+        public static extern int Reallocate(long memPtr, int cap);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* IGNITION_START(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
+        public static extern void* IgnitionStart(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
             long dataPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool IGNITION_STOP(void* ctx, sbyte* gridName, bool cancel);
+        public static extern bool IgnitionStop(void* ctx, sbyte* gridName, bool cancel);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void IGNITION_STOP_ALL(void* ctx, bool cancel);
+        public static extern void IgnitionStopAll(void* ctx, bool cancel);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void PROCESSOR_RELEASE_START(void* ctx, void* obj);
+        public static extern void ProcessorReleaseStart(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_PROJECTION(void* ctx, void* obj);
+        public static extern void* ProcessorProjection(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_CACHE(void* ctx, void* obj, sbyte* name);
+        public static extern void* ProcessorCache(void* ctx, void* obj, sbyte* name);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+        public static extern void* ProcessorCreateCache(void* ctx, void* obj, sbyte* name);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_GET_OR_CREATE_CACHE(void* ctx, void* obj, sbyte* name);
+        public static extern void* ProcessorGetOrCreateCache(void* ctx, void* obj, sbyte* name);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_AFFINITY(void* ctx, void* obj, sbyte* name);
+        public static extern void* ProcessorAffinity(void* ctx, void* obj, sbyte* name);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_DATA_STREAMER(void* ctx, void* obj, sbyte* name, bool keepBinary);
+        public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, bool keepBinary);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_TRANSACTIONS(void* ctx, void* obj);
+        public static extern void* ProcessorTransactions(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_COMPUTE(void* ctx, void* obj, void* prj);
+        public static extern void* ProcessorCompute(void* ctx, void* obj, void* prj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_MESSAGE(void* ctx, void* obj, void* prj);
+        public static extern void* ProcessorMessage(void* ctx, void* obj, void* prj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_EVENTS(void* ctx, void* obj, void* prj);
+        public static extern void* ProcessorEvents(void* ctx, void* obj, void* prj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_SERVICES(void* ctx, void* obj, void* prj);
+        public static extern void* ProcessorServices(void* ctx, void* obj, void* prj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_EXTENSIONS(void* ctx, void* obj);
+        public static extern void* ProcessorExtensions(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROCESSOR_ATOMIC_LONG(void* ctx, void* obj, sbyte* name, long initVal,
+        public static extern void* ProcessorAtomicLong(void* ctx, void* obj, sbyte* name, long initVal,
             bool create);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long TARGET_IN_STREAM_OUT_LONG(void* ctx, void* target, int opType, long memPtr);
+        public static extern long TargetInStreamOutLong(void* ctx, void* target, int opType, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TARGET_IN_STREAM_OUT_STREAM(void* ctx, void* target, int opType, long inMemPtr,
+        public static extern void TargetInStreamOutStream(void* ctx, void* target, int opType, long inMemPtr,
             long outMemPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* TARGET_IN_STREAM_OUT_OBJECT(void* ctx, void* target, int opType, long memPtr);
+        public static extern void* TargetInStreanOutObject(void* ctx, void* target, int opType, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TARGET_IN_OBJECT_STREAM_OUT_STREAM(void* ctx, void* target, int opType,
+        public static extern void TargetInObjectStreamOutStream(void* ctx, void* target, int opType,
             void* arg, long inMemPtr, long outMemPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long TARGET_OUT_LONG(void* ctx, void* target, int opType);
+        public static extern long TargetOutLong(void* ctx, void* target, int opType);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void TARGET_OUT_STREAM(void* ctx, void* target, int opType, long memPtr);
+        public static extern void TargetOutStream(void* ctx, void* target, int opType, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* TARGET_OUT_OBJECT(void* ctx, void* target, int opType);
+        public static extern void* TargetOutObject(void* ctx, void* target, int opType);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -142,88 +142,88 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_WITH_SKIP_STORE(void* ctx, void* obj);
+        public static extern void* CacheWithSkipStore(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_WITH_NO_RETRIES(void* ctx, void* obj);
+        public static extern void* CacheWithNoRetries(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_WITH_EXPIRY_POLICY(void* ctx, void* obj, long create, long update,
+        public static extern void* CacheWithExpiryPolicy(void* ctx, void* obj, long create, long update,
             long access);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_WITH_ASYNC(void* ctx, void* obj);
+        public static extern void* CacheWithAsync(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_WITH_KEEP_BINARY(void* ctx, void* obj);
+        public static extern void* CacheWithKeepBinary(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_CLEAR(void* ctx, void* obj);
+        public static extern void CacheClear(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_REMOVE_ALL(void* ctx, void* obj);
+        public static extern void CacheRemoveAll(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_OUT_OP_QUERY_CURSOR(void* ctx, void* obj, int type, long memPtr);
+        public static extern void* CacheOutOpQueryCursor(void* ctx, void* obj, int type, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_OUT_OP_CONTINUOUS_QUERY(void* ctx, void* obj, int type, long memPtr);
+        public static extern void* CacheOutOpContinuousQuery(void* ctx, void* obj, int type, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_ITERATOR(void* ctx, void* obj);
+        public static extern void* CacheIterator(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CACHE_LOCAL_ITERATOR(void* ctx, void* obj, int peekModes);
+        public static extern void* CacheLocalIterator(void* ctx, void* obj, int peekModes);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_ENTER_LOCK(void* ctx, void* obj, long id);
+        public static extern void CacheEnterLock(void* ctx, void* obj, long id);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_EXIT_LOCK(void* ctx, void* obj, long id);
+        public static extern void CacheExitLock(void* ctx, void* obj, long id);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool CACHE_TRY_ENTER_LOCK(void* ctx, void* obj, long id, long timeout);
+        public static extern bool CacheTryEnterLock(void* ctx, void* obj, long id, long timeout);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_CLOSE_LOCK(void* ctx, void* obj, long id);
+        public static extern void CacheCloseLock(void* ctx, void* obj, long id);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_REBALANCE(void* ctx, void* obj, long futId);
+        public static extern void CacheRebalance(void* ctx, void* obj, long futId);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int CACHE_SIZE(void* ctx, void* obj, int peekModes, bool loc);
+        public static extern int CacheSize(void* ctx, void* obj, int peekModes, bool loc);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void CACHE_STORE_CALLBACK_INVOKE(void* ctx, void* obj, long memPtr);
+        public static extern void CacheStoreCallbackInvoke(void* ctx, void* obj, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void COMPUTE_WITH_NO_FAILOVER(void* ctx, void* target);
+        public static extern void ComputeWithNoFailover(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void COMPUTE_WITH_TIMEOUT(void* ctx, void* target, long timeout);
+        public static extern void ComputeWithTimeout(void* ctx, void* target, long timeout);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void COMPUTE_EXECUTE_NATIVE(void* ctx, void* target, long taskPtr, long topVer);
+        public static extern void ComputeExecuteNative(void* ctx, void* target, long taskPtr, long topVer);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -239,27 +239,27 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool DATA_STREAMER_ALLOW_OVERWRITE_GET(void* ctx, void* obj);
+        public static extern bool DataStreamerAllowOverwriteGet(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DATA_STREAMER_ALLOW_OVERWRITE_SET(void* ctx, void* obj, bool val);
+        public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, bool val);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool DATA_STREAMER_SKIP_STORE_GET(void* ctx, void* obj);
+        public static extern bool DataStreamerSkipStoreGet(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DATA_STREAMER_SKIP_STORE_SET(void* ctx, void* obj, bool val);
+        public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, bool val);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(void* ctx, void* obj);
+        public static extern int DataStreamerPerNodeBufferSizeGet(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(void* ctx, void* obj, int val);
+        public static extern void DataStreamerPerNodeBufferSizeSet(void* ctx, void* obj, int val);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -275,35 +275,35 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_OTHERS(void* ctx, void* obj, void* prj);
+        public static extern void* ProjectionForOthers(void* ctx, void* obj, void* prj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_REMOTES(void* ctx, void* obj);
+        public static extern void* ProjectionForRemotes(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_DAEMONS(void* ctx, void* obj);
+        public static extern void* ProjectionForDaemons(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_RANDOM(void* ctx, void* obj);
+        public static extern void* ProjectionForRandom(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_OLDEST(void* ctx, void* obj);
+        public static extern void* ProjectionForOldest(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_FOR_YOUNGEST(void* ctx, void* obj);
+        public static extern void* ProjectionForYoungest(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void PROJECTION_RESET_METRICS(void* ctx, void* obj);
+        public static extern void ProjectionResetMetrics(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* PROJECTION_OUT_OP_RET(void* ctx, void* obj, int type, long memPtr);
+        public static extern void* ProjectionOutOpRet(void* ctx, void* obj, int type, long memPtr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -315,11 +315,11 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* ACQUIRE(void* ctx, void* target);
+        public static extern void* Acquire(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void RELEASE(void* target);
+        public static extern void Release(void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
@@ -360,91 +360,91 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void THROW_TO_JAVA(void* ctx, char* msg);
+        public static extern void ThrowToJava(void* ctx, char* msg);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int HANDLERS_SIZE();
+        public static extern int HandlersSize();
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* CREATE_CONTEXT(void* opts, int optsLen, void* cbs);
+        public static extern void* CreateContext(void* opts, int optsLen, void* cbs);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DELETE_CONTEXT(void* ptr);
+        public static extern void DeleteContext(void* ptr);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void DESTROY_JVM(void* ctx);
+        public static extern void DestroyJvm(void* ctx);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* EVENTS_WITH_ASYNC(void* ctx, void* obj);
+        public static extern void* EventsWithAsync(void* ctx, void* obj);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool EVENTS_STOP_LOCAL_LISTEN(void* ctx, void* obj, long hnd);
+        public static extern bool EventsStopLocalListen(void* ctx, void* obj, long hnd);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void EVENTS_LOCAL_LISTEN(void* ctx, void* obj, long hnd, int type);
+        public static extern void EventsLocalListen(void* ctx, void* obj, long hnd, int type);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool EVENTS_IS_ENABLED(void* ctx, void* obj, int type);
+        public static extern bool EventsIsEnabled(void* ctx, void* obj, int type);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* SERVICES_WITH_ASYNC(void* ctx, void* target);
+        public static extern void* ServicesWithAsync(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* SERVICES_WITH_SERVER_KEEP_BINARY(void* ctx, void* target);
+        public static extern void* ServicesWithServerKeepBinary(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long SERVICES_CANCEL(void* ctx, void* target, char* name);
+        public static extern long ServicesCancel(void* ctx, void* target, char* name);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long SERVICES_CANCEL_ALL(void* ctx, void* target);
+        public static extern long ServicesCancelAll(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* SERVICES_GET_SERVICE_PROXY(void* ctx, void* target, char* name, bool sticky);
+        public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name, bool sticky);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_GET(void* ctx, void* target);
+        public static extern long AtomicLongGet(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_INCREMENT_AND_GET(void* ctx, void* target);
+        public static extern long AtomicLongIncrementAndGet(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_ADD_AND_GET(void* ctx, void* target, long value);
+        public static extern long AtomicLongAddAndGet(void* ctx, void* target, long value);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_DECREMENT_AND_GET(void* ctx, void* target);
+        public static extern long AtomicLongDecrementAndGet(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_GET_AND_SET(void* ctx, void* target, long value);
+        public static extern long AtomicLongGetAndSet(void* ctx, void* target, long value);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
             SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern long ATOMIC_LONG_COMPARE_AND_SET_AND_GET(void* ctx, void* target, long expVal,
+        public static extern long AtomicLongCompareAndSetAndGet(void* ctx, void* target, long expVal,
             long newVal);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern bool ATOMIC_LONG_IS_CLOSED(void* ctx, void* target);
+        public static extern bool AtomicLongIsClosed(void* ctx, void* target);
 
         [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
             CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void ATOMIC_LONG_CLOSE(void* ctx, void* target);
+        public static extern void AtomicLongClose(void* ctx, void* target);
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/8a6f448c/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index 9425df3..288dc30 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -72,7 +72,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
                 try
                 {
-                    void* res = JNI.IGNITION_START(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
+                    void* res = JNI.IgnitionStart(ctx.NativeContext, cfgPath0, gridName0, InteropFactoryId,
                         mem.SynchronizeOutput());
 
                     return new UnmanagedTarget(ctx, res);
@@ -91,7 +91,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                return JNI.IGNITION_STOP(ctx, gridName0, cancel);
+                return JNI.IgnitionStop(ctx, gridName0, cancel);
             }
             finally
             {
@@ -101,17 +101,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void IgnitionStopAll(void* ctx, bool cancel)
         {
-            JNI.IGNITION_STOP_ALL(ctx, cancel);
+            JNI.IgnitionStopAll(ctx, cancel);
         }
         
         internal static void ProcessorReleaseStart(IUnmanagedTarget target)
         {
-            JNI.PROCESSOR_RELEASE_START(target.Context, target.Target);
+            JNI.ProcessorReleaseStart(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProcessorProjection(IUnmanagedTarget target)
         {
-            void* res = JNI.PROCESSOR_PROJECTION(target.Context, target.Target);
+            void* res = JNI.ProcessorProjection(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -122,7 +122,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = JNI.PROCESSOR_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.ProcessorCache(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -138,7 +138,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = JNI.PROCESSOR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.ProcessorCreateCache(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -154,7 +154,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = JNI.PROCESSOR_GET_OR_CREATE_CACHE(target.Context, target.Target, name0);
+                void* res = JNI.ProcessorGetOrCreateCache(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -170,7 +170,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = JNI.PROCESSOR_AFFINITY(target.Context, target.Target, name0);
+                void* res = JNI.ProcessorAffinity(target.Context, target.Target, name0);
 
                 return target.ChangeTarget(res);
             }
@@ -186,7 +186,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                void* res = JNI.PROCESSOR_DATA_STREAMER(target.Context, target.Target, name0, keepBinary);
+                void* res = JNI.ProcessorDataStreamer(target.Context, target.Target, name0, keepBinary);
 
                 return target.ChangeTarget(res);
             }
@@ -198,42 +198,42 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
         
         internal static IUnmanagedTarget ProcessorTransactions(IUnmanagedTarget target)
         {
-            void* res = JNI.PROCESSOR_TRANSACTIONS(target.Context, target.Target);
+            void* res = JNI.ProcessorTransactions(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorCompute(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = JNI.PROCESSOR_COMPUTE(target.Context, target.Target, prj.Target);
+            void* res = JNI.ProcessorCompute(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorMessage(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = JNI.PROCESSOR_MESSAGE(target.Context, target.Target, prj.Target);
+            void* res = JNI.ProcessorMessage(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorEvents(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = JNI.PROCESSOR_EVENTS(target.Context, target.Target, prj.Target);
+            void* res = JNI.ProcessorEvents(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorServices(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = JNI.PROCESSOR_SERVICES(target.Context, target.Target, prj.Target);
+            void* res = JNI.ProcessorServices(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProcessorExtensions(IUnmanagedTarget target)
         {
-            void* res = JNI.PROCESSOR_EXTENSIONS(target.Context, target.Target);
+            void* res = JNI.ProcessorExtensions(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
@@ -245,7 +245,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                var res = JNI.PROCESSOR_ATOMIC_LONG(target.Context, target.Target, name0, initialValue, create);
+                var res = JNI.ProcessorAtomicLong(target.Context, target.Target, name0, initialValue, create);
 
                 return res == null ? null : target.ChangeTarget(res);
             }
@@ -261,39 +261,39 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long TargetInStreamOutLong(IUnmanagedTarget target, int opType, long memPtr)
         {
-            return JNI.TARGET_IN_STREAM_OUT_LONG(target.Context, target.Target, opType, memPtr);
+            return JNI.TargetInStreamOutLong(target.Context, target.Target, opType, memPtr);
         }
 
         internal static void TargetInStreamOutStream(IUnmanagedTarget target, int opType, long inMemPtr, long outMemPtr)
         {
-            JNI.TARGET_IN_STREAM_OUT_STREAM(target.Context, target.Target, opType, inMemPtr, outMemPtr);
+            JNI.TargetInStreamOutStream(target.Context, target.Target, opType, inMemPtr, outMemPtr);
         }
 
         internal static IUnmanagedTarget TargetInStreamOutObject(IUnmanagedTarget target, int opType, long inMemPtr)
         {
-            void* res = JNI.TARGET_IN_STREAM_OUT_OBJECT(target.Context, target.Target, opType, inMemPtr);
+            void* res = JNI.TargetInStreanOutObject(target.Context, target.Target, opType, inMemPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static void TargetInObjectStreamOutStream(IUnmanagedTarget target, int opType, void* arg, long inMemPtr, long outMemPtr)
         {
-            JNI.TARGET_IN_OBJECT_STREAM_OUT_STREAM(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
+            JNI.TargetInObjectStreamOutStream(target.Context, target.Target, opType, arg, inMemPtr, outMemPtr);
         }
 
         internal static long TargetOutLong(IUnmanagedTarget target, int opType)
         {
-            return JNI.TARGET_OUT_LONG(target.Context, target.Target, opType);
+            return JNI.TargetOutLong(target.Context, target.Target, opType);
         }
 
         internal static void TargetOutStream(IUnmanagedTarget target, int opType, long memPtr)
         {
-            JNI.TARGET_OUT_STREAM(target.Context, target.Target, opType, memPtr);
+            JNI.TargetOutStream(target.Context, target.Target, opType, memPtr);
         }
 
         internal static IUnmanagedTarget TargetOutObject(IUnmanagedTarget target, int opType)
         {
-            void* res = JNI.TARGET_OUT_OBJECT(target.Context, target.Target, opType);
+            void* res = JNI.TargetOutObject(target.Context, target.Target, opType);
 
             return target.ChangeTarget(res);
         }
@@ -323,110 +323,110 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget CacheWithSkipStore(IUnmanagedTarget target)
         {
-            void* res = JNI.CACHE_WITH_SKIP_STORE(target.Context, target.Target);
+            void* res = JNI.CacheWithSkipStore(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithNoRetries(IUnmanagedTarget target)
         {
-            void* res = JNI.CACHE_WITH_NO_RETRIES(target.Context, target.Target);
+            void* res = JNI.CacheWithNoRetries(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithExpiryPolicy(IUnmanagedTarget target, long create, long update, long access)
         {
-            void* res = JNI.CACHE_WITH_EXPIRY_POLICY(target.Context, target.Target, create, update, access);
+            void* res = JNI.CacheWithExpiryPolicy(target.Context, target.Target, create, update, access);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithAsync(IUnmanagedTarget target)
         {
-            void* res = JNI.CACHE_WITH_ASYNC(target.Context, target.Target);
+            void* res = JNI.CacheWithAsync(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheWithKeepBinary(IUnmanagedTarget target)
         {
-            void* res = JNI.CACHE_WITH_KEEP_BINARY(target.Context, target.Target);
+            void* res = JNI.CacheWithKeepBinary(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheClear(IUnmanagedTarget target)
         {
-            JNI.CACHE_CLEAR(target.Context, target.Target);
+            JNI.CacheClear(target.Context, target.Target);
         }
 
         internal static void CacheRemoveAll(IUnmanagedTarget target)
         {
-            JNI.CACHE_REMOVE_ALL(target.Context, target.Target);
+            JNI.CacheRemoveAll(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget CacheOutOpQueryCursor(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = JNI.CACHE_OUT_OP_QUERY_CURSOR(target.Context, target.Target, type, memPtr);
+            void* res = JNI.CacheOutOpQueryCursor(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheOutOpContinuousQuery(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = JNI.CACHE_OUT_OP_CONTINUOUS_QUERY(target.Context, target.Target, type, memPtr);
+            void* res = JNI.CacheOutOpContinuousQuery(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheIterator(IUnmanagedTarget target)
         {
-            void* res = JNI.CACHE_ITERATOR(target.Context, target.Target);
+            void* res = JNI.CacheIterator(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget CacheLocalIterator(IUnmanagedTarget target, int peekModes)
         {
-            void* res = JNI.CACHE_LOCAL_ITERATOR(target.Context, target.Target, peekModes);
+            void* res = JNI.CacheLocalIterator(target.Context, target.Target, peekModes);
 
             return target.ChangeTarget(res);
         }
 
         internal static void CacheEnterLock(IUnmanagedTarget target, long id)
         {
-            JNI.CACHE_ENTER_LOCK(target.Context, target.Target, id);
+            JNI.CacheEnterLock(target.Context, target.Target, id);
         }
 
         internal static void CacheExitLock(IUnmanagedTarget target, long id)
         {
-            JNI.CACHE_EXIT_LOCK(target.Context, target.Target, id);
+            JNI.CacheExitLock(target.Context, target.Target, id);
         }
 
         internal static bool CacheTryEnterLock(IUnmanagedTarget target, long id, long timeout)
         {
-            return JNI.CACHE_TRY_ENTER_LOCK(target.Context, target.Target, id, timeout);
+            return JNI.CacheTryEnterLock(target.Context, target.Target, id, timeout);
         }
 
         internal static void CacheCloseLock(IUnmanagedTarget target, long id)
         {
-            JNI.CACHE_CLOSE_LOCK(target.Context, target.Target, id);
+            JNI.CacheCloseLock(target.Context, target.Target, id);
         }
 
         internal static void CacheRebalance(IUnmanagedTarget target, long futId)
         {
-            JNI.CACHE_REBALANCE(target.Context, target.Target, futId);
+            JNI.CacheRebalance(target.Context, target.Target, futId);
         }
 
         internal static void CacheStoreCallbackInvoke(IUnmanagedTarget target, long memPtr)
         {
-            JNI.CACHE_STORE_CALLBACK_INVOKE(target.Context, target.Target, memPtr);
+            JNI.CacheStoreCallbackInvoke(target.Context, target.Target, memPtr);
         }
 
         internal static int CacheSize(IUnmanagedTarget target, int modes, bool loc)
         {
-            return JNI.CACHE_SIZE(target.Context, target.Target, modes, loc);
+            return JNI.CacheSize(target.Context, target.Target, modes, loc);
         }
 
         #endregion
@@ -435,17 +435,17 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ComputeWithNoFailover(IUnmanagedTarget target)
         {
-            JNI.COMPUTE_WITH_NO_FAILOVER(target.Context, target.Target);
+            JNI.ComputeWithNoFailover(target.Context, target.Target);
         }
 
         internal static void ComputeWithTimeout(IUnmanagedTarget target, long timeout)
         {
-            JNI.COMPUTE_WITH_TIMEOUT(target.Context, target.Target, timeout);
+            JNI.ComputeWithTimeout(target.Context, target.Target, timeout);
         }
 
         internal static void ComputeExecuteNative(IUnmanagedTarget target, long taskPtr, long topVer)
         {
-            JNI.COMPUTE_EXECUTE_NATIVE(target.Context, target.Target, taskPtr, topVer);
+            JNI.ComputeExecuteNative(target.Context, target.Target, taskPtr, topVer);
         }
 
         #endregion
@@ -475,32 +475,32 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static bool DataStreamerAllowOverwriteGet(IUnmanagedTarget target)
         {
-            return JNI.DATA_STREAMER_ALLOW_OVERWRITE_GET(target.Context, target.Target);
+            return JNI.DataStreamerAllowOverwriteGet(target.Context, target.Target);
         }
 
         internal static void DataStreamerAllowOverwriteSet(IUnmanagedTarget target, bool val)
         {
-            JNI.DATA_STREAMER_ALLOW_OVERWRITE_SET(target.Context, target.Target, val);
+            JNI.DataStreamerAllowOverwriteSet(target.Context, target.Target, val);
         }
 
         internal static bool DataStreamerSkipStoreGet(IUnmanagedTarget target)
         {
-            return JNI.DATA_STREAMER_SKIP_STORE_GET(target.Context, target.Target);
+            return JNI.DataStreamerSkipStoreGet(target.Context, target.Target);
         }
 
         internal static void DataStreamerSkipStoreSet(IUnmanagedTarget target, bool val)
         {
-            JNI.DATA_STREAMER_SKIP_STORE_SET(target.Context, target.Target, val);
+            JNI.DataStreamerSkipStoreSet(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeBufferSizeGet(IUnmanagedTarget target)
         {
-            return JNI.DATA_STREAMER_PER_NODE_BUFFER_SIZE_GET(target.Context, target.Target);
+            return JNI.DataStreamerPerNodeBufferSizeGet(target.Context, target.Target);
         }
 
         internal static void DataStreamerPerNodeBufferSizeSet(IUnmanagedTarget target, int val)
         {
-            JNI.DATA_STREAMER_PER_NODE_BUFFER_SIZE_SET(target.Context, target.Target, val);
+            JNI.DataStreamerPerNodeBufferSizeSet(target.Context, target.Target, val);
         }
 
         internal static int DataStreamerPerNodeParallelOperationsGet(IUnmanagedTarget target)
@@ -530,54 +530,54 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ProjectionForOthers(IUnmanagedTarget target, IUnmanagedTarget prj)
         {
-            void* res = JNI.PROJECTION_FOR_OTHERS(target.Context, target.Target, prj.Target);
+            void* res = JNI.ProjectionForOthers(target.Context, target.Target, prj.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRemotes(IUnmanagedTarget target)
         {
-            void* res = JNI.PROJECTION_FOR_REMOTES(target.Context, target.Target);
+            void* res = JNI.ProjectionForRemotes(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForDaemons(IUnmanagedTarget target)
         {
-            void* res = JNI.PROJECTION_FOR_DAEMONS(target.Context, target.Target);
+            void* res = JNI.ProjectionForDaemons(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForRandom(IUnmanagedTarget target)
         {
-            void* res = JNI.PROJECTION_FOR_RANDOM(target.Context, target.Target);
+            void* res = JNI.ProjectionForRandom(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForOldest(IUnmanagedTarget target)
         {
-            void* res = JNI.PROJECTION_FOR_OLDEST(target.Context, target.Target);
+            void* res = JNI.ProjectionForOldest(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
 
         internal static IUnmanagedTarget ProjectionForYoungest(IUnmanagedTarget target)
         {
-            void* res = JNI.PROJECTION_FOR_YOUNGEST(target.Context, target.Target);
+            void* res = JNI.ProjectionForYoungest(target.Context, target.Target);
 
             return target.ChangeTarget(res);
         }
         
         internal static void ProjectionResetMetrics(IUnmanagedTarget target)
         {
-            JNI.PROJECTION_RESET_METRICS(target.Context, target.Target);
+            JNI.ProjectionResetMetrics(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ProjectionOutOpRet(IUnmanagedTarget target, int type, long memPtr)
         {
-            void* res = JNI.PROJECTION_OUT_OP_RET(target.Context, target.Target, type, memPtr);
+            void* res = JNI.ProjectionOutOpRet(target.Context, target.Target, type, memPtr);
 
             return target.ChangeTarget(res);
         }
@@ -651,7 +651,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void Reallocate(long memPtr, int cap)
         {
-            int res = JNI.REALLOCATE(memPtr, cap);
+            int res = JNI.Reallocate(memPtr, cap);
 
             if (res != 0)
                 throw new IgniteException("Failed to reallocate external memory [ptr=" + memPtr + 
@@ -660,14 +660,14 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget Acquire(UnmanagedContext ctx, void* target)
         {
-            void* target0 = JNI.ACQUIRE(ctx.NativeContext, target);
+            void* target0 = JNI.Acquire(ctx.NativeContext, target);
 
             return new UnmanagedTarget(ctx, target0);
         }
 
         internal static void Release(IUnmanagedTarget target)
         {
-            JNI.RELEASE(target.Target);
+            JNI.Release(target.Target);
         }
 
         internal static void ThrowToJava(void* ctx, Exception e)
@@ -676,7 +676,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                JNI.THROW_TO_JAVA(ctx, msgChars);
+                JNI.ThrowToJava(ctx, msgChars);
             }
             finally
             {
@@ -688,22 +688,22 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static int HandlersSize()
         {
-            return JNI.HANDLERS_SIZE();
+            return JNI.HandlersSize();
         }
 
         internal static void* CreateContext(void* opts, int optsLen, void* cbs)
         {
-            return JNI.CREATE_CONTEXT(opts, optsLen, cbs);
+            return JNI.CreateContext(opts, optsLen, cbs);
         }
 
         internal static void DeleteContext(void* ctx)
         {
-            JNI.DELETE_CONTEXT(ctx);
+            JNI.DeleteContext(ctx);
         }
 
         internal static void DestroyJvm(void* ctx)
         {
-            JNI.DESTROY_JVM(ctx);
+            JNI.DestroyJvm(ctx);
         }
 
         #endregion
@@ -712,22 +712,22 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget EventsWithAsync(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(JNI.EVENTS_WITH_ASYNC(target.Context, target.Target));
+            return target.ChangeTarget(JNI.EventsWithAsync(target.Context, target.Target));
         }
 
         internal static bool EventsStopLocalListen(IUnmanagedTarget target, long handle)
         {
-            return JNI.EVENTS_STOP_LOCAL_LISTEN(target.Context, target.Target, handle);
+            return JNI.EventsStopLocalListen(target.Context, target.Target, handle);
         }
 
         internal static bool EventsIsEnabled(IUnmanagedTarget target, int type)
         {
-            return JNI.EVENTS_IS_ENABLED(target.Context, target.Target, type);
+            return JNI.EventsIsEnabled(target.Context, target.Target, type);
         }
 
         internal static void EventsLocalListen(IUnmanagedTarget target, long handle, int type)
         {
-            JNI.EVENTS_LOCAL_LISTEN(target.Context, target.Target, handle, type);
+            JNI.EventsLocalListen(target.Context, target.Target, handle, type);
         }
 
         #endregion
@@ -736,12 +736,12 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static IUnmanagedTarget ServicesWithAsync(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(JNI.SERVICES_WITH_ASYNC(target.Context, target.Target));
+            return target.ChangeTarget(JNI.ServicesWithAsync(target.Context, target.Target));
         }
 
         internal static IUnmanagedTarget ServicesWithServerKeepBinary(IUnmanagedTarget target)
         {
-            return target.ChangeTarget(JNI.SERVICES_WITH_SERVER_KEEP_BINARY(target.Context, target.Target));
+            return target.ChangeTarget(JNI.ServicesWithServerKeepBinary(target.Context, target.Target));
         }
 
         internal static void ServicesCancel(IUnmanagedTarget target, string name)
@@ -750,7 +750,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                JNI.SERVICES_CANCEL(target.Context, target.Target, nameChars);
+                JNI.ServicesCancel(target.Context, target.Target, nameChars);
             }
             finally
             {
@@ -760,7 +760,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static void ServicesCancelAll(IUnmanagedTarget target)
         {
-            JNI.SERVICES_CANCEL_ALL(target.Context, target.Target);
+            JNI.ServicesCancelAll(target.Context, target.Target);
         }
 
         internal static IUnmanagedTarget ServicesGetServiceProxy(IUnmanagedTarget target, string name, bool sticky)
@@ -769,7 +769,7 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
             try
             {
-                return target.ChangeTarget(JNI.SERVICES_GET_SERVICE_PROXY(target.Context, target.Target, nameChars, sticky));
+                return target.ChangeTarget(JNI.ServicesGetServiceProxy(target.Context, target.Target, nameChars, sticky));
             }
             finally
             {
@@ -783,42 +783,42 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
 
         internal static long AtomicLongGet(IUnmanagedTarget target)
         {
-            return JNI.ATOMIC_LONG_GET(target.Context, target.Target);
+            return JNI.AtomicLongGet(target.Context, target.Target);
         }
 
         internal static long AtomicLongIncrementAndGet(IUnmanagedTarget target)
         {
-            return JNI.ATOMIC_LONG_INCREMENT_AND_GET(target.Context, target.Target);
+            return JNI.AtomicLongIncrementAndGet(target.Context, target.Target);
         }
 
         internal static long AtomicLongAddAndGet(IUnmanagedTarget target, long value)
         {
-            return JNI.ATOMIC_LONG_ADD_AND_GET(target.Context, target.Target, value);
+            return JNI.AtomicLongAddAndGet(target.Context, target.Target, value);
         }
 
         internal static long AtomicLongDecrementAndGet(IUnmanagedTarget target)
         {
-            return JNI.ATOMIC_LONG_DECREMENT_AND_GET(target.Context, target.Target);
+            return JNI.AtomicLongDecrementAndGet(target.Context, target.Target);
         }
 
         internal static long AtomicLongGetAndSet(IUnmanagedTarget target, long value)
         {
-            return JNI.ATOMIC_LONG_GET_AND_SET(target.Context, target.Target, value);
+            return JNI.AtomicLongGetAndSet(target.Context, target.Target, value);
         }
 
         internal static long AtomicLongCompareAndSetAndGet(IUnmanagedTarget target, long expVal, long newVal)
         {
-            return JNI.ATOMIC_LONG_COMPARE_AND_SET_AND_GET(target.Context, target.Target, expVal, newVal);
+            return JNI.AtomicLongCompareAndSetAndGet(target.Context, target.Target, expVal, newVal);
         }
 
         internal static bool AtomicLongIsClosed(IUnmanagedTarget target)
         {
-            return JNI.ATOMIC_LONG_IS_CLOSED(target.Context, target.Target);
+            return JNI.AtomicLongIsClosed(target.Context, target.Target);
         }
 
         internal static void AtomicLongClose(IUnmanagedTarget target)
         {
-            JNI.ATOMIC_LONG_CLOSE(target.Context, target.Target);
+            JNI.AtomicLongClose(target.Context, target.Target);
         }
 
         #endregion


[19/19] ignite git commit: IGNITE-1694: Simplification and optimization.

Posted by vo...@apache.org.
IGNITE-1694: Simplification and optimization.


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

Branch: refs/heads/ignite-1694
Commit: 4d79c2b65cf9742717a4438972ff88d9813921a0
Parents: 3490e52
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Tue Dec 8 16:14:43 2015 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Tue Dec 8 16:14:43 2015 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core/Impl/NativeMethods.cs    |  10 -
 .../Impl/Unmanaged/IgniteJniNativeMethods.cs    | 317 +++++++------------
 .../Impl/Unmanaged/UnmanagedUtils.cs            |   2 -
 3 files changed, 107 insertions(+), 222 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4d79c2b6/modules/platforms/dotnet/Apache.Ignite.Core/Impl/NativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/NativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/NativeMethods.cs
index 6e25e7e..eb3ba97 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/NativeMethods.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/NativeMethods.cs
@@ -33,15 +33,5 @@ namespace Apache.Ignite.Core.Impl
         [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, 
             ThrowOnUnmappableChar = true)]
         internal static extern IntPtr LoadLibrary(string path);
-
-        /// <summary>
-        /// Get procedure address with WinAPI.
-        /// </summary>
-        /// <param name="ptr">DLL pointer.</param>
-        /// <param name="name">Procedure name.</param>
-        /// <returns>Procedure address.</returns>
-        [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, 
-            ThrowOnUnmappableChar = true)]
-        internal static extern IntPtr GetProcAddress(IntPtr ptr, string name);
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4d79c2b6/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
index 7a2f606..3189503 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/IgniteJniNativeMethods.cs
@@ -26,439 +26,336 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
     [SuppressUnmanagedCodeSecurity]
     internal unsafe static class IgniteJniNativeMethods
     {
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteReallocate")]
         public static extern int Reallocate(long memPtr, int cap);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern void* IgnitionStart(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId,
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStart")]
+        public static extern void* IgnitionStart(void* ctx, sbyte* cfgPath, sbyte* gridName, int factoryId, 
             long dataPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStop")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool IgnitionStop(void* ctx, sbyte* gridName, [MarshalAs(UnmanagedType.U1)] bool cancel);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteIgnitionStopAll")]
         public static extern void IgnitionStopAll(void* ctx, [MarshalAs(UnmanagedType.U1)] bool cancel);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorReleaseStart")]
         public static extern void ProcessorReleaseStart(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorProjection")]
         public static extern void* ProcessorProjection(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCache")]
         public static extern void* ProcessorCache(void* ctx, void* obj, sbyte* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCreateCache")]
         public static extern void* ProcessorCreateCache(void* ctx, void* obj, sbyte* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorGetOrCreateCache")]
         public static extern void* ProcessorGetOrCreateCache(void* ctx, void* obj, sbyte* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAffinity")]
         public static extern void* ProcessorAffinity(void* ctx, void* obj, sbyte* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorDataStreamer")]
         public static extern void* ProcessorDataStreamer(void* ctx, void* obj, sbyte* name, 
             [MarshalAs(UnmanagedType.U1)] bool keepBinary);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorTransactions")]
         public static extern void* ProcessorTransactions(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorCompute")]
         public static extern void* ProcessorCompute(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorMessage")]
         public static extern void* ProcessorMessage(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorEvents")]
         public static extern void* ProcessorEvents(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorServices")]
         public static extern void* ProcessorServices(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorExtensions")]
         public static extern void* ProcessorExtensions(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProcessorAtomicLong")]
         public static extern void* ProcessorAtomicLong(void* ctx, void* obj, sbyte* name, long initVal,
             [MarshalAs(UnmanagedType.U1)] bool create);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutLong")]
         public static extern long TargetInStreamOutLong(void* ctx, void* target, int opType, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutStream")]
         public static extern void TargetInStreamOutStream(void* ctx, void* target, int opType, long inMemPtr,
             long outMemPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInStreamOutObject")]
         public static extern void* TargetInStreanOutObject(void* ctx, void* target, int opType, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetInObjectStreamOutStream")]
         public static extern void TargetInObjectStreamOutStream(void* ctx, void* target, int opType,
             void* arg, long inMemPtr, long outMemPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutLong")]
         public static extern long TargetOutLong(void* ctx, void* target, int opType);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutStream")]
         public static extern void TargetOutStream(void* ctx, void* target, int opType, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetOutObject")]
         public static extern void* TargetOutObject(void* ctx, void* target, int opType);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFuture")]
         public static extern void TargetListenFut(void* ctx, void* target, long futId, int typ);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTargetListenFutureForOperation")]
         public static extern void TargetListenFutForOp(void* ctx, void* target, long futId, int typ, int opId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAffinityPartitions")]
         public static extern int AffinityParts(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithSkipStore")]
         public static extern void* CacheWithSkipStore(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithNoRetries")]
         public static extern void* CacheWithNoRetries(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithExpiryPolicy")]
         public static extern void* CacheWithExpiryPolicy(void* ctx, void* obj, long create, long update,
             long access);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithAsync")]
         public static extern void* CacheWithAsync(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheWithKeepPortable")]
         public static extern void* CacheWithKeepBinary(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheClear")]
         public static extern void CacheClear(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRemoveAll")]
         public static extern void CacheRemoveAll(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpQueryCursor")]
         public static extern void* CacheOutOpQueryCursor(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheOutOpContinuousQuery")]
         public static extern void* CacheOutOpContinuousQuery(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheIterator")]
         public static extern void* CacheIterator(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheLocalIterator")]
         public static extern void* CacheLocalIterator(void* ctx, void* obj, int peekModes);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheEnterLock")]
         public static extern void CacheEnterLock(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheExitLock")]
         public static extern void CacheExitLock(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheTryEnterLock")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool CacheTryEnterLock(void* ctx, void* obj, long id, long timeout);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheCloseLock")]
         public static extern void CacheCloseLock(void* ctx, void* obj, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheRebalance")]
         public static extern void CacheRebalance(void* ctx, void* obj, long futId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
-        public static extern int CacheSize(void* ctx, void* obj, int peekModes, [MarshalAs(UnmanagedType.U1)] bool loc);
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheSize")]
+        public static extern int CacheSize(void* ctx, void* obj, int peekModes, 
+            [MarshalAs(UnmanagedType.U1)] bool loc);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCacheStoreCallbackInvoke")]
         public static extern void CacheStoreCallbackInvoke(void* ctx, void* obj, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithNoFailover")]
         public static extern void ComputeWithNoFailover(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeWithTimeout")]
         public static extern void ComputeWithTimeout(void* ctx, void* target, long timeout);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteComputeExecuteNative")]
         public static extern void ComputeExecuteNative(void* ctx, void* target, long taskPtr, long topVer);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryClose")]
         public static extern void ContinuousQryClose(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteContinuousQueryGetInitialQueryCursor")]
         public static extern void* ContinuousQryGetInitialQueryCursor(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerListenTopology")]
         public static extern void DataStreamerListenTop(void* ctx, void* obj, long ptr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteGet")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool DataStreamerAllowOverwriteGet(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerAllowOverwriteSet")]
         public static extern void DataStreamerAllowOverwriteSet(void* ctx, void* obj, 
             [MarshalAs(UnmanagedType.U1)] bool val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreGet")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool DataStreamerSkipStoreGet(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerSkipStoreSet")]
         public static extern void DataStreamerSkipStoreSet(void* ctx, void* obj, 
             [MarshalAs(UnmanagedType.U1)] bool val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeGet")]
         public static extern int DataStreamerPerNodeBufferSizeGet(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeBufferSizeSet")]
         public static extern void DataStreamerPerNodeBufferSizeSet(void* ctx, void* obj, int val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsGet")]
         public static extern int DataStreamerPerNodeParallelOpsGet(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDataStreamerPerNodeParallelOperationsSet")]
         public static extern void DataStreamerPerNodeParallelOpsSet(void* ctx, void* obj, int val);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteMessagingWithAsync")]
         public static extern void* MessagingWithAsync(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOthers")]
         public static extern void* ProjectionForOthers(void* ctx, void* obj, void* prj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRemotes")]
         public static extern void* ProjectionForRemotes(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForDaemons")]
         public static extern void* ProjectionForDaemons(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForRandom")]
         public static extern void* ProjectionForRandom(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForOldest")]
         public static extern void* ProjectionForOldest(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionForYoungest")]
         public static extern void* ProjectionForYoungest(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionResetMetrics")]
         public static extern void ProjectionResetMetrics(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteProjectionOutOpRet")]
         public static extern void* ProjectionOutOpRet(void* ctx, void* obj, int type, long memPtr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorIterator")]
         public static extern void QryCursorIterator(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteQueryCursorClose")]
         public static extern void QryCursorClose(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAcquire")]
         public static extern void* Acquire(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteRelease")]
         public static extern void Release(void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsStart")]
         public static extern long TxStart(void* ctx, void* target, int concurrency, int isolation, long timeout,
             int txSize);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommit")]
         public static extern int TxCommit(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsCommitAsync")]
         public static extern void TxCommitAsync(void* ctx, void* target, long id, long futId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollback")]
         public static extern int TxRollback(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsRollbackAsync")]
         public static extern void TxRollbackAsync(void* ctx, void* target, long id, long futId);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsClose")]
         public static extern int TxClose(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsState")]
         public static extern int TxState(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsSetRollbackOnly")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool TxSetRollbackOnly(void* ctx, void* target, long id);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteTransactionsResetMetrics")]
         public static extern void TxResetMetrics(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteThrowToJava")]
         public static extern void ThrowToJava(void* ctx, char* msg);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteHandlersSize")]
         public static extern int HandlersSize();
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteCreateContext")]
         public static extern void* CreateContext(void* opts, int optsLen, void* cbs);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDeleteContext")]
         public static extern void DeleteContext(void* ptr);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteDestroyJvm")]
         public static extern void DestroyJvm(void* ctx);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsWithAsync")]
         public static extern void* EventsWithAsync(void* ctx, void* obj);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsStopLocalListen")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool EventsStopLocalListen(void* ctx, void* obj, long hnd);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsLocalListen")]
         public static extern void EventsLocalListen(void* ctx, void* obj, long hnd, int type);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteEventsIsEnabled")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool EventsIsEnabled(void* ctx, void* obj, int type);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithAsync")]
         public static extern void* ServicesWithAsync(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesWithServerKeepPortable")]
         public static extern void* ServicesWithServerKeepBinary(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancel")]
         public static extern long ServicesCancel(void* ctx, void* target, char* name);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesCancelAll")]
         public static extern long ServicesCancelAll(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteServicesGetServiceProxy")]
         public static extern void* ServicesGetServiceProxy(void* ctx, void* target, char* name,
             [MarshalAs(UnmanagedType.U1)] bool sticky);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGet")]
         public static extern long AtomicLongGet(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIncrementAndGet")]
         public static extern long AtomicLongIncrementAndGet(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongAddAndGet")]
         public static extern long AtomicLongAddAndGet(void* ctx, void* target, long value);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongDecrementAndGet")]
         public static extern long AtomicLongDecrementAndGet(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongGetAndSet")]
         public static extern long AtomicLongGetAndSet(void* ctx, void* target, long value);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet",
-            SetLastError = true, CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongCompareAndSetAndGet")]
         public static extern long AtomicLongCompareAndSetAndGet(void* ctx, void* target, long expVal,
             long newVal);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongIsClosed")]
         [return: MarshalAs(UnmanagedType.U1)]
         public static extern bool AtomicLongIsClosed(void* ctx, void* target);
 
-        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose", SetLastError = true,
-            CharSet = CharSet.Ansi, BestFitMapping = false, ThrowOnUnmappableChar = true)]
+        [DllImport(IgniteUtils.FileIgniteJniDll, EntryPoint = "IgniteAtomicLongClose")]
         public static extern void AtomicLongClose(void* ctx, void* target);
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/4d79c2b6/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
index a1bfc8a..56a184d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedUtils.cs
@@ -681,8 +681,6 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
             }
         }
 
-        
-
         internal static int HandlersSize()
         {
             return JNI.HandlersSize();


[18/19] ignite git commit: Merge branch 'ignite-1694' of https://github.com/ptupitsyn/ignite into ignite-1694

Posted by vo...@apache.org.
Merge branch 'ignite-1694' of https://github.com/ptupitsyn/ignite into ignite-1694


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

Branch: refs/heads/ignite-1694
Commit: 3490e52f59e8e1f3f4d590d8cbf904cf7be05846
Parents: efe632b c9e3719
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Tue Dec 8 16:01:41 2015 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Tue Dec 8 16:01:41 2015 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core.csproj                   |   1 +
 .../Impl/Unmanaged/IgniteJniNativeMethods.cs    | 464 +++++++++++
 .../Impl/Unmanaged/UnmanagedUtils.cs            | 786 +++----------------
 modules/platforms/dotnet/Apache.Ignite.FxCop    | 322 +++++++-
 4 files changed, 904 insertions(+), 669 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3490e52f/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
----------------------------------------------------------------------