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/09/22 09:40:42 UTC
[23/51] [abbrv] [partial] ignite git commit: IGNITE-1513: platform ->
platforms.
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTestAsync.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTestAsync.cs b/modules/platform/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTestAsync.cs
deleted file mode 100644
index b0e507a..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core.Tests/Services/ServicesTestAsync.cs
+++ /dev/null
@@ -1,33 +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.Tests.Services
-{
- using Apache.Ignite.Core.Services;
-
- /// <summary>
- /// Services async tests.
- /// </summary>
- public class ServicesTestAsync : ServicesTest
- {
- /** <inheritdoc /> */
- protected override IServices Services
- {
- get { return new ServicesAsyncWrapper(Grid1.GetServices()); }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs b/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs
deleted file mode 100644
index 2b0ab8e..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestRunner.cs
+++ /dev/null
@@ -1,71 +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.Tests
-{
- using System;
- using System.Diagnostics;
- using System.Reflection;
- using Apache.Ignite.Core.Tests.Memory;
- using NUnit.ConsoleRunner;
-
- public static class TestRunner
- {
- [STAThread]
- static void Main()
- {
- Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
- Debug.AutoFlush = true;
-
- //TestOne(typeof(ContinuousQueryAtomiclBackupTest), "TestInitialQuery");
-
- TestAll(typeof (ExecutableTest));
- //TestAllInAssembly();
- }
-
- private static void TestOne(Type testClass, string method)
- {
- string[] args = { "/run:" + testClass.FullName + "." + method, Assembly.GetAssembly(testClass).Location };
-
- int returnCode = Runner.Main(args);
-
- if (returnCode != 0)
- Console.Beep();
- }
-
- private static void TestAll(Type testClass)
- {
- string[] args = { "/run:" + testClass.FullName, Assembly.GetAssembly(testClass).Location };
-
- int returnCode = Runner.Main(args);
-
- if (returnCode != 0)
- Console.Beep();
- }
-
- private static void TestAllInAssembly()
- {
- string[] args = { Assembly.GetAssembly(typeof(InteropMemoryTest)).Location };
-
- int returnCode = Runner.Main(args);
-
- if (returnCode != 0)
- Console.Beep();
- }
-
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs b/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
deleted file mode 100644
index 3287e2f..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TestUtils.cs
+++ /dev/null
@@ -1,292 +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.Tests
-{
- using System;
- using System.Collections.Concurrent;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading;
- using Apache.Ignite.Core.Impl;
- using Apache.Ignite.Core.Tests.Process;
- using NUnit.Framework;
-
- /// <summary>
- /// Test utility methods.
- /// </summary>
- public static class TestUtils
- {
- /** Indicates long running and/or memory/cpu intensive test. */
- public const string CategoryIntensive = "LONG_TEST";
-
- /** */
- public const int DfltBusywaitSleepInterval = 200;
-
- /** */
-
- private static readonly IList<string> TestJvmOpts = Environment.Is64BitProcess
- ? new List<string>
- {
- "-XX:+HeapDumpOnOutOfMemoryError",
- "-Xms1g",
- "-Xmx4g",
- "-ea"
- }
- : new List<string>
- {
- "-XX:+HeapDumpOnOutOfMemoryError",
- "-Xms512m",
- "-Xmx512m",
- "-ea",
- "-DIGNITE_ATOMIC_CACHE_DELETE_HISTORY_SIZE=1000"
- };
-
- /** */
- private static readonly IList<string> JvmDebugOpts =
- new List<string> { "-Xdebug", "-Xnoagent", "-Djava.compiler=NONE", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" };
-
- /** */
- public static bool JvmDebug = true;
-
- /** */
- [ThreadStatic]
- private static Random _random;
-
- /** */
- private static int _seed = Environment.TickCount;
-
- /// <summary>
- /// Kill Ignite processes.
- /// </summary>
- public static void KillProcesses()
- {
- IgniteProcess.KillAll();
- }
-
- /// <summary>
- ///
- /// </summary>
- public static Random Random
- {
- get { return _random ?? (_random = new Random(Interlocked.Increment(ref _seed))); }
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public static IList<string> TestJavaOptions()
- {
- IList<string> ops = new List<string>(TestJvmOpts);
-
- if (JvmDebug)
- {
- foreach (string opt in JvmDebugOpts)
- ops.Add(opt);
- }
-
- return ops;
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public static string CreateTestClasspath()
- {
- return IgniteManager.CreateClasspath(forceTestClasspath: true);
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="action"></param>
- /// <param name="threadNum"></param>
- public static void RunMultiThreaded(Action action, int threadNum)
- {
- List<Thread> threads = new List<Thread>(threadNum);
-
- var errors = new ConcurrentBag<Exception>();
-
- for (int i = 0; i < threadNum; i++)
- {
- threads.Add(new Thread(() =>
- {
- try
- {
- action();
- }
- catch (Exception e)
- {
- errors.Add(e);
- }
- }));
- }
-
- foreach (Thread thread in threads)
- thread.Start();
-
- foreach (Thread thread in threads)
- thread.Join();
-
- foreach (var ex in errors)
- Assert.Fail("Unexpected exception: " + ex);
- }
-
- /// <summary>
- ///
- /// </summary>
- /// <param name="action"></param>
- /// <param name="threadNum"></param>
- /// <param name="duration">Duration of test execution in seconds</param>
- public static void RunMultiThreaded(Action action, int threadNum, int duration)
- {
- List<Thread> threads = new List<Thread>(threadNum);
-
- var errors = new ConcurrentBag<Exception>();
-
- bool stop = false;
-
- for (int i = 0; i < threadNum; i++)
- {
- threads.Add(new Thread(() =>
- {
- try
- {
- while (true)
- {
- Thread.MemoryBarrier();
-
- // ReSharper disable once AccessToModifiedClosure
- if (stop)
- break;
-
- action();
- }
- }
- catch (Exception e)
- {
- errors.Add(e);
- }
- }));
- }
-
- foreach (Thread thread in threads)
- thread.Start();
-
- Thread.Sleep(duration * 1000);
-
- stop = true;
-
- Thread.MemoryBarrier();
-
- foreach (Thread thread in threads)
- thread.Join();
-
- foreach (var ex in errors)
- Assert.Fail("Unexpected exception: " + ex);
- }
-
- /// <summary>
- /// Wait for particular topology size.
- /// </summary>
- /// <param name="grid">Grid.</param>
- /// <param name="size">Size.</param>
- /// <param name="timeout">Timeout.</param>
- /// <returns>
- /// <c>True</c> if topology took required size.
- /// </returns>
- public static bool WaitTopology(this IIgnite grid, int size, int timeout)
- {
- int left = timeout;
-
- while (true)
- {
- if (grid.GetCluster().GetNodes().Count != size)
- {
- if (left > 0)
- {
- Thread.Sleep(100);
-
- left -= 100;
- }
- else
- break;
- }
- else
- return true;
- }
-
- return false;
- }
-
- /// <summary>
- /// Asserts that the handle registry is empty.
- /// </summary>
- /// <param name="timeout">Timeout, in milliseconds.</param>
- /// <param name="grids">Grids to check.</param>
- public static void AssertHandleRegistryIsEmpty(int timeout, params IIgnite[] grids)
- {
- foreach (var g in grids)
- AssertHandleRegistryIsEmpty(g, timeout);
- }
-
- /// <summary>
- /// Asserts that the handle registry is empty.
- /// </summary>
- /// <param name="grid">The grid to check.</param>
- /// <param name="timeout">Timeout, in milliseconds.</param>
- public static void AssertHandleRegistryIsEmpty(IIgnite grid, int timeout)
- {
- var handleRegistry = ((Ignite)grid).HandleRegistry;
-
- if (WaitForCondition(() => handleRegistry.Count == 0, timeout))
- return;
-
- var items = handleRegistry.GetItems();
-
- if (items.Any())
- Assert.Fail("HandleRegistry is not empty in grid '{0}':\n '{1}'", grid.Name,
- items.Select(x => x.ToString()).Aggregate((x, y) => x + "\n" + y));
- }
-
- /// <summary>
- /// Waits for condition, polling in busy wait loop.
- /// </summary>
- /// <param name="cond">Condition.</param>
- /// <param name="timeout">Timeout, in milliseconds.</param>
- /// <returns>True if condition predicate returned true within interval; false otherwise.</returns>
- public static bool WaitForCondition(Func<bool> cond, int timeout)
- {
- if (timeout <= 0)
- return cond();
-
- var maxTime = DateTime.Now.AddMilliseconds(timeout + DfltBusywaitSleepInterval);
-
- while (DateTime.Now < maxTime)
- {
- if (cond())
- return true;
-
- Thread.Sleep(DfltBusywaitSleepInterval);
- }
-
- return false;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core.Tests/TypeResolverTest.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TypeResolverTest.cs b/modules/platform/dotnet/Apache.Ignite.Core.Tests/TypeResolverTest.cs
deleted file mode 100644
index a49ee1b..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core.Tests/TypeResolverTest.cs
+++ /dev/null
@@ -1,107 +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.Tests
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Reflection;
- using Apache.Ignite.Core.Impl.Portable;
- using Apache.Ignite.Core.Tests.TestDll;
- using NUnit.Framework;
-
- /// <summary>
- /// <see cref="TypeResolver"/> tests.
- /// </summary>
- public class TypeResolverTest
- {
- /// <summary>
- /// Tests generic type resolve.
- /// </summary>
- [Test]
- public void TestGenerics()
- {
- var testTypes = new[]
- {
- typeof (TestGenericPortable<int>),
- typeof (TestGenericPortable<string>),
- typeof (TestGenericPortable<TestGenericPortable<int>>),
- typeof (TestGenericPortable<List<Tuple<int, string>>>),
- typeof (TestGenericPortable<List<TestGenericPortable<List<Tuple<int, string>>>>>),
- typeof (List<TestGenericPortable<List<TestGenericPortable<List<Tuple<int, string>>>>>>),
- typeof (TestGenericPortable<int, string>),
- typeof (TestGenericPortable<int, TestGenericPortable<string>>),
- typeof (TestGenericPortable<int, string, Type>),
- typeof (TestGenericPortable<int, string, TestGenericPortable<int, string, Type>>)
- };
-
- foreach (var type in testTypes)
- {
- // Without assembly
- var resolvedType = new TypeResolver().ResolveType(type.FullName);
- Assert.AreEqual(type.FullName, resolvedType.FullName);
-
- // With assembly
- resolvedType = new TypeResolver().ResolveType(type.FullName, type.Assembly.FullName);
- Assert.AreEqual(type.FullName, resolvedType.FullName);
-
- // Assembly-qualified
- resolvedType = new TypeResolver().ResolveType(type.AssemblyQualifiedName);
- Assert.AreEqual(type.FullName, resolvedType.FullName);
- }
- }
-
- /// <summary>
- /// Tests loading a type from referenced assembly that is not yet loaded.
- /// </summary>
- [Test]
- public void TestReferencedAssemblyLoading()
- {
- const string dllName = "Apache.Ignite.Core.Tests.TestDll";
-
- const string typeName = "Apache.Ignite.Core.Tests.TestDll.TestClass";
-
- // Check that the dll is not yet loaded
- Assert.IsFalse(AppDomain.CurrentDomain.GetAssemblies().Any(x => x.FullName.StartsWith(dllName)));
-
- // Check that the dll is referenced by current assembly
- Assert.IsTrue(Assembly.GetExecutingAssembly().GetReferencedAssemblies()
- .Any(x => x.FullName.StartsWith(dllName)));
-
- // Check resolver
- var type = new TypeResolver().ResolveType(typeName);
-
- Assert.IsNotNull(type);
- Assert.AreEqual(typeName, type.FullName);
- Assert.IsNotNull(Activator.CreateInstance(type));
-
- // At this moment the dll should be loaded
- Assert.IsTrue(AppDomain.CurrentDomain.GetAssemblies().Any(x => x.FullName.StartsWith(dllName)));
- }
-
- /// <summary>
- /// Unused method that forces C# compiler to include TestDll assembly reference.
- /// Without this, compiler will remove the reference as unused.
- /// However, since it is never called, TestDll does not get loaded.
- /// </summary>
- public void UnusedMethod()
- {
- Assert.IsNotNull(typeof(TestClass));
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj b/modules/platform/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
deleted file mode 100644
index 3f20324..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj
+++ /dev/null
@@ -1,373 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{4CD2F726-7E2B-46C4-A5BA-057BB82EECB6}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Apache.Ignite.Core</RootNamespace>
- <AssemblyName>Apache.Ignite.Core</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
- <PlatformTarget>x64</PlatformTarget>
- <OutputPath>bin\x64\Debug\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <DefineConstants>DEBUG</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
- <PlatformTarget>x64</PlatformTarget>
- <OutputPath>bin\x64\Release\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
- <PlatformTarget>x86</PlatformTarget>
- <OutputPath>bin\x86\Debug\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <DefineConstants>DEBUG</DefineConstants>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
- <PlatformTarget>x86</PlatformTarget>
- <OutputPath>bin\x86\Release\</OutputPath>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <PropertyGroup>
- <SignAssembly>false</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>
- </AssemblyOriginatorKeyFile>
- </PropertyGroup>
- <PropertyGroup>
- <DelaySign>false</DelaySign>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Cache\CacheAtomicUpdateTimeoutException.cs" />
- <Compile Include="Cache\CacheEntryProcessorException.cs" />
- <Compile Include="Cache\CacheException.cs" />
- <Compile Include="Cache\CachePartialUpdateException.cs" />
- <Compile Include="Cache\CachePeekMode.cs" />
- <Compile Include="Cache\Event\CacheEntryEventType.cs" />
- <Compile Include="Cache\Event\ICacheEntryEvent.cs" />
- <Compile Include="Cache\Event\ICacheEntryEventFilter.cs" />
- <Compile Include="Cache\Event\ICacheEntryEventListener.cs" />
- <Compile Include="Cache\Expiry\ExpiryPolicy.cs" />
- <Compile Include="Cache\Expiry\IExpiryPolicy.cs" />
- <Compile Include="Cache\ICache.cs" />
- <Compile Include="Cache\ICacheAffinity.cs" />
- <Compile Include="Cache\ICacheEntry.cs" />
- <Compile Include="Cache\ICacheEntryFilter.cs" />
- <Compile Include="Cache\ICacheEntryProcessor.cs" />
- <Compile Include="Cache\ICacheEntryProcessorResult.cs" />
- <Compile Include="Cache\ICacheLock.cs" />
- <Compile Include="Cache\ICacheMetrics.cs" />
- <Compile Include="Cache\IMutableCacheEntry.cs" />
- <Compile Include="Cache\Query\Continuous\ContinuousQuery.cs" />
- <Compile Include="Cache\Query\Continuous\IContinuousQueryHandle.cs" />
- <Compile Include="Cache\Query\IQueryCursor.cs" />
- <Compile Include="Cache\Query\QueryBase.cs" />
- <Compile Include="Cache\Query\ScanQuery.cs" />
- <Compile Include="Cache\Query\SqlFieldsQuery.cs" />
- <Compile Include="Cache\Query\SqlQuery.cs" />
- <Compile Include="Cache\Query\TextQuery.cs" />
- <Compile Include="Cache\Store\CacheParallelLoadStoreAdapter.cs" />
- <Compile Include="Cache\Store\CacheStoreAdapter.cs" />
- <Compile Include="Cache\Store\CacheStoreException.cs" />
- <Compile Include="Cache\Store\ICacheStore.cs" />
- <Compile Include="Cache\Store\ICacheStoreSession.cs" />
- <Compile Include="Cluster\ClusterGroupEmptyException.cs" />
- <Compile Include="Cluster\ClusterTopologyException.cs" />
- <Compile Include="Cluster\ICluster.cs" />
- <Compile Include="Cluster\IClusterGroup.cs" />
- <Compile Include="Cluster\IClusterMetrics.cs" />
- <Compile Include="Cluster\IClusterNode.cs" />
- <Compile Include="Cluster\IClusterNodeFilter.cs" />
- <Compile Include="Common\IgniteException.cs" />
- <Compile Include="Common\IAsyncSupport.cs" />
- <Compile Include="Common\IFuture.cs" />
- <Compile Include="Common\IgniteGuid.cs" />
- <Compile Include="Compute\ComputeExecutionRejectedException.cs" />
- <Compile Include="Compute\ComputeJobAdapter.cs" />
- <Compile Include="Compute\ComputeJobFailoverException.cs" />
- <Compile Include="Compute\ComputeJobResultPolicy.cs" />
- <Compile Include="Compute\ComputeTaskAdapter.cs" />
- <Compile Include="Compute\ComputeTaskCancelledException.cs" />
- <Compile Include="Compute\ComputeTaskNoResultCacheAttribute.cs" />
- <Compile Include="Compute\ComputeTaskSplitAdapter.cs" />
- <Compile Include="Compute\ComputeTaskTimeoutException.cs" />
- <Compile Include="Compute\ComputeUserUndeclaredException.cs" />
- <Compile Include="Compute\ICompute.cs" />
- <Compile Include="Compute\IComputeFunc.cs" />
- <Compile Include="Compute\IComputeJob.cs" />
- <Compile Include="Compute\IComputeJobResult.cs" />
- <Compile Include="Compute\IComputeReducer.cs" />
- <Compile Include="Compute\IComputeTask.cs" />
- <Compile Include="Datastream\IDataStreamer.cs" />
- <Compile Include="Datastream\IStreamReceiver.cs" />
- <Compile Include="Datastream\StreamTransformer.cs" />
- <Compile Include="Datastream\StreamVisitor.cs" />
- <Compile Include="Events\CacheEvent.cs" />
- <Compile Include="Events\CacheQueryExecutedEvent.cs" />
- <Compile Include="Events\CacheQueryReadEvent.cs" />
- <Compile Include="Events\CacheRebalancingEvent.cs" />
- <Compile Include="Events\CheckpointEvent.cs" />
- <Compile Include="Events\DiscoveryEvent.cs" />
- <Compile Include="Events\EventBase.cs" />
- <Compile Include="Events\EventReader.cs" />
- <Compile Include="Events\EventType.cs" />
- <Compile Include="Events\IEvent.cs" />
- <Compile Include="Events\IEventFilter.cs" />
- <Compile Include="Events\IEvents.cs" />
- <Compile Include="Events\JobEvent.cs" />
- <Compile Include="Events\SwapSpaceEvent.cs" />
- <Compile Include="Events\TaskEvent.cs" />
- <Compile Include="IgniteConfiguration.cs" />
- <Compile Include="Ignition.cs" />
- <Compile Include="Common\AsyncSupportedAttribute.cs" />
- <Compile Include="IIgnite.cs" />
- <Compile Include="Impl\Cache\CacheAffinityImpl.cs" />
- <Compile Include="Impl\Cache\CacheEntry.cs" />
- <Compile Include="Impl\Cache\CacheEntryFilterHolder.cs" />
- <Compile Include="Impl\Cache\CacheEntryProcessorHolder.cs" />
- <Compile Include="Impl\Cache\CacheEntryProcessorResult.cs" />
- <Compile Include="Impl\Cache\CacheEntryProcessorResultHolder.cs" />
- <Compile Include="Impl\Cache\CacheEnumerable.cs" />
- <Compile Include="Impl\Cache\CacheEnumerator.cs" />
- <Compile Include="Impl\Cache\CacheEnumeratorProxy.cs" />
- <Compile Include="Impl\Cache\CacheImpl.cs" />
- <Compile Include="Impl\Cache\CacheLock.cs" />
- <Compile Include="Impl\Cache\CacheMetricsImpl.cs" />
- <Compile Include="Impl\Cache\CacheOp.cs" />
- <Compile Include="Impl\Cache\CacheProxyImpl.cs" />
- <Compile Include="Impl\Cache\Event\CacheEntryCreateEvent.cs" />
- <Compile Include="Impl\Cache\Event\CacheEntryRemoveEvent.cs" />
- <Compile Include="Impl\Cache\Event\CacheEntryUpdateEvent.cs" />
- <Compile Include="Impl\Cache\MutableCacheEntry.cs" />
- <Compile Include="Impl\Cache\Query\AbstractQueryCursor.cs" />
- <Compile Include="Impl\Cache\Query\Continuous\ContinuousQueryFilter.cs" />
- <Compile Include="Impl\Cache\Query\Continuous\ContinuousQueryFilterHolder.cs" />
- <Compile Include="Impl\Cache\Query\Continuous\ContinuousQueryHandleImpl.cs" />
- <Compile Include="Impl\Cache\Query\Continuous\ContinuousQueryUtils.cs" />
- <Compile Include="Impl\Cache\Query\FieldsQueryCursor.cs" />
- <Compile Include="Impl\Cache\Query\QueryCursor.cs" />
- <Compile Include="Impl\Cache\Store\CacheStore.cs" />
- <Compile Include="Impl\Cache\Store\CacheStoreSession.cs" />
- <Compile Include="Impl\Cache\Store\CacheStoreSessionProxy.cs" />
- <Compile Include="Impl\Cluster\ClusterGroupImpl.cs" />
- <Compile Include="Impl\Cluster\ClusterMetricsImpl.cs" />
- <Compile Include="Impl\Cluster\ClusterNodeImpl.cs" />
- <Compile Include="Impl\Cluster\IClusterGroupEx.cs" />
- <Compile Include="Impl\Collections\CollectionExtensions.cs" />
- <Compile Include="Impl\Collections\MultiValueDictionary.cs" />
- <Compile Include="Impl\Collections\ReadOnlyCollection.cs" />
- <Compile Include="Impl\Collections\ReadOnlyDictionary.cs" />
- <Compile Include="Impl\Common\AsyncResult.cs" />
- <Compile Include="Impl\Common\CompletedAsyncResult.cs" />
- <Compile Include="Impl\Common\CopyOnWriteConcurrentDictionary.cs" />
- <Compile Include="Impl\Common\DelegateConverter.cs" />
- <Compile Include="Impl\Common\DelegateTypeDescriptor.cs" />
- <Compile Include="Impl\Common\Future.cs" />
- <Compile Include="Impl\Common\FutureConverter.cs" />
- <Compile Include="Impl\Common\FutureType.cs" />
- <Compile Include="Impl\Common\IgniteArgumentCheck.cs" />
- <Compile Include="Impl\Common\IFutureConverter.cs" />
- <Compile Include="Impl\Common\IFutureInternal.cs" />
- <Compile Include="Impl\Common\LoadedAssembliesResolver.cs" />
- <Compile Include="Impl\Common\PortableResultWrapper.cs" />
- <Compile Include="Impl\Common\TypeCaster.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeAbstractClosureTask.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeActionJob.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeFuncJob.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeMultiClosureTask.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeOutFuncJob.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeReducingClosureTask.cs" />
- <Compile Include="Impl\Compute\Closure\ComputeSingleClosureTask.cs" />
- <Compile Include="Impl\Compute\Closure\IComputeResourceInjector.cs" />
- <Compile Include="Impl\Compute\Compute.cs" />
- <Compile Include="Impl\Compute\ComputeAsync.cs" />
- <Compile Include="Impl\Compute\ComputeFunc.cs" />
- <Compile Include="Impl\Compute\ComputeImpl.cs" />
- <Compile Include="Impl\Compute\ComputeJob.cs" />
- <Compile Include="Impl\Compute\ComputeJobHolder.cs" />
- <Compile Include="Impl\Compute\ComputeJobResultGenericWrapper.cs" />
- <Compile Include="Impl\Compute\ComputeJobResultImpl.cs" />
- <Compile Include="Impl\Compute\ComputeOutFunc.cs" />
- <Compile Include="Impl\Compute\ComputeTaskHolder.cs" />
- <Compile Include="Impl\Datastream\DataStreamerBatch.cs" />
- <Compile Include="Impl\Datastream\DataStreamerEntry.cs" />
- <Compile Include="Impl\Datastream\DataStreamerImpl.cs" />
- <Compile Include="Impl\Datastream\DataStreamerRemoveEntry.cs" />
- <Compile Include="Impl\Datastream\StreamReceiverHolder.cs" />
- <Compile Include="Impl\Events\Events.cs" />
- <Compile Include="Impl\Events\EventsAsync.cs" />
- <Compile Include="Impl\Events\RemoteListenEventFilter.cs" />
- <Compile Include="Impl\ExceptionUtils.cs" />
- <Compile Include="Impl\IgniteConfigurationEx.cs" />
- <Compile Include="Impl\Ignite.cs" />
- <Compile Include="Impl\IgniteManager.cs" />
- <Compile Include="Impl\IgniteProxy.cs" />
- <Compile Include="Impl\PlatformTarget.cs" />
- <Compile Include="Impl\IgniteUtils.cs" />
- <Compile Include="Impl\Handle\Handle.cs" />
- <Compile Include="Impl\Handle\HandleRegistry.cs" />
- <Compile Include="Impl\Handle\IHandle.cs" />
- <Compile Include="Impl\IInteropCallback.cs" />
- <Compile Include="Impl\InteropExceptionHolder.cs" />
- <Compile Include="Impl\LifecycleBeanHolder.cs" />
- <Compile Include="Impl\Memory\InteropExternalMemory.cs" />
- <Compile Include="Impl\Memory\InteropMemoryUtils.cs" />
- <Compile Include="Impl\Memory\IPlatformMemory.cs" />
- <Compile Include="Impl\Memory\PlatformBigEndianMemoryStream.cs" />
- <Compile Include="Impl\Memory\PlatformMemory.cs" />
- <Compile Include="Impl\Memory\PlatformMemoryManager.cs" />
- <Compile Include="Impl\Memory\PlatformMemoryPool.cs" />
- <Compile Include="Impl\Memory\PlatformMemoryStream.cs" />
- <Compile Include="Impl\Memory\PlatformMemoryUtils.cs" />
- <Compile Include="Impl\Memory\PlatformPooledMemory.cs" />
- <Compile Include="Impl\Memory\PlatformRawMemory.cs" />
- <Compile Include="Impl\Memory\PlatformUnpooledMemory.cs" />
- <Compile Include="Impl\Messaging\MessageFilterHolder.cs" />
- <Compile Include="Impl\Messaging\Messaging.cs" />
- <Compile Include="Impl\Messaging\MessagingAsync.cs" />
- <Compile Include="Impl\NativeMethods.cs" />
- <Compile Include="Impl\Portable\IO\IPortableStream.cs" />
- <Compile Include="Impl\Portable\IO\PortableAbstractStream.cs" />
- <Compile Include="Impl\Portable\IO\PortableHeapStream.cs" />
- <Compile Include="Impl\Portable\IO\PortableStreamAdapter.cs" />
- <Compile Include="Impl\Portable\IPortableSystemTypeSerializer.cs" />
- <Compile Include="Impl\Portable\IPortableTypeDescriptor.cs" />
- <Compile Include="Impl\Portable\IPortableWriteAware.cs" />
- <Compile Include="Impl\Portable\Metadata\IPortableMetadataHandler.cs" />
- <Compile Include="Impl\Portable\Metadata\PortableHashsetMetadataHandler.cs" />
- <Compile Include="Impl\Portable\Metadata\PortableMetadataHolder.cs" />
- <Compile Include="Impl\Portable\Metadata\PortableMetadataImpl.cs" />
- <Compile Include="Impl\Portable\PortableBuilderField.cs" />
- <Compile Include="Impl\Portable\PortableBuilderImpl.cs" />
- <Compile Include="Impl\Portable\PortableCollectionInfo.cs" />
- <Compile Include="Impl\Portable\PortableFullTypeDescriptor.cs" />
- <Compile Include="Impl\Portable\PortableHandleDictionary.cs" />
- <Compile Include="Impl\Portable\PortableMarshalAwareSerializer.cs" />
- <Compile Include="Impl\Portable\PortableMarshaller.cs" />
- <Compile Include="Impl\Portable\PortableMode.cs" />
- <Compile Include="Impl\Portable\PortableObjectHandle.cs" />
- <Compile Include="Impl\Portable\PortableOrSerializableObjectHolder.cs" />
- <Compile Include="Impl\Portable\PortableReaderHandleDictionary.cs" />
- <Compile Include="Impl\Portable\PortableReaderImpl.cs" />
- <Compile Include="Impl\Portable\PortableReflectiveRoutines.cs" />
- <Compile Include="Impl\Portable\PortableReflectiveSerializer.cs" />
- <Compile Include="Impl\Portable\PortablesImpl.cs" />
- <Compile Include="Impl\Portable\PortableSurrogateTypeDescriptor.cs" />
- <Compile Include="Impl\Portable\PortableSystemHandlers.cs" />
- <Compile Include="Impl\Portable\PortableSystemTypeSerializer.cs" />
- <Compile Include="Impl\Portable\PortableUserObject.cs" />
- <Compile Include="Impl\Portable\PortableUtils.cs" />
- <Compile Include="Impl\Portable\PortableWriterImpl.cs" />
- <Compile Include="Impl\Portable\SerializableObjectHolder.cs" />
- <Compile Include="Impl\Portable\TypeResolver.cs" />
- <Compile Include="Impl\Resource\IResourceInjector.cs" />
- <Compile Include="Impl\Resource\ResourceFieldInjector.cs" />
- <Compile Include="Impl\Resource\ResourceMethodInjector.cs" />
- <Compile Include="Impl\Resource\ResourceProcessor.cs" />
- <Compile Include="Impl\Resource\ResourcePropertyInjector.cs" />
- <Compile Include="Impl\Resource\ResourceTypeDescriptor.cs" />
- <Compile Include="Impl\Services\ServiceContext.cs" />
- <Compile Include="Impl\Services\ServiceDescriptor.cs" />
- <Compile Include="Impl\Services\ServiceProxy.cs" />
- <Compile Include="Impl\Services\ServiceProxyInvoker.cs" />
- <Compile Include="Impl\Services\ServiceProxySerializer.cs" />
- <Compile Include="Impl\Services\Services.cs" />
- <Compile Include="Impl\Services\ServicesAsync.cs" />
- <Compile Include="Impl\Transactions\AsyncTransaction.cs" />
- <Compile Include="Impl\Transactions\Transaction.cs" />
- <Compile Include="Impl\Transactions\TransactionImpl.cs" />
- <Compile Include="Impl\Transactions\TransactionMetricsImpl.cs" />
- <Compile Include="Impl\Transactions\TransactionsImpl.cs" />
- <Compile Include="Impl\Unmanaged\IUnmanagedTarget.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedCallbackHandlers.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedCallbacks.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedContext.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedNonReleaseableTarget.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedTarget.cs" />
- <Compile Include="Impl\Unmanaged\UnmanagedUtils.cs" />
- <Compile Include="Lifecycle\ILifecycleBean.cs" />
- <Compile Include="Lifecycle\LifecycleEventType.cs" />
- <Compile Include="Messaging\IMessageFilter.cs" />
- <Compile Include="Messaging\IMessaging.cs" />
- <Compile Include="Portable\IPortableBuilder.cs" />
- <Compile Include="Portable\IPortableIdMapper.cs" />
- <Compile Include="Portable\IPortableMarshalAware.cs" />
- <Compile Include="Portable\IPortableMetadata.cs" />
- <Compile Include="Portable\IPortableNameMapper.cs" />
- <Compile Include="Portable\IPortableObject.cs" />
- <Compile Include="Portable\IPortableRawReader.cs" />
- <Compile Include="Portable\IPortableRawWriter.cs" />
- <Compile Include="Portable\IPortableReader.cs" />
- <Compile Include="Portable\IPortables.cs" />
- <Compile Include="Portable\IPortableSerializer.cs" />
- <Compile Include="Portable\IPortableWriter.cs" />
- <Compile Include="Portable\PortableConfiguration.cs" />
- <Compile Include="Portable\PortableException.cs" />
- <Compile Include="Portable\PortableTypeConfiguration.cs" />
- <Compile Include="Portable\PortableTypeNames.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="Resource\InstanceResourceAttribute.cs" />
- <Compile Include="Resource\StoreSessionResourceAttribute.cs" />
- <Compile Include="Services\IService.cs" />
- <Compile Include="Services\IServiceContext.cs" />
- <Compile Include="Services\IServiceDescriptor.cs" />
- <Compile Include="Services\IServices.cs" />
- <Compile Include="Services\ServiceConfiguration.cs" />
- <Compile Include="Services\ServiceInvocationException.cs" />
- <Compile Include="Transactions\ITransaction.cs" />
- <Compile Include="Transactions\ITransactionMetrics.cs" />
- <Compile Include="Transactions\ITransactions.cs" />
- <Compile Include="Transactions\TransactionConcurrency.cs" />
- <Compile Include="Transactions\TransactionHeuristicException.cs" />
- <Compile Include="Transactions\TransactionIsolation.cs" />
- <Compile Include="Transactions\TransactionOptimisticException.cs" />
- <Compile Include="Transactions\TransactionRollbackException.cs" />
- <Compile Include="Transactions\TransactionState.cs" />
- <Compile Include="Transactions\TransactionTimeoutException.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\..\cpp\common\project\vs\common.vcxproj">
- <Project>{4f7e4917-4612-4b96-9838-025711ade391}</Project>
- <Name>common</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
- <EmbeddedResource Include="$(SolutionDir)\x64\Debug\ignite.common.dll">
- <Link>resources\debug\x64\ignite.common.dll</Link>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
- <EmbeddedResource Include="$(SolutionDir)\x64\Release\ignite.common.dll">
- <Link>resources\release\x64\ignite.common.dll</Link>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
- <EmbeddedResource Include="$(SolutionDir)\Win32\Debug\ignite.common.dll">
- <Link>resources\debug\x86\ignite.common.dll</Link>
- </EmbeddedResource>
- </ItemGroup>
- <ItemGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
- <EmbeddedResource Include="$(SolutionDir)\Win32\Release\ignite.common.dll">
- <Link>resources\release\x86\ignite.common.dll</Link>
- </EmbeddedResource>
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheAtomicUpdateTimeoutException.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheAtomicUpdateTimeoutException.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheAtomicUpdateTimeoutException.cs
deleted file mode 100644
index f0b5987..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheAtomicUpdateTimeoutException.cs
+++ /dev/null
@@ -1,67 +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.Cache
-{
- using System;
- using System.Runtime.Serialization;
-
- /// <summary>
- /// Indicates atomic operation timeout.
- /// </summary>
- [Serializable]
- public class CacheAtomicUpdateTimeoutException : CacheException
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheAtomicUpdateTimeoutException"/> class.
- /// </summary>
- public CacheAtomicUpdateTimeoutException()
- {
- // No-op.
- }
-
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheAtomicUpdateTimeoutException"/> class.
- /// </summary>
- /// <param name="message">The message that describes the error.</param>
- public CacheAtomicUpdateTimeoutException(string message) : base(message)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheAtomicUpdateTimeoutException"/> class.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="cause">The cause.</param>
- public CacheAtomicUpdateTimeoutException(string message, Exception cause) : base(message, cause)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheAtomicUpdateTimeoutException"/> class.
- /// </summary>
- /// <param name="info">Serialization information.</param>
- /// <param name="ctx">Streaming context.</param>
- protected CacheAtomicUpdateTimeoutException(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
- {
- // No-op.
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheEntryProcessorException.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheEntryProcessorException.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheEntryProcessorException.cs
deleted file mode 100644
index 341c713..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheEntryProcessorException.cs
+++ /dev/null
@@ -1,79 +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.Cache
-{
- using System;
- using System.Runtime.Serialization;
- using Apache.Ignite.Core.Common;
-
- /// <summary>
- /// An exception to indicate a problem occurred attempting to execute an
- /// <see cref="ICacheEntryProcessor{K, V, A, R}"/> against an entry.
- /// </summary>
- [Serializable]
- public class CacheEntryProcessorException : IgniteException
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheEntryProcessorException"/> class.
- /// </summary>
- public CacheEntryProcessorException()
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheEntryProcessorException"/> class.
- /// </summary>
- /// <param name="message">The message that describes the error.</param>
- public CacheEntryProcessorException(string message) : base(message)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheEntryProcessorException"/> class.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="cause">The cause.</param>
- public CacheEntryProcessorException(string message, Exception cause)
- : base(message, cause)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheEntryProcessorException"/> class.
- /// </summary>
- /// <param name="innerException">The inner exception.</param>
- public CacheEntryProcessorException(Exception innerException)
- : base("Error occurred in CacheEntryProcessor, see InnerException for details.", innerException)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheEntryProcessorException"/> class.
- /// </summary>
- /// <param name="info">Serialization information.</param>
- /// <param name="ctx">Streaming context.</param>
- protected CacheEntryProcessorException(SerializationInfo info, StreamingContext ctx) : base(info, ctx)
- {
- // No-op.
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheException.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheException.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheException.cs
deleted file mode 100644
index c00f115..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CacheException.cs
+++ /dev/null
@@ -1,68 +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.Cache
-{
- using System;
- using System.Runtime.Serialization;
- using Apache.Ignite.Core.Common;
-
- /// <summary>
- /// Indicates an error during Cache operation.
- /// </summary>
- [Serializable]
- public class CacheException : IgniteException
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheException"/> class.
- /// </summary>
- public CacheException()
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheException"/> class.
- /// </summary>
- /// <param name="message">The message that describes the error.</param>
- public CacheException(string message) : base(message)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheException"/> class.
- /// </summary>
- /// <param name="message">The message.</param>
- /// <param name="cause">The cause.</param>
- public CacheException(string message, Exception cause) : base(message, cause)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CacheException"/> class.
- /// </summary>
- /// <param name="info">Serialization information.</param>
- /// <param name="ctx">Streaming context.</param>
- protected CacheException(SerializationInfo info, StreamingContext ctx)
- : base(info, ctx)
- {
- // No-op.
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePartialUpdateException.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePartialUpdateException.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePartialUpdateException.cs
deleted file mode 100644
index b3ed537..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePartialUpdateException.cs
+++ /dev/null
@@ -1,119 +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.Cache
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization;
-
- /// <summary>
- /// Exception thrown from non-transactional cache in case when update succeeded only partially.
- /// </summary>
- [Serializable]
- public class CachePartialUpdateException : CacheException
- {
- /** Serializer key. */
- private const string KeyFailedKeys = "FailedKeys";
-
- /** Failed keys. */
- private readonly IList<object> _failedKeys;
-
- /** Failed keys exception. */
- private readonly Exception _failedKeysException;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CachePartialUpdateException"/> class.
- /// </summary>
- public CachePartialUpdateException()
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CachePartialUpdateException"/> class.
- /// </summary>
- /// <param name="message">The message that describes the error.</param>
- public CachePartialUpdateException(string message) : base(message)
- {
- // No-op.
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="CachePartialUpdateException"/> class.
- /// </summary>
- /// <param name="info">Serialization information.</param>
- /// <param name="ctx">Streaming context.</param>
- protected CachePartialUpdateException(SerializationInfo info, StreamingContext ctx)
- : base(info, ctx)
- {
- _failedKeys = (IList<object>) info.GetValue(KeyFailedKeys, typeof (IList<object>));
- }
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <param name="msg">Exception message.</param>
- /// <param name="failedKeysException">Exception occurred during failed keys read/write.</param>
- public CachePartialUpdateException(string msg, Exception failedKeysException) : this(msg, null, failedKeysException)
- {
- // No-op.
- }
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <param name="msg">Exception message.</param>
- /// <param name="failedKeys">Failed keys.</param>
- public CachePartialUpdateException(string msg, IList<object> failedKeys) : this(msg, failedKeys, null)
- {
- // No-op.
- }
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <param name="msg">Exception message.</param>
- /// <param name="failedKeys">Failed keys.</param>
- /// <param name="failedKeysException">Exception occurred during failed keys read/write.</param>
- private CachePartialUpdateException(string msg, IList<object> failedKeys, Exception failedKeysException) : base(msg)
- {
- _failedKeys = failedKeys;
- _failedKeysException = failedKeysException;
- }
-
- /// <summary>
- /// Gets the failed keys.
- /// </summary>
- public IEnumerable<T> GetFailedKeys<T>()
- {
- if (_failedKeysException != null)
- throw _failedKeysException;
-
- return _failedKeys == null ? null : _failedKeys.Cast<T>();
- }
-
- /** <inheritdoc /> */
- public override void GetObjectData(SerializationInfo info, StreamingContext context)
- {
- info.AddValue(KeyFailedKeys, _failedKeys);
-
- base.GetObjectData(info, context);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePeekMode.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePeekMode.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePeekMode.cs
deleted file mode 100644
index 0a089ad..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/CachePeekMode.cs
+++ /dev/null
@@ -1,68 +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.Cache
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
-
- /// <summary>
- /// Enumeration of all supported cache peek modes.
- /// </summary>
- [Flags]
- [SuppressMessage("Microsoft.Naming", "CA1714:FlagsEnumsShouldHavePluralNames")]
- public enum CachePeekMode
- {
- /// <summary>
- /// Peeks into all available cache storages.
- /// </summary>
- All = 0x01,
-
- /// <summary>
- /// Peek into near cache only (don't peek into partitioned cache).
- /// In case of LOCAL cache, behaves as <see cref="All"/> mode.
- /// </summary>
- Near = 0x02,
-
- /// <summary>
- /// Peek value from primary copy of partitioned cache only (skip near cache).
- /// In case of LOCAL cache, behaves as <see cref="All"/> mode.
- /// </summary>
- Primary = 0x04,
-
- /// <summary>
- /// Peek value from backup copies of partitioned cache only (skip near cache).
- /// In case of LOCAL cache, behaves as <see cref="All"/> mode.
- /// </summary>
- Backup = 0x08,
-
- /// <summary>
- /// Peeks value from the on-heap storage only.
- /// </summary>
- Onheap = 0x10,
-
- /// <summary>
- /// Peeks value from the off-heap storage only, without loading off-heap value into cache.
- /// </summary>
- Offheap = 0x20,
-
- /// <summary>
- /// Peeks value from the swap storage only, without loading swapped value into cache.
- /// </summary>
- Swap = 0x40
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/CacheEntryEventType.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/CacheEntryEventType.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/CacheEntryEventType.cs
deleted file mode 100644
index 8339257..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/CacheEntryEventType.cs
+++ /dev/null
@@ -1,41 +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.Cache.Event
-{
- /// <summary>
- /// Cache event type.
- /// </summary>
- public enum CacheEntryEventType
- {
- /// <summary>
- /// An event type indicating that the cache entry was created.
- /// </summary>
- Created,
-
- /// <summary>
- /// An event type indicating that the cache entry was updated. i.e. a previous
- /// mapping existed.
- /// </summary>
- Updated,
-
- /// <summary>
- /// An event type indicating that the cache entry was removed.
- /// </summary>
- Removed
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEvent.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEvent.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEvent.cs
deleted file mode 100644
index 9c2665e..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEvent.cs
+++ /dev/null
@@ -1,40 +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.Cache.Event
-{
- /// <summary>
- /// Cache entry event.
- /// </summary>
- public interface ICacheEntryEvent<TK, TV> : ICacheEntry<TK, TV>
- {
- /// <summary>
- /// Event type.
- /// </summary>
- CacheEntryEventType EventType { get; }
-
- /// <summary>
- /// Gets old the value.
- /// </summary>
- TV OldValue { get; }
-
- /// <summary>
- /// Whether old value exists.
- /// </summary>
- bool HasOldValue { get; }
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventFilter.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventFilter.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventFilter.cs
deleted file mode 100644
index 98f5c5a..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventFilter.cs
+++ /dev/null
@@ -1,31 +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.Cache.Event
-{
- /// <summary>
- /// Cache entry event filter.
- /// </summary>
- public interface ICacheEntryEventFilter<TK, TV>
- {
- /// <summary>
- /// Evaluates cache entry event.
- /// </summary>
- /// <param name="evt">Event.</param>
- bool Evaluate(ICacheEntryEvent<TK, TV> evt);
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventListener.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventListener.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventListener.cs
deleted file mode 100644
index 76ae04c..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Event/ICacheEntryEventListener.cs
+++ /dev/null
@@ -1,33 +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.Cache.Event
-{
- using System.Collections.Generic;
-
- /// <summary>
- /// Cache entry event listener.
- /// </summary>
- public interface ICacheEntryEventListener<TK, TV>
- {
- /// <summary>
- /// Event callback.
- /// </summary>
- /// <param name="evts">Events.</param>
- void OnEvent(IEnumerable<ICacheEntryEvent<TK, TV>> evts);
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/ExpiryPolicy.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/ExpiryPolicy.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/ExpiryPolicy.cs
deleted file mode 100644
index 1feccbd..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/ExpiryPolicy.cs
+++ /dev/null
@@ -1,89 +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.Cache.Expiry
-{
- using System;
-
- /// <summary>
- /// Default expiry policy implementation with all durations deinfed explicitly.
- /// </summary>
- public class ExpiryPolicy : IExpiryPolicy
- {
- /** Expiry for create. */
- private readonly TimeSpan? _create;
-
- /** Expiry for update. */
- private readonly TimeSpan? _update;
-
- /** Expiry for access. */
- private readonly TimeSpan? _access;
-
- /// <summary>
- /// Constructor.
- /// </summary>
- /// <param name="create">Expiry for create.</param>
- /// <param name="update">Expiry for udpate.</param>
- /// <param name="access">Expiry for access.</param>
- public ExpiryPolicy(TimeSpan? create, TimeSpan? update, TimeSpan? access)
- {
- _create = create;
- _update = update;
- _access = access;
- }
-
- /// <summary>
- /// Gets expiry for create operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired
- /// and will not be added to cache.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for create opeartion.</returns>
- public TimeSpan? GetExpiryForCreate()
- {
- return _create;
- }
-
- /// <summary>
- /// Gets expiry for update operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for update operation.</returns>
- public TimeSpan? GetExpiryForUpdate()
- {
- return _update;
- }
-
- /// <summary>
- /// Gets expiry for access operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for access operation.</returns>
- public TimeSpan? GetExpiryForAccess()
- {
- return _access;
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/ignite/blob/bcefaa24/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/IExpiryPolicy.cs
----------------------------------------------------------------------
diff --git a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/IExpiryPolicy.cs b/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/IExpiryPolicy.cs
deleted file mode 100644
index ff627ae..0000000
--- a/modules/platform/dotnet/Apache.Ignite.Core/Cache/Expiry/IExpiryPolicy.cs
+++ /dev/null
@@ -1,59 +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.Cache.Expiry
-{
- using System;
-
- /// <summary>
- /// Defines functions to determine when cache entries will expire based on
- /// creation, access and modification operations.
- /// </summary>
- public interface IExpiryPolicy
- {
- /// <summary>
- /// Gets expiry for create operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired
- /// and will not be added to cache.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for create opeartion.</returns>
- TimeSpan? GetExpiryForCreate();
-
- /// <summary>
- /// Gets expiry for update operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for update operation.</returns>
- TimeSpan? GetExpiryForUpdate();
-
- /// <summary>
- /// Gets expiry for access operation.
- /// <para />
- /// If <c>TimeSpan.ZERO</c> is returned, cache entry is considered immediately expired.
- /// <para />
- /// If <c>null</c> is returned, no change to previously understood expiry is performed.
- /// </summary>
- /// <returns>Expiry for access operation.</returns>
- TimeSpan? GetExpiryForAccess();
- }
-}