ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject [4/5] incubator-ignite git commit: #ignite-964: remove postPutAll
Date Tue, 30 Jun 2015 12:31:42 GMT
#ignite-964: remove postPutAll


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

Branch: refs/heads/ignite-964-1
Commit: 0643798e85545812677320fbde629dcfd75b5700
Parents: 2bf2b69
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Tue Jun 30 14:42:37 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Tue Jun 30 14:42:37 2015 +0300

----------------------------------------------------------------------
 modules/nodejs/src/main/js/cache.js              | 19 -------------------
 .../ignite/internal/NodeJsCacheApiSelfTest.java  |  7 -------
 modules/nodejs/src/test/js/test-cache-api.js     |  4 ----
 3 files changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0643798e/modules/nodejs/src/main/js/cache.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/main/js/cache.js b/modules/nodejs/src/main/js/cache.js
index b19367c..0e08c82 100644
--- a/modules/nodejs/src/main/js/cache.js
+++ b/modules/nodejs/src/main/js/cache.js
@@ -87,25 +87,6 @@ Cache.prototype.removeAll = function(keys, callback) {
  * @param {noValue} callback Called on finish
  */
 Cache.prototype.putAll = function(map, callback) {
-    var keys = Object.keys(map);
-
-    var values = [];
-
-    for (var key of keys) {
-        values.push(map[key]);
-    }
-
-    this._server.runCommand(this._createCommand("putall").addParams("k", keys).addParams("v",
values), callback);
-}
-
-/**
- * Put keys to cache
- *
- * @this {Cache}
- * @param {Object.<string, string>} map collection of entries to put in the cache
- * @param {noValue} callback Called on finish
- */
-Cache.prototype.postPutAll = function(map, callback) {
     this._server.runCommand(this._createCommand("putall").setPostData(JSON.stringify(map)),
callback);
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0643798e/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsCacheApiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsCacheApiSelfTest.java
b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsCacheApiSelfTest.java
index a6c6140..f17ca60 100644
--- a/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsCacheApiSelfTest.java
+++ b/modules/nodejs/src/test/java/org/apache/ignite/internal/NodeJsCacheApiSelfTest.java
@@ -84,11 +84,4 @@ public class NodeJsCacheApiSelfTest extends NodeJsAbstractTest {
     public void testPutAllGetAll() throws Exception {
         runJsScript("testPutAllGetAll");
     }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testPostPutAllGetAll() throws Exception {
-        runJsScript("testPostPutAllGetAll");
-    }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0643798e/modules/nodejs/src/test/js/test-cache-api.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/js/test-cache-api.js b/modules/nodejs/src/test/js/test-cache-api.js
index 90ccbb6..fc29f22 100644
--- a/modules/nodejs/src/test/js/test-cache-api.js
+++ b/modules/nodejs/src/test/js/test-cache-api.js
@@ -35,10 +35,6 @@ testPutAllGetAll = function() {
     startTest("mycache", {trace: [putAll, getAll], entry: {"key1": "val1", "key2" : "val2"}});
 }
 
-testPostPutAllGetAll = function() {
-    startTest("mycache", {trace: [postPutAll, getAll], entry: {"key1": "val1", "key2" : "val2"}});
-}
-
 testRemoveAll = function() {
     startTest("mycache", {trace: [putAll, getAll, removeAll, getNone], entry: {"key1": "val1",
"key2" : "val2"}});
 }


Mime
View raw message