# ignite-577 Fixed scaladoc in examples.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/56bccdea Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/56bccdea Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/56bccdea Branch: refs/heads/ignite-573 Commit: 56bccdea474b15f8a3bc3e8122b4a24d195ff601 Parents: 7001c50 Author: anovikov <anovi...@gridgain.com> Authored: Wed Mar 25 18:38:01 2015 +0700 Committer: anovikov <anovi...@gridgain.com> Committed: Wed Mar 25 18:38:01 2015 +0700 ---------------------------------------------------------------------- .../ignite/scalar/examples/ScalarCacheAffinityExample.scala | 8 ++++---- .../apache/ignite/scalar/examples/ScalarCacheExample.scala | 4 ++-- .../scalar/examples/ScalarCachePopularNumbersExample.scala | 6 +++--- .../ignite/scalar/examples/ScalarCacheQueryExample.scala | 2 +- .../apache/ignite/scalar/examples/ScalarClosureExample.scala | 5 ++++- .../ignite/scalar/examples/ScalarContinuationExample.scala | 7 +++++-- .../ignite/scalar/examples/ScalarCreditRiskExample.scala | 5 ++++- .../ignite/scalar/examples/ScalarJvmCloudExample.scala | 2 +- .../ignite/scalar/examples/ScalarPingPongExample.scala | 5 ++++- .../apache/ignite/scalar/examples/ScalarPrimeExample.scala | 4 ++-- .../ignite/scalar/examples/ScalarScheduleExample.scala | 5 ++++- .../scalar/examples/ScalarSnowflakeSchemaExample.scala | 4 ++-- .../apache/ignite/scalar/examples/ScalarTaskExample.scala | 5 ++++- .../scalar/examples/ScalarWorldShortestMapReduce.scala | 5 ++++- 14 files changed, 44 insertions(+), 23 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample.scala index 991521f..fbf66bc 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample.scala @@ -27,10 +27,10 @@ import scala.collection.JavaConversions._ * This example demonstrates the simplest code that populates the distributed cache * and co-locates simple closure execution with each key. The goal of this particular * example is to provide the simplest code example of this logic. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. - * <p> + * <p/> * Alternatively you can run `ExampleNodeStartup` in another JVM which will * start node with `examples/config/example-ignite.xml` configuration. */ @@ -56,9 +56,9 @@ object ScalarCacheAffinityExample extends App { try { populate (cache) - + visitUsingAffinityRun(cache) - + visitUsingMapKeysToNodes(cache) } finally { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheExample.scala index 65218b3..42e8ca4 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheExample.scala @@ -27,10 +27,10 @@ import scala.collection.JavaConversions._ /** * Demonstrates basic In-Memory Data Ignite Cluster operations with Scalar. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. - * <p> + * <p/> * Alternatively you can run `ExampleNodeStartup` in another JVM which will * start node with `examples/config/example-ignite.xml` configuration. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala index a0b2fd0..828c5a3 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala @@ -35,13 +35,13 @@ import scala.util.Random /** * Real time popular number counter. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. - * <p> + * <p/> * Alternatively you can run `ExampleNodeStartup` in another JVM which will * start node with `examples/config/example-ignite.xml` configuration. - * <p> + * <p/> * The counts are kept in cache on all remote nodes. Top `10` counts from each node are then grabbed to produce * an overall top `10` list within the ignite. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala index 50b68ca..b8054eb 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala @@ -30,7 +30,7 @@ import scala.collection.JavaConversions._ /** * Demonstrates cache ad-hoc queries with Scalar. - * <p> + * <p/> * Remote nodes should be started using `ExampleNodeStartup` which will * start node with `examples/config/example-ignite.xml` configuration. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarClosureExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarClosureExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarClosureExample.scala index 8873139..719f216 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarClosureExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarClosureExample.scala @@ -23,9 +23,12 @@ import org.apache.ignite.scalar.scalar._ /** * Demonstrates various closure executions on the cloud using Scalar. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarClosureExample extends App { scalar("examples/config/example-ignite.xml") { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarContinuationExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarContinuationExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarContinuationExample.scala index 82f0905..3ef0527 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarContinuationExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarContinuationExample.scala @@ -33,13 +33,16 @@ import java.util * (a.k.a. nested) tasks or closures with continuations. This example also shows * usage of `continuations`, which allows us to wait for results from remote nodes * without blocking threads. - * <p> + * <p/> * Note that because this example utilizes local node storage via `NodeLocal`, * it gets faster if you execute it multiple times, as the more you execute it, * the more values it will be cached on remote nodes. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarContinuationExample { def main(args: Array[String]) { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCreditRiskExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCreditRiskExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCreditRiskExample.scala index bff7d1d..1b0d767 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCreditRiskExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCreditRiskExample.scala @@ -25,9 +25,12 @@ import scala.util.control.Breaks._ /** * Scalar-based Monte-Carlo example. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarCreditRiskExample { def main(args: Array[String]) { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala index a5b8fd2..1014726 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala @@ -32,7 +32,7 @@ import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder * in the same JVM with Scala. All started nodes use default configuration * with only difference of the ignite cluster name which has to be different for * every node so they can be differentiated within JVM. - * <p> + * <p/> * Starting multiple nodes in the same JVM is especially useful during * testing and debugging as it allows you to create a full ignite cluster within * a test case, simulate various scenarios, and watch how jobs and data http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPingPongExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPingPongExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPingPongExample.scala index cf25eaf..75784cf 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPingPongExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPingPongExample.scala @@ -27,9 +27,12 @@ import org.apache.ignite.scalar.scalar._ /** * Demonstrates simple protocol-based exchange in playing a ping-pong between * two nodes. It is analogous to `MessagingPingPongExample` on Java side. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarPingPongExample extends App { scalar("examples/config/example-ignite.xml") { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPrimeExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPrimeExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPrimeExample.scala index 3ea4fa5..867783b 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPrimeExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarPrimeExample.scala @@ -31,13 +31,13 @@ import scala.util.control.Breaks._ * To try this example you should (but don't have to) start remote ignite instances. * You can start as many as you like by executing the following script: * `{IGNITE_HOME}/bin/ignite.{bat|sh} examples/config/example-ignite.xml` - * + * <p/> * Once remote instances are started, you can execute this example from * Eclipse, IntelliJ IDEA, or NetBeans (and any other Java IDE) by simply hitting run * button. You will see that all nodes discover each other and * all of the nodes will participate in task execution (check node * output). - * + * <p/> * Note that when running this example on a multi-core box, simply * starting additional cluster node on the same box will speed up * prime number calculation by a factor of 2. http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarScheduleExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarScheduleExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarScheduleExample.scala index 34fc9d5..8734a23 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarScheduleExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarScheduleExample.scala @@ -24,9 +24,12 @@ import org.apache.ignite.scalar.scalar._ * Demonstrates a cron-based `Runnable` execution scheduling. * Test runnable object broadcasts a phrase to all cluster nodes every minute * three times with initial scheduling delay equal to five seconds. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarScheduleExample extends App { scalar("examples/config/example-ignite.xml") { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala index e917e4c..2656f44 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala @@ -40,11 +40,11 @@ import scala.collection.JavaConversions._ * `CacheMode#REPLICATED REPLICATED` caches and <i>facts</i> in much larger * `CacheMode#PARTITIONED PARTITIONED` caches you can freely execute distributed joins across * your whole in-memory data ignite cluster, thus querying your in memory data without any limitations. - * <p> + * <p/> * In this example we have two <i>dimensions</i>, `DimProduct` and `DimStore` and * one <i>fact</i> - `FactPurchase`. Queries are executed by joining dimensions and facts * in various ways. - * <p> + * <p/> * Remote nodes should be started using `ExampleNodeStartup` which will * start node with `examples/config/example-ignite.xml` configuration. */ http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala index fe7edb3..21073e5 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala @@ -30,9 +30,12 @@ import scala.collection.JavaConversions._ * ignite enabling gives you all the advanced features of Ignite such as custom topology * and collision resolution, custom failover, mapping, reduction, load balancing, etc. * As a trade off in such cases the more code needs to be written vs. simple closure execution. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarTaskExample extends App { scalar("examples/config/example-ignite.xml") { http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/56bccdea/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarWorldShortestMapReduce.scala ---------------------------------------------------------------------- diff --git a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarWorldShortestMapReduce.scala b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarWorldShortestMapReduce.scala index a2e1516..723cdae 100644 --- a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarWorldShortestMapReduce.scala +++ b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarWorldShortestMapReduce.scala @@ -24,9 +24,12 @@ import org.apache.ignite.scalar.scalar._ * Shows the world's shortest MapReduce application that calculates non-space * length of the input string. This example works equally on one computer or * on thousands requiring no special configuration or deployment. - * <p> + * <p/> * Remote nodes should always be started with special configuration file which * enables P2P class loading: `'ignite.{sh|bat} examples/config/example-ignite.xml'`. + * <p/> + * Alternatively you can run `ExampleNodeStartup` in another JVM which will + * start node with `examples/config/example-ignite.xml` configuration. */ object ScalarWorldShortestMapReduce extends App { scalar("examples/config/example-ignite.xml") {