ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [15/50] ignite git commit: cleanup
Date Thu, 08 Sep 2016 14:45:57 GMT
cleanup


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

Branch: refs/heads/ignite-3199-1
Commit: 98da016de33560e25c6df7ca8f5d8c8bb858f559
Parents: 4d76769
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Mon Sep 5 18:29:27 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Mon Sep 5 18:29:27 2016 +0300

----------------------------------------------------------------------
 .../IgniteSessionStateStoreProvider.cs          | 112 -------------------
 1 file changed, 112 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/98da016d/modules/platforms/dotnet/Apache.Ignite.AspNet/IgniteSessionStateStoreProvider.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.AspNet/IgniteSessionStateStoreProvider.cs
b/modules/platforms/dotnet/Apache.Ignite.AspNet/IgniteSessionStateStoreProvider.cs
index 8c95f07..5c13c29 100644
--- a/modules/platforms/dotnet/Apache.Ignite.AspNet/IgniteSessionStateStoreProvider.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.AspNet/IgniteSessionStateStoreProvider.cs
@@ -454,117 +454,5 @@ namespace Apache.Ignite.AspNet
 
             ((ICacheInternal) cache).Invoke<object>((int) Op.SetAndUnlock, key, data);
         }
-
-        /*
-        // TODO: Implement this in Java.
-        [Serializable]
-        private class LockEntryProcessor :
-            ICacheEntryProcessor<string, SessionStateData, LockInfo, object>
-        {
-            [SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods")]
-            public object Process(IMutableCacheEntry<string, SessionStateData> entry,
LockInfo arg)
-            {
-                // Arg contains lock info: node id + thread id
-                // Return result is either BinarizableSessionStateStoreData (when not locked)
or lockAge (when locked)
-                // or null (when not exists)
-
-                if (!entry.Exists)
-                    return null;
-
-                var data = entry.Value;
-
-                Debug.Assert(data != null);
-
-                if (data.LockNodeId != null)
-                {
-                    // Already locked: return lock time.
-                    Debug.Assert(data.LockTime != null);
-
-                    return data.LockTime;
-                }
-
-                // Not locked: lock and return result
-                data.LockNodeId = arg.LockNodeId;
-                data.LockId = arg.LockId;
-                data.LockTime = arg.LockTime;
-
-                entry.Value = data;
-
-                return data;
-            }
-        }
-
-        [Serializable]
-        private class ReleaseLockEntryProcessor : ICacheEntryProcessor<string, SessionStateData,
LockInfo, object>
-        {
-            [SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods")]
-            public object Process(IMutableCacheEntry<string, SessionStateData> entry,
LockInfo arg)
-            {
-                var val = entry.Value;
-
-                if (val != null)
-                {
-                    if (val.LockNodeId == null)
-                        throw new InvalidOperationException("LockNodeId is null.");
-
-                    if (val.LockNodeId != arg.LockNodeId)
-                        throw new InvalidOperationException("Invalid lock node id TODO");
-
-                    if (val.LockId != arg.LockId)
-                        throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
-                            "Invalid lock id: expected {0} but was {1}", arg.LockId, val.LockId));
-
-                    val.LockNodeId = null;
-
-                    entry.Value = val;
-                }
-                else
-                {
-                    Debug.Fail("");
-                }
-
-                return null;
-            }
-        }
-
-        [Serializable]
-        private class SetAndReleaseLockEntryProcessor : 
-            ICacheEntryProcessor<string, SessionStateData, SessionStateData, object>
-        {
-            [SuppressMessage("Microsoft.Design", "CA1062:Validate arguments of public methods")]
-            public object Process(IMutableCacheEntry<string, SessionStateData> entry,
SessionStateData arg)
-            {
-                var val = entry.Value;
-
-                if (val != null)
-                {
-                    if (val.LockNodeId == null)
-                        throw new InvalidOperationException("LockNodeId is null.");
-
-                    if (val.LockNodeId != arg.LockNodeId)
-                        throw new InvalidOperationException("Invalid lock node id TODO");
-
-                    if (val.LockId != arg.LockId)
-                        throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
-                            "Invalid lock id: expected {0} but was {1}", arg.LockId, val.LockId));
-
-                    // Release lock.
-                    val.LockNodeId = null;
-
-                    // Update values.
-                    val.Items.ApplyChanges(arg.Items);
-                    val.StaticObjects = arg.StaticObjects;
-                    val.Timeout = arg.Timeout;
-
-                    // Apply.
-                    entry.Value = val;
-                }
-                else
-                    Debug.Fail("");
-
-                return null;
-            }
-        }*/
-
     }
 }
\ No newline at end of file


Mime
View raw message