ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject [24/50] [abbrv] incubator-ignite git commit: #ignite-964: throw error if no node started in example.
Date Mon, 13 Jul 2015 06:35:25 GMT
#ignite-964: throw error if no node started in example.


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

Branch: refs/heads/ignite-961
Commit: ba4c59a2320d82a4f493827a91e7dcc298485a29
Parents: 1749345
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Jul 9 18:34:54 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Jul 9 18:34:54 2015 +0300

----------------------------------------------------------------------
 examples/src/main/js/cache-api-example.js     | 3 +++
 examples/src/main/js/cache-put-get-example.js | 3 +++
 examples/src/main/js/cache-query-example.js   | 3 +++
 examples/src/main/js/map-reduce-example.js    | 3 +++
 examples/src/main/js/run-cache-script.js      | 3 +++
 examples/src/main/js/run-function-example.js  | 3 +++
 6 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/cache-api-example.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/cache-api-example.js b/examples/src/main/js/cache-api-example.js
index 9308353..85f9fde 100644
--- a/examples/src/main/js/cache-api-example.js
+++ b/examples/src/main/js/cache-api-example.js
@@ -35,6 +35,9 @@ function main() {
     Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
     function onConnect(err, ignite) {
+        if (err !== null)
+            throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
         console.log(">>> Cache API example started.");
 
         // Create cache on server with cacheName.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/cache-put-get-example.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/cache-put-get-example.js b/examples/src/main/js/cache-put-get-example.js
index bf2c472..42a9cf8 100644
--- a/examples/src/main/js/cache-put-get-example.js
+++ b/examples/src/main/js/cache-put-get-example.js
@@ -36,6 +36,9 @@ function main() {
     Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
     function onConnect(err, ignite) {
+        if (err !== null)
+            throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
        ignite.getOrCreateCache(cacheName, function(err, cache) { putGetExample(ignite, cache);
});
     }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/cache-query-example.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/cache-query-example.js b/examples/src/main/js/cache-query-example.js
index 04ffb1e..5241e69 100644
--- a/examples/src/main/js/cache-query-example.js
+++ b/examples/src/main/js/cache-query-example.js
@@ -27,6 +27,9 @@ var cacheName = "CacheQueryExample";
 Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
 function onConnect(err, ignite) {
+    if (err !== null)
+        throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
     console.log(">>> Cache query example started.");
 
     var entries = [new CacheEntry("key0", "val0"), new CacheEntry("key1", "val1")];

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/map-reduce-example.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/map-reduce-example.js b/examples/src/main/js/map-reduce-example.js
index ab02bf8..8adf095 100644
--- a/examples/src/main/js/map-reduce-example.js
+++ b/examples/src/main/js/map-reduce-example.js
@@ -36,6 +36,9 @@ function main() {
     Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
     function onConnect(err, ignite) {
+        if (err !== null)
+            throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
         console.log(">>> Compute map reduce example started.");
 
         /**

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/run-cache-script.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/run-cache-script.js b/examples/src/main/js/run-cache-script.js
index b27721d..18d5452 100644
--- a/examples/src/main/js/run-cache-script.js
+++ b/examples/src/main/js/run-cache-script.js
@@ -35,6 +35,9 @@ function main() {
     Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
     function onConnect(err, ignite) {
+        if (err !== null)
+            throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
         console.log(">>> Run cache script example started.");
 
         ignite.getOrCreateCache(cacheName, function(err, cache) { runCacheScript(ignite,
cache); });

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ba4c59a2/examples/src/main/js/run-function-example.js
----------------------------------------------------------------------
diff --git a/examples/src/main/js/run-function-example.js b/examples/src/main/js/run-function-example.js
index 740dc20..bec1e9f 100644
--- a/examples/src/main/js/run-function-example.js
+++ b/examples/src/main/js/run-function-example.js
@@ -37,6 +37,9 @@ function main() {
     Ignition.start(['127.0.0.1:9095'], null, onConnect);
 
     function onConnect(err, ignite) {
+        if (err !== null)
+            throw "Start remote node with config examples/config/js/example-js-cache.xml.";
+
         console.log(">>> Compute callable example started");
 
         var job = function (args) {


Mime
View raw message