You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/06/23 19:47:35 UTC

[09/20] incubator-ignite git commit: #ignite-965: code style GridRestCommand.

#ignite-965: code style GridRestCommand.


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

Branch: refs/heads/ignite-965
Commit: a28b02d3ec8aeec97a7b66f4d772380d203bd315
Parents: dbc29fd
Author: ivasilinets <iv...@gridgain.com>
Authored: Tue Jun 23 19:48:39 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Tue Jun 23 19:48:39 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/rest/GridRestCommand.java       | 6 +++---
 modules/nodejs/src/main/js/compute.js                          | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a28b02d3/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
index 91022fa..f964cb4 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/rest/GridRestCommand.java
@@ -97,13 +97,13 @@ public enum GridRestCommand {
     QUIT("quit"),
 
     /** Affinity run. */
-    AFFINITY_RUN("affrun"),
+    AFFINITY_RUN("affscriptrun"),
 
     /** Affinity call. */
-    AFFINITY_CALL("affcall"),
+    AFFINITY_CALL("affscriptcall"),
 
     /** Execute task. */
-    EXECUTE_TASK("exectask");
+    EXECUTE_TASK("execscripttask");
 
     /** Enum values. */
     private static final GridRestCommand[] VALS = values();

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a28b02d3/modules/nodejs/src/main/js/compute.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/main/js/compute.js b/modules/nodejs/src/main/js/compute.js
index e452847..00f7b54 100644
--- a/modules/nodejs/src/main/js/compute.js
+++ b/modules/nodejs/src/main/js/compute.js
@@ -39,7 +39,7 @@ function Compute(server) {
  * @param {Cache~noValue} callback Callback
  */
 Compute.prototype.affinityRun = function(cacheName, key, runnable, callback) {
-  this._server.runCommand("affrun", [Server.pair("cacheName", cacheName),
+  this._server.runCommand("affscriptrun", [Server.pair("cacheName", cacheName),
     Server.pair("key", key), Server.pair("func", this._escape(runnable))], callback);
 }
 
@@ -51,7 +51,7 @@ Compute.prototype.affinityRun = function(cacheName, key, runnable, callback) {
  * @param {Cache~onGet} callback Callback
  */
 Compute.prototype.affinityCall = function(cacheName, key, runnable, callback) {
-  this._server.runCommand("affcall", [Server.pair("cacheName", cacheName),
+  this._server.runCommand("affscriptcall", [Server.pair("cacheName", cacheName),
     Server.pair("key", key), Server.pair("func", this._escape(runnable))], callback);
 }
 
@@ -78,7 +78,7 @@ Compute.prototype.execute = function(map, reduce, arg, callback) {
     params.push(Server.pair("reduce", this._escape(reduce)));
     params.push(Server.pair("arg", this._escape(arg)));
 
-    this._server.runCommand("exectask", params, callback);
+    this._server.runCommand("execscripttask", params, callback);
 }
 
 /**