# IGNITE-480 Fixed config name, javadocs and link to documentation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ea5231b9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ea5231b9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ea5231b9 Branch: refs/heads/ignite-45 Commit: ea5231b93e2f61889f766bde472f6b406507cd56 Parents: af95144 Author: AKuznetsov <akuznet...@gridgain.com> Authored: Fri Mar 20 16:29:01 2015 +0700 Committer: AKuznetsov <akuznet...@gridgain.com> Committed: Fri Mar 20 16:29:01 2015 +0700 ---------------------------------------------------------------------- examples/config/example-cache.xml | 2 +- examples/config/example-compute.xml | 83 -------------------- examples/config/example-ignite.xml | 83 ++++++++++++++++++++ examples/config/example-streamer.xml | 2 +- examples/config/filesystem/example-igfs.xml | 2 +- .../ignite/examples/ExampleNodeStartup.java | 2 +- .../computegrid/ComputeBroadcastExample.java | 6 +- .../computegrid/ComputeCallableExample.java | 6 +- .../computegrid/ComputeClosureExample.java | 6 +- .../ComputeClusterGroupsExample.java | 6 +- .../ComputeContinuousMapperExample.java | 6 +- .../ComputeExecutorServiceExample.java | 6 +- .../ComputeFibonacciContinuationExample.java | 6 +- .../computegrid/ComputeReducerExample.java | 6 +- .../computegrid/ComputeRunnableExample.java | 6 +- .../computegrid/ComputeScheduleExample.java | 6 +- .../computegrid/ComputeTaskMapExample.java | 6 +- .../computegrid/ComputeTaskSplitExample.java | 6 +- .../failover/ComputeFailoverExample.java | 1 - .../montecarlo/CreditRiskExample.java | 6 +- .../examples/datagrid/CacheAffinityExample.java | 6 +- .../examples/datagrid/CacheApiExample.java | 6 +- .../datagrid/CacheContinuousQueryExample.java | 6 +- .../datagrid/CacheDataStreamerExample.java | 6 +- .../examples/datagrid/CacheEventsExample.java | 10 +-- .../datagrid/CachePopularNumbersExample.java | 6 +- .../examples/datagrid/CachePutGetExample.java | 6 +- .../examples/datagrid/CacheQueryExample.java | 6 +- .../datagrid/CacheTransactionExample.java | 6 +- .../starschema/CacheStarSchemaExample.java | 6 +- .../datagrid/starschema/DimProduct.java | 1 - .../examples/datagrid/starschema/DimStore.java | 1 - .../datagrid/starschema/FactPurchase.java | 2 - .../store/dummy/CacheDummyPersonStore.java | 1 - .../store/jdbc/CacheJdbcPojoPersonStore.java | 3 - .../datastructures/IgniteAtomicLongExample.java | 7 +- .../IgniteAtomicReferenceExample.java | 7 +- .../IgniteAtomicSequenceExample.java | 7 +- .../IgniteAtomicStampedExample.java | 7 +- .../IgniteCountDownLatchExample.java | 7 +- .../datastructures/IgniteQueueExample.java | 7 +- .../datastructures/IgniteSetExample.java | 7 +- .../ignite/examples/events/EventsExample.java | 8 +- .../examples/messaging/MessagingExample.java | 6 +- .../messaging/MessagingPingPongExample.java | 6 +- .../MessagingPingPongListenActorExample.java | 6 +- .../misc/deployment/DeploymentExample.java | 6 +- .../misc/springbean/SpringBeanExample.java | 4 +- .../examples/servicegrid/ServicesExample.java | 4 +- .../StreamingPopularNumbersExample.java | 9 ++- .../ignite/examples/java8/ComputeExample.java | 4 +- .../examples/java8/ExampleNodeStartup.java | 2 +- .../ignite/examples/java8/MessagingExample.java | 6 +- .../streaming/numbers/QueryPopularNumbers.java | 6 +- .../streaming/numbers/StreamRandomNumbers.java | 6 +- .../examples/ScalarCacheAffinityExample.scala | 6 +- .../scalar/examples/ScalarCacheExample.scala | 6 +- .../ScalarCachePopularNumbersExample.scala | 6 +- .../examples/ScalarCacheQueryExample.scala | 6 +- .../scalar/examples/ScalarClosureExample.scala | 4 +- .../examples/ScalarContinuationExample.scala | 4 +- .../examples/ScalarCreditRiskExample.scala | 4 +- .../scalar/examples/ScalarPingPongExample.scala | 4 +- .../scalar/examples/ScalarPrimeExample.scala | 4 +- .../scalar/examples/ScalarScheduleExample.scala | 4 +- .../examples/ScalarSnowflakeSchemaExample.scala | 6 +- .../scalar/examples/ScalarTaskExample.scala | 4 +- .../examples/ScalarWorldShortestMapReduce.scala | 4 +- .../CacheExamplesMultiNodeSelfTest.java | 2 +- .../test/config/websession/example-cache.xml | 2 +- .../test/resources/spring-ping-pong-partner.xml | 2 +- 71 files changed, 250 insertions(+), 265 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/config/example-cache.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-cache.xml b/examples/config/example-cache.xml index 21b4ba0..1cf1e2d 100644 --- a/examples/config/example-cache.xml +++ b/examples/config/example-cache.xml @@ -146,7 +146,7 @@ <!-- Ignite provides several options for automatic discovery that can be used instead os static IP based discovery. For information on all options refer - to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery + to our documentation: http://apacheignite.readme.io/docs/cluster-config --> <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">--> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/config/example-compute.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-compute.xml b/examples/config/example-compute.xml deleted file mode 100644 index 90bd417..0000000 --- a/examples/config/example-compute.xml +++ /dev/null @@ -1,83 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!-- - Ignite configuration with all defaults and enabled p2p deployment and enabled events. ---> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:util="http://www.springframework.org/schema/util" - xsi:schemaLocation=" - http://www.springframework.org/schema/beans - http://www.springframework.org/schema/beans/spring-beans.xsd - http://www.springframework.org/schema/util - http://www.springframework.org/schema/util/spring-util.xsd"> - <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> - <!-- Set to true to enable distributed class loading for examples, default is false. --> - <property name="peerClassLoadingEnabled" value="true"/> - - <property name="marshaller"> - <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller"> - <!-- Set to false to allow non-serializable objects in examples, default is true. --> - <property name="requireSerializable" value="false"/> - </bean> - </property> - - <!-- Enable task execution events for examples. --> - <property name="includeEventTypes"> - <array> - <!--Task execution events--> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/> - - <!--Cache events--> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/> - <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/> - </array> - </property> - - <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. --> - <property name="discoverySpi"> - <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> - <property name="ipFinder"> - <!-- - Ignite provides several options for automatic discovery that can be used - instead os static IP based discovery. For information on all options refer - to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery - --> - <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> - <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">--> - <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> - <property name="addresses"> - <list> - <!-- In distributed environment, replace with actual host IP address. --> - <value>127.0.0.1:47500..47509</value> - </list> - </property> - </bean> - </property> - </bean> - </property> - </bean> -</beans> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/config/example-ignite.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-ignite.xml b/examples/config/example-ignite.xml new file mode 100644 index 0000000..e7adb54 --- /dev/null +++ b/examples/config/example-ignite.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- + Ignite configuration with all defaults and enabled p2p deployment and enabled events. +--> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:util="http://www.springframework.org/schema/util" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/util + http://www.springframework.org/schema/util/spring-util.xsd"> + <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> + <!-- Set to true to enable distributed class loading for examples, default is false. --> + <property name="peerClassLoadingEnabled" value="true"/> + + <property name="marshaller"> + <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller"> + <!-- Set to false to allow non-serializable objects in examples, default is true. --> + <property name="requireSerializable" value="false"/> + </bean> + </property> + + <!-- Enable task execution events for examples. --> + <property name="includeEventTypes"> + <list> + <!--Task execution events--> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/> + + <!--Cache events--> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/> + <util:constant static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/> + </list> + </property> + + <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. --> + <property name="discoverySpi"> + <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> + <property name="ipFinder"> + <!-- + Ignite provides several options for automatic discovery that can be used + instead os static IP based discovery. For information on all options refer + to our documentation: http://apacheignite.readme.io/docs/cluster-config + --> + <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> + <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">--> + <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> + <property name="addresses"> + <list> + <!-- In distributed environment, replace with actual host IP address. --> + <value>127.0.0.1:47500..47509</value> + </list> + </property> + </bean> + </property> + </bean> + </property> + </bean> +</beans> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/config/example-streamer.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-streamer.xml b/examples/config/example-streamer.xml index 490fde8..0d996a8 100644 --- a/examples/config/example-streamer.xml +++ b/examples/config/example-streamer.xml @@ -274,7 +274,7 @@ <!-- Ignite provides several options for automatic discovery that can be used instead os static IP based discovery. For information on all options refer - to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery + to our documentation: http://apacheignite.readme.io/docs/cluster-config --> <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">--> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/config/filesystem/example-igfs.xml ---------------------------------------------------------------------- diff --git a/examples/config/filesystem/example-igfs.xml b/examples/config/filesystem/example-igfs.xml index 07dc775..41ac865 100644 --- a/examples/config/filesystem/example-igfs.xml +++ b/examples/config/filesystem/example-igfs.xml @@ -139,7 +139,7 @@ <!-- Ignition provides several options for automatic discovery that can be used instead os static IP based discovery. For information on all options refer - to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery + to our documentation: http://apacheignite.readme.io/docs/cluster-config --> <!-- Uncomment static IP finder to enable static-based discovery of initial nodes. --> <!--<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">--> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java b/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java index d02fd9c..f972b53 100644 --- a/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java +++ b/examples/src/main/java/org/apache/ignite/examples/ExampleNodeStartup.java @@ -30,6 +30,6 @@ public class ExampleNodeStartup { * @throws IgniteException If failed. */ public static void main(String[] args) throws IgniteException { - Ignition.start("examples/config/example-compute.xml"); + Ignition.start("examples/config/example-ignite.xml"); } } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeBroadcastExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeBroadcastExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeBroadcastExample.java index 347dd22..2ea878c 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeBroadcastExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeBroadcastExample.java @@ -28,10 +28,10 @@ import java.util.*; * Demonstrates broadcasting computations within cluster. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeBroadcastExample { /** @@ -41,7 +41,7 @@ public class ComputeBroadcastExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Compute broadcast example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeCallableExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeCallableExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeCallableExample.java index 3b6fc16..f9a2939 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeCallableExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeCallableExample.java @@ -31,10 +31,10 @@ import java.util.*; * word. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeCallableExample { /** @@ -44,7 +44,7 @@ public class ComputeCallableExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Compute callable example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClosureExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClosureExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClosureExample.java index 0bef390..0efb4cc 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClosureExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClosureExample.java @@ -30,10 +30,10 @@ import java.util.*; * nodes and then computes total amount of non-whitespaces characters in the phrase. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeClosureExample { /** @@ -43,7 +43,7 @@ public class ComputeClosureExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Compute closure example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClusterGroupsExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClusterGroupsExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClusterGroupsExample.java index 941543e..40f8598 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClusterGroupsExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeClusterGroupsExample.java @@ -26,10 +26,10 @@ import org.apache.ignite.lang.*; * Demonstrates new functional APIs. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeClusterGroupsExample { /** @@ -39,7 +39,7 @@ public class ComputeClusterGroupsExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2)) return; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeContinuousMapperExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeContinuousMapperExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeContinuousMapperExample.java index 09ff85d..715001e 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeContinuousMapperExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeContinuousMapperExample.java @@ -40,10 +40,10 @@ import java.util.concurrent.atomic.*; * previous word has been received. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeContinuousMapperExample { /** @@ -56,7 +56,7 @@ public class ComputeContinuousMapperExample { System.out.println(); System.out.println(">>> Compute continuous mapper example started."); - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { int phraseLen = ignite.compute().execute(ContinuousMapperTask.class, "Hello Continuous Mapper"); System.out.println(); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeExecutorServiceExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeExecutorServiceExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeExecutorServiceExample.java index 5c7fb7a..3b9be86 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeExecutorServiceExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeExecutorServiceExample.java @@ -27,10 +27,10 @@ import java.util.concurrent.*; * Simple example to demonstrate usage of distributed executor service provided by Ignite. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public final class ComputeExecutorServiceExample { /** @@ -41,7 +41,7 @@ public final class ComputeExecutorServiceExample { */ @SuppressWarnings({"TooBroadScope"}) public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Compute executor service example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeFibonacciContinuationExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeFibonacciContinuationExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeFibonacciContinuationExample.java index 8d0f12e..ff2fae9 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeFibonacciContinuationExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeFibonacciContinuationExample.java @@ -37,10 +37,10 @@ import java.util.concurrent.*; * {@link ComputeJobContext#callcc()} method calls in {@link ComputeFibonacciContinuationExample.FibonacciClosure} class. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public final class ComputeFibonacciContinuationExample { /** @@ -50,7 +50,7 @@ public final class ComputeFibonacciContinuationExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute Fibonacci continuation example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeReducerExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeReducerExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeReducerExample.java index 75f9549..b678d45 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeReducerExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeReducerExample.java @@ -31,10 +31,10 @@ import java.util.concurrent.atomic.*; * calculated. Then total phrase length is calculated using reducer. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start Ignite node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeReducerExample { /** @@ -44,7 +44,7 @@ public class ComputeReducerExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute reducer example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeRunnableExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeRunnableExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeRunnableExample.java index 57d5777..1d907e3 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeRunnableExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeRunnableExample.java @@ -27,10 +27,10 @@ import java.util.*; * Demonstrates a simple use of {@link IgniteRunnable}. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeRunnableExample { /** @@ -40,7 +40,7 @@ public class ComputeRunnableExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute runnable example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeScheduleExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeScheduleExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeScheduleExample.java index 7913a9c..17812ec 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeScheduleExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeScheduleExample.java @@ -30,10 +30,10 @@ import java.util.concurrent.*; * three times with initial scheduling delay equal to five seconds. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeScheduleExample { /** @@ -43,7 +43,7 @@ public class ComputeScheduleExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute schedule example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskMapExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskMapExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskMapExample.java index 3834394..a06299f 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskMapExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskMapExample.java @@ -34,10 +34,10 @@ import java.util.*; * calculated on reduce stage. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeTaskMapExample { /** @@ -47,7 +47,7 @@ public class ComputeTaskMapExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute task map example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskSplitExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskSplitExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskSplitExample.java index 1d3a9d3..3dd3f63 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskSplitExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/ComputeTaskSplitExample.java @@ -32,10 +32,10 @@ import java.util.*; * is calculated on reduce stage. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class ComputeTaskSplitExample { /** @@ -45,7 +45,7 @@ public class ComputeTaskSplitExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Compute task split example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/failover/ComputeFailoverExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/failover/ComputeFailoverExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/failover/ComputeFailoverExample.java index acda78e..9b87c70 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/failover/ComputeFailoverExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/failover/ComputeFailoverExample.java @@ -20,7 +20,6 @@ package org.apache.ignite.examples.computegrid.failover; import org.apache.ignite.*; import org.apache.ignite.compute.*; import org.apache.ignite.examples.*; -import org.apache.ignite.internal.util.lang.*; import org.apache.ignite.lang.*; import org.apache.ignite.resources.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/computegrid/montecarlo/CreditRiskExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/computegrid/montecarlo/CreditRiskExample.java b/examples/src/main/java/org/apache/ignite/examples/computegrid/montecarlo/CreditRiskExample.java index 28ac390..5ab69e7 100644 --- a/examples/src/main/java/org/apache/ignite/examples/computegrid/montecarlo/CreditRiskExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/computegrid/montecarlo/CreditRiskExample.java @@ -27,10 +27,10 @@ import java.util.*; * Monte-Carlo example. Demonstrates distributed credit risk calculation. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public final class CreditRiskExample { /** @@ -40,7 +40,7 @@ public final class CreditRiskExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println("Credit risk example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java index a0ee4fd..5c8d187 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java @@ -32,10 +32,10 @@ import java.util.*; * example is to provide the simplest code example of this logic. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public final class CacheAffinityExample { /** Cache name. */ @@ -51,7 +51,7 @@ public final class CacheAffinityExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache affinity example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java index 078b343..c912d47 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java @@ -30,10 +30,10 @@ import java.util.concurrent.*; * This example demonstrates some of the cache rich API capabilities. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheApiExample { /** Cache name. */ @@ -46,7 +46,7 @@ public class CacheApiExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache API example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java index c35f4de..844ea53 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java @@ -31,10 +31,10 @@ import javax.cache.event.*; * This examples demonstrates continuous query API. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheContinuousQueryExample { /** Cache name. */ @@ -47,7 +47,7 @@ public class CacheContinuousQueryExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache continuous query example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataStreamerExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataStreamerExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataStreamerExample.java index 0213928..6de1402 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataStreamerExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheDataStreamerExample.java @@ -29,10 +29,10 @@ import org.apache.ignite.examples.*; * together and properly manages load on remote nodes. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheDataStreamerExample { /** Cache name. */ @@ -53,7 +53,7 @@ public class CacheDataStreamerExample { public static void main(String[] args) throws IgniteException { ExamplesUtils.checkMinMemory(MIN_MEMORY); - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache data streamer example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java index aef5976..1c9e29e 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java @@ -30,13 +30,13 @@ import static org.apache.ignite.events.EventType.*; /** * This examples demonstrates events API. Note that ignite events are disabled by default and - * must be specifically enabled, just like in {@code examples/config/example-compute.xml} file. + * must be specifically enabled, just like in {@code examples/config/example-ignite.xml} file. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheEventsExample { /** Cache name. */ @@ -49,7 +49,7 @@ public class CacheEventsExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException, InterruptedException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache events example started."); @@ -83,7 +83,7 @@ public class CacheEventsExample { }; // Subscribe to specified cache events on all nodes that have cache running. - // Cache events are explicitly enabled in examples/config/example-compute.xml file. + // Cache events are explicitly enabled in examples/config/example-ignite.xml file. ignite.events(ignite.cluster().forCacheNodes(CACHE_NAME)).remoteListen(locLsnr, rmtLsnr, EVT_CACHE_OBJECT_PUT, EVT_CACHE_OBJECT_READ, EVT_CACHE_OBJECT_REMOVED); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java index 47b83ac..0150fc7 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java @@ -32,10 +32,10 @@ import java.util.*; * Real time popular numbers counter. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CachePopularNumbersExample { /** Cache name. */ @@ -62,7 +62,7 @@ public class CachePopularNumbersExample { public static void main(String[] args) throws IgniteException { Timer popularNumbersQryTimer = new Timer("numbers-query-worker"); - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache popular numbers example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java index 3992b5b..acb46ed 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java @@ -28,10 +28,10 @@ import java.util.*; * This example demonstrates very basic operations on cache, such as 'put' and 'get'. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CachePutGetExample { /** Cache name. */ @@ -44,7 +44,7 @@ public class CachePutGetExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { CacheConfiguration<Integer, String> cfg = new CacheConfiguration<>(); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java index 663b3c8..982c8a6 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java @@ -62,10 +62,10 @@ import java.util.*; * </ul> * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheQueryExample { /** Cache name. */ @@ -78,7 +78,7 @@ public class CacheQueryExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache query example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java index f852801..5feb0d9 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java @@ -32,10 +32,10 @@ import static org.apache.ignite.transactions.TransactionIsolation.*; * Demonstrates how to use cache transactions. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheTransactionExample { /** Cache name. */ @@ -48,7 +48,7 @@ public class CacheTransactionExample { * @throws IgniteException If example execution failed. */ public static void main(String[] args) throws IgniteException { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache transaction example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java index 0c8dd35..22e7a1d 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java @@ -44,10 +44,10 @@ import java.util.concurrent.*; * in various ways. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class CacheStarSchemaExample { /** Partitioned cache name. */ @@ -71,7 +71,7 @@ public class CacheStarSchemaExample { * @param args Command line arguments, none required. */ public static void main(String[] args) { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache star schema example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimProduct.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimProduct.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimProduct.java index 7cc7c72..46adc80 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimProduct.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimProduct.java @@ -18,7 +18,6 @@ package org.apache.ignite.examples.datagrid.starschema; import org.apache.ignite.cache.query.annotations.*; -import org.apache.ignite.cache.query.*; import org.apache.ignite.cache.*; /** http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimStore.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimStore.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimStore.java index 9838b9c..da991e8 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimStore.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/DimStore.java @@ -18,7 +18,6 @@ package org.apache.ignite.examples.datagrid.starschema; import org.apache.ignite.cache.query.annotations.*; -import org.apache.ignite.cache.query.*; import org.apache.ignite.cache.*; /** http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/FactPurchase.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/FactPurchase.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/FactPurchase.java index 909f36e..7dc46c4 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/FactPurchase.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/starschema/FactPurchase.java @@ -18,9 +18,7 @@ package org.apache.ignite.examples.datagrid.starschema; import org.apache.ignite.cache.query.annotations.*; -import org.apache.ignite.cache.query.*; import org.apache.ignite.cache.*; -import org.apache.ignite.cache.query.annotations.*; /** * Represents a purchase record. In our {@code snowflake} schema purchase http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java index ed548ad..7b04528 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java @@ -18,7 +18,6 @@ package org.apache.ignite.examples.datagrid.store.dummy; import org.apache.ignite.*; -import org.apache.ignite.cache.*; import org.apache.ignite.cache.store.*; import org.apache.ignite.examples.datagrid.store.model.*; import org.apache.ignite.lang.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcPojoPersonStore.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcPojoPersonStore.java b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcPojoPersonStore.java index a0d91c5..86f3403 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcPojoPersonStore.java +++ b/examples/src/main/java/org/apache/ignite/examples/datagrid/store/jdbc/CacheJdbcPojoPersonStore.java @@ -21,12 +21,9 @@ import org.apache.ignite.*; import org.apache.ignite.cache.store.jdbc.*; import org.apache.ignite.examples.datagrid.store.model.*; import org.apache.ignite.internal.util.typedef.internal.*; -import org.apache.ignite.lang.*; import org.h2.tools.*; -import org.jetbrains.annotations.*; import javax.cache.*; -import javax.cache.integration.*; import java.io.*; import java.sql.*; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicLongExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicLongExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicLongExample.java index bbe9aba..e83673f 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicLongExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicLongExample.java @@ -19,7 +19,6 @@ package org.apache.ignite.examples.datastructures; import org.apache.ignite.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -28,10 +27,10 @@ import java.util.*; * Demonstrates a simple usage of distributed atomic long. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public final class IgniteAtomicLongExample { /** Number of retries */ @@ -44,7 +43,7 @@ public final class IgniteAtomicLongExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Atomic long example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicReferenceExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicReferenceExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicReferenceExample.java index 65d6d4e..76c1d5e 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicReferenceExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicReferenceExample.java @@ -19,7 +19,6 @@ package org.apache.ignite.examples.datastructures; import org.apache.ignite.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -28,10 +27,10 @@ import java.util.*; * Demonstrates a simple usage of distributed atomic reference. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public final class IgniteAtomicReferenceExample { /** @@ -41,7 +40,7 @@ public final class IgniteAtomicReferenceExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Atomic reference example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicSequenceExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicSequenceExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicSequenceExample.java index de1cd90..3052da5 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicSequenceExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicSequenceExample.java @@ -19,17 +19,16 @@ package org.apache.ignite.examples.datastructures; import org.apache.ignite.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; /** * Demonstrates a simple usage of distributed atomic sequence. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public final class IgniteAtomicSequenceExample { /** Number of retries */ @@ -42,7 +41,7 @@ public final class IgniteAtomicSequenceExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache atomic sequence example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicStampedExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicStampedExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicStampedExample.java index 907ec6c..077ae89 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicStampedExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteAtomicStampedExample.java @@ -19,7 +19,6 @@ package org.apache.ignite.examples.datastructures; import org.apache.ignite.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -28,10 +27,10 @@ import java.util.*; * Demonstrates a simple usage of distributed atomic stamped. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public final class IgniteAtomicStampedExample { /** @@ -41,7 +40,7 @@ public final class IgniteAtomicStampedExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Atomic stamped example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteCountDownLatchExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteCountDownLatchExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteCountDownLatchExample.java index 899c3c1..3882a43 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteCountDownLatchExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteCountDownLatchExample.java @@ -19,7 +19,6 @@ package org.apache.ignite.examples.datastructures; import org.apache.ignite.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -28,10 +27,10 @@ import java.util.*; * Demonstrates a simple usage of distributed count down latch. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class IgniteCountDownLatchExample { /** Number of latch initial count */ @@ -43,7 +42,7 @@ public class IgniteCountDownLatchExample { * @param args Command line arguments, none required. */ public static void main(String[] args) { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Cache atomic countdown latch example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java index 549217d..a857bb0 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java @@ -21,7 +21,6 @@ import org.apache.ignite.*; import org.apache.ignite.cache.*; import org.apache.ignite.configuration.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -31,10 +30,10 @@ import java.util.*; * cache queue. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class IgniteQueueExample { /** Cache name. */ @@ -53,7 +52,7 @@ public class IgniteQueueExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Ignite queue example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java index 0d8ddac..1fd936b 100644 --- a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteSetExample.java @@ -21,7 +21,6 @@ import org.apache.ignite.*; import org.apache.ignite.cache.*; import org.apache.ignite.configuration.*; import org.apache.ignite.examples.*; -import org.apache.ignite.examples.datagrid.*; import org.apache.ignite.lang.*; import java.util.*; @@ -30,10 +29,10 @@ import java.util.*; * Ignite cache distributed set example. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will - * start node with {@code examples/config/example-compute.xml} configuration. + * start node with {@code examples/config/example-ignite.xml} configuration. */ public class IgniteSetExample { /** Cache name. */ @@ -49,7 +48,7 @@ public class IgniteSetExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Ignite set example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java b/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java index 1015ee2..dd23e14 100644 --- a/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/events/EventsExample.java @@ -31,12 +31,12 @@ import static org.apache.ignite.events.EventType.*; /** * Demonstrates event consume API that allows to register event listeners on remote nodes. * Note that ignite events are disabled by default and must be specifically enabled, - * just like in {@code examples/config/example-compute.xml} file. + * just like in {@code examples/config/example-ignite.xml} file. * <p> - * Remote nodes should always be started with configuration: {@code 'ignite.sh examples/config/example-compute.xml'}. + * Remote nodes should always be started with configuration: {@code 'ignite.sh examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start - * node with {@code examples/config/example-compute.xml} configuration. + * node with {@code examples/config/example-ignite.xml} configuration. */ public class EventsExample { /** @@ -46,7 +46,7 @@ public class EventsExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { System.out.println(); System.out.println(">>> Events API example started."); http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java index ba5fa46..a8a06fb 100644 --- a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java @@ -34,10 +34,10 @@ import java.util.concurrent.*; * To run this example you must have at least one remote node started. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public final class MessagingExample { /** Number of messages. */ @@ -53,7 +53,7 @@ public final class MessagingExample { * @throws Exception If example execution failed. */ public static void main(String[] args) throws Exception { - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2)) return; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java index b571196..1c24f77 100644 --- a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java @@ -33,10 +33,10 @@ import java.util.concurrent.*; * To run this example you must have at least one remote node started. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class MessagingPingPongExample { /** @@ -47,7 +47,7 @@ public class MessagingPingPongExample { */ public static void main(String[] args) throws Exception { // Game is played over the default ignite. - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2)) return; http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ea5231b9/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java index 9b79eea..79a64ec 100644 --- a/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java +++ b/examples/src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java @@ -31,10 +31,10 @@ import java.util.concurrent.*; * To run this example you must have at least one remote node started. * <p> * Remote nodes should always be started with special configuration file which - * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-compute.xml'}. + * enables P2P class loading: {@code 'ignite.{sh|bat} examples/config/example-ignite.xml'}. * <p> * Alternatively you can run {@link ExampleNodeStartup} in another JVM which will start node - * with {@code examples/config/example-compute.xml} configuration. + * with {@code examples/config/example-ignite.xml} configuration. */ public class MessagingPingPongListenActorExample { /** @@ -44,7 +44,7 @@ public class MessagingPingPongListenActorExample { */ public static void main(String[] args) { // Game is played over the default ignite. - try (Ignite ignite = Ignition.start("examples/config/example-compute.xml")) { + try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) { if (!ExamplesUtils.checkMinTopologySize(ignite.cluster(), 2)) return;