ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject [22/59] [abbrv] ignite git commit: Minor fixes to examples
Date Thu, 27 Aug 2015 00:11:47 GMT
Minor fixes to examples


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

Branch: refs/heads/ignite-884
Commit: 2c86d60f526588056c828ac11a3ba81b6568b4e6
Parents: e5358de
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Tue Aug 25 16:56:14 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Tue Aug 25 16:56:14 2015 +0300

----------------------------------------------------------------------
 .../ignite/examples/igfs/IgfsMapReduceExample.java     |  3 +++
 .../ignite/examples/servicegrid/ServicesExample.java   | 13 ++++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2c86d60f/examples/src/main/java/org/apache/ignite/examples/igfs/IgfsMapReduceExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/igfs/IgfsMapReduceExample.java
b/examples/src/main/java/org/apache/ignite/examples/igfs/IgfsMapReduceExample.java
index ed0abe4..f4fa95e 100644
--- a/examples/src/main/java/org/apache/ignite/examples/igfs/IgfsMapReduceExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/igfs/IgfsMapReduceExample.java
@@ -79,6 +79,9 @@ public class IgfsMapReduceExample {
                     System.out.println("No lines were found.");
                 }
                 else {
+                    System.out.println();
+                    System.out.println("Found lines:");
+
                     for (Line line : lines)
                         print(line.fileLine());
                 }

http://git-wip-us.apache.org/repos/asf/ignite/blob/2c86d60f/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java
b/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java
index 1a10211..ec8e54e 100644
--- a/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java
@@ -62,7 +62,10 @@ public class ServicesExample {
                 svcs.deployNodeSingleton("myNodeSingletonService", new SimpleMapServiceImpl());
 
                 // Deploy 2 instances, regardless of number nodes.
-                svcs.deployMultiple("myMultiService", new SimpleMapServiceImpl(), 2 /*total
number*/, 0 /*0 for unlimited*/);
+                svcs.deployMultiple("myMultiService",
+                    new SimpleMapServiceImpl(),
+                    2 /*total number*/,
+                    0 /*0 for unlimited*/);
 
                 // Example for using a service proxy
                 // to access a remotely deployed service.
@@ -91,7 +94,9 @@ public class ServicesExample {
         System.out.println(">>>");
 
         // Get a sticky proxy for node-singleton map service.
-        SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myNodeSingletonService",
SimpleMapService.class, true);
+        SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myNodeSingletonService",
+            SimpleMapService.class,
+            true);
 
         int cnt = 10;
 
@@ -121,7 +126,9 @@ public class ServicesExample {
         System.out.println(">>>");
 
         // Get a sticky proxy for cluster-singleton map service.
-        SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myClusterSingletonService",
SimpleMapService.class, true);
+        SimpleMapService<Integer, String> mapSvc = ignite.services().serviceProxy("myClusterSingletonService",
+            SimpleMapService.class,
+            true);
 
         int cnt = 10;
 


Mime
View raw message