ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [1/2] incubator-ignite git commit: ignite-574: added return value for java8 schedule example
Date Wed, 25 Mar 2015 12:22:49 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/sprint-2 10be14075 -> fa4157fff


ignite-574: added return value for java8 schedule 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/470b5415
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/470b5415
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/470b5415

Branch: refs/heads/sprint-2
Commit: 470b5415f17628df38b8c9f8576a4858aad50d7f
Parents: 3462d74
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Wed Mar 25 15:22:26 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Wed Mar 25 15:22:26 2015 +0300

----------------------------------------------------------------------
 .../ignite/examples/misc/schedule/ComputeScheduleExample.java  | 2 +-
 .../examples/java8/misc/schedule/ComputeScheduleExample.java   | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/470b5415/examples/src/main/java/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
b/examples/src/main/java/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
index e087a21..f92285b 100644
--- a/examples/src/main/java/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/misc/schedule/ComputeScheduleExample.java
@@ -59,7 +59,7 @@ public class ComputeScheduleExample {
                             new IgniteRunnable() {
                                 @Override public void run() {
                                     System.out.println();
-                                    System.out.println("Howdy! :) ");
+                                    System.out.println("Howdy! :)");
                                 }
                             }
                         );

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/470b5415/examples/src/main/java8/org/apache/ignite/examples/java8/misc/schedule/ComputeScheduleExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java8/org/apache/ignite/examples/java8/misc/schedule/ComputeScheduleExample.java
b/examples/src/main/java8/org/apache/ignite/examples/java8/misc/schedule/ComputeScheduleExample.java
index ac89c52..64e4e2d 100644
--- a/examples/src/main/java8/org/apache/ignite/examples/java8/misc/schedule/ComputeScheduleExample.java
+++ b/examples/src/main/java8/org/apache/ignite/examples/java8/misc/schedule/ComputeScheduleExample.java
@@ -48,13 +48,15 @@ public class ComputeScheduleExample {
             SchedulerFuture<?> fut = ignite.scheduler().scheduleLocal(() ->
                 ignite.compute().broadcast(() -> {
                     System.out.println();
-                    System.out.println("Howdy! :) ");
+                    System.out.println("Howdy! :)");
+
+                    return "Howdy! :)";
                 }),
                 "{5, 3} * * * * *" // Cron expression.
             );
 
             while (!fut.isDone())
-                System.out.println(">>> Invocation #: " + fut.get());
+                System.out.println(">>> Invocation result: " + fut.get());
 
             System.out.println();
             System.out.println(">>> Schedule future is done and has been unscheduled.");


Mime
View raw message