Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33B7C17222 for ; Wed, 26 Aug 2015 06:27:46 +0000 (UTC) Received: (qmail 75885 invoked by uid 500); 26 Aug 2015 06:27:46 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 75829 invoked by uid 500); 26 Aug 2015 06:27:46 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 75687 invoked by uid 99); 26 Aug 2015 06:27:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 06:27:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9856CE35D0; Wed, 26 Aug 2015 06:27:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.apache.org Date: Wed, 26 Aug 2015 06:27:47 -0000 Message-Id: <2ad86a6ae10c4b53b9a8fc489676bc09@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [03/10] ignite git commit: Minor fixes to examples 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-1124 Commit: 2c86d60f526588056c828ac11a3ba81b6568b4e6 Parents: e5358de Author: Yakov Zhdanov Authored: Tue Aug 25 16:56:14 2015 +0300 Committer: Yakov Zhdanov 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 mapSvc = ignite.services().serviceProxy("myNodeSingletonService", SimpleMapService.class, true); + SimpleMapService 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 mapSvc = ignite.services().serviceProxy("myClusterSingletonService", SimpleMapService.class, true); + SimpleMapService mapSvc = ignite.services().serviceProxy("myClusterSingletonService", + SimpleMapService.class, + true); int cnt = 10;