You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Irina Vasilinets (JIRA)" <ji...@apache.org> on 2015/02/04 10:38:37 UTC

[jira] [Closed] (IGNITE-156) Java/Scala examples are still point on GridGain

     [ https://issues.apache.org/jira/browse/IGNITE-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Irina Vasilinets closed IGNITE-156.
-----------------------------------

> Java/Scala examples are still point on GridGain
> -----------------------------------------------
>
>                 Key: IGNITE-156
>                 URL: https://issues.apache.org/jira/browse/IGNITE-156
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: sprint-1
>            Reporter: Sergey Kozlov
>            Assignee: Irina Vasilinets
>             Fix For: sprint-1
>
>
> Comments in java/scala code and configuration files are still point on GridGain
> {noformat}
> ./config/example-compute.xml:52:                        GridGain provides several options for automatic discovery that can be used
> ./config/example-compute.xml:54:                        to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery
> ./config/hibernate/example-hibernate-L2-cache.xml:44:        <!-- Specify GridGain as L2 cache provider. -->
> ./config/example-cache.xml:21:    GridGain Spring configuration file to startup grid cache.
> ./config/example-cache.xml:23:    When starting a standalone GridGain node, you need to execute the following command:
> ./config/example-cache.xml:26:    When starting GridGain from Java IDE, pass path to this file to GridGain:
> ./config/example-cache.xml:27:    GridGain.start("examples/config/example-cache.xml");
> ./config/example-cache.xml:109:                        GridGain provides several options for automatic discovery that can be used
> ./config/example-cache.xml:111:                        to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery
> ./config/filesystem/example-ggfs.xml:21:    GridGain Spring configuration file to startup grid cache.
> ./config/filesystem/example-ggfs.xml:23:    When starting a standalone GridGain node, you need to execute the following command:
> ./config/filesystem/example-ggfs.xml:26:    When starting GridGain from Java IDE, pass path to this file into GridGain:
> ./config/filesystem/example-ggfs.xml:27:    GridGain.start("examples/config/filesystem/example-ggfs.xml");
> ./config/filesystem/example-ggfs.xml:84:                        GridGain API.
> ./config/filesystem/example-ggfs.xml:147:                        GridGain provides several options for automatic discovery that can be used
> ./config/filesystem/example-ggfs.xml:149:                        to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery
> ./config/filesystem/core-site.xml:22:    Example configuration of the Hadoop FS driver over GridGain FS API.
> ./config/example-streamer.xml:21:    GridGain Spring configuration file to startup grid with streamers.
> ./config/example-streamer.xml:23:    When starting a standalone GridGain node, you need to execute the following command:
> ./config/example-streamer.xml:27:    gridgain-examples.jar by running "mvn package" in {GRIDGAIN_HOME}/examples folder.
> ./config/example-streamer.xml:28:    After that gridgain-examples.jar will be generated by Maven in
> ./config/example-streamer.xml:31:    When starting GridGain from Java IDE, pass path to this file into GridGain:
> ./config/example-streamer.xml:32:    GridGain.start("examples/config/example-streamer.xml");
> ./config/example-streamer.xml:91:                        <bean class="org.gridgain.grid.streamer.router.GridStreamerLocalEventRouter"/>
> ./config/example-streamer.xml:275:                        GridGain provides several options for automatic discovery that can be used
> ./config/example-streamer.xml:277:                        to our documentation: http://doc.gridgain.org/latest/Automatic+Node+Discovery
> ./config/servlet/WEB-INF/web.xml:21:    Example web.xml to startup GridGain from Servlet container, like Tomcat.
> ./config/servlet/readme.txt:8:http://doc.gridgain.org/latest/Web+Sessions+Caching
> ./rest/memcache-rest-example.php:22: * This example shows how to use PHP Memcache client for manipulating GridGain cache.
> ./rest/memcache-rest-example.php:28: * start up an instance of GridGain with cache enabled as follows:
> ./rest/http-rest-example.php:22: * To execute this script simply start up an instance of GridGain with cache enabled.
> ./rest/http-rest-example.php:42:$URL = 'http://localhost:8080/gridgain?';
> ./rest/http-rest-example.php:98:        die('Nothing was returned. Do you have a connection to GridGain Jetty server?');
> ./rest/http-rest-example.php:100:    echo "Response received from GridGain: $response\n\n";
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala:79:        // Gets last names of all 'GridGain' employees.
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala:80:        print("Last names of all 'GridGain' employees: ",
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala:84:                    "and Organization.name = 'GridGain'",
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheQueryExample.scala:123:        val org1 = Organization("GridGain")
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCachePopularNumbersExample.scala:36: * start GridGain node with `examples/config/example-cache.xml` configuration.
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarTaskExample.scala:30: * grid enabling gives you all the advanced features of GridGain such as custom topology
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarSnowflakeSchemaExample.scala:36: * other objects that continuously come into the system and may change frequently. In GridGain
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala:83:                    new JLabel("GridGain JVM cloud started."),
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarJvmCloudExample.scala:87:                "GridGain",
> ./src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample1.scala:30: * Example of how to collocate computations and data in GridGain using
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java:41: * {@code gridgain-examples.jar} by running {@code mvn package} in
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java:42: * {@code GRIDGAIN_HOME/examples} folder. After that {@code gridgain-examples.jar}
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPopularNumbersExample.java:45: * Alternatively you can run {@link StreamingNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java:58: * {@code gridgain-examples.jar} by running {@code mvn package} in
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java:59: * {@code GRIDGAIN_HOME/examples} folder. After that {@code gridgain-examples.jar}
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingCheckInExample.java:62: * Alternatively you can run {@link StreamingNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java:52: * {@code gridgain-examples.jar} by running {@code mvn package} in
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java:53: * {@code GRIDGAIN_HOME/examples} folder. After that {@code gridgain-examples.jar}
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingPriceBarsExample.java:56: * Alternatively you can run {@link StreamingNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingRunningAverageExample.java:38: * {@code gridgain-examples.jar} by running {@code mvn package} in
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingRunningAverageExample.java:39: * {@code GRIDGAIN_HOME/examples} folder. After that {@code gridgain-examples.jar}
> ./src/main/java/org/apache/ignite/examples/streaming/StreamingRunningAverageExample.java:42: * Alternatively you can run {@link StreamingNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/events/EventsExample.java:39: * GridGain node with {@code examples/config/example-compute.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/services/ServicesExample.java:29: * Example that demonstrates how to deploy distributed services in GridGain.
> ./src/main/java/org/apache/ignite/examples/services/ServicesExample.java:34: * which will start GridGain node with {@code examples/config/example-compute.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheDataLoaderExample.java:33: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java:34: * other objects that continuously come into the system and may change frequently. In GridGain
> ./src/main/java/org/apache/ignite/examples/datagrid/starschema/CacheStarSchemaExample.java:48: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/store/hibernate/hibernate.cfg.xml:42:        <mapping resource="org/gridgain/examples/datagrid/store/hibernate/Person.hbm.xml"/>
> ./src/main/java/org/apache/ignite/examples/datagrid/store/dummy/CacheDummyPersonStore.java:89:            // GridGain will automatically discard entries that don't belong on this node,
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:65: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:151:        print("Following people are 'GridGain' employees: ", qry.execute("GridGain").get());
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:184:        // Calculate average of salary of all persons in GridGain.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:208:            }, "GridGain").get();
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:221:        print("Average salary for 'GridGain' employees: " + avg);
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:249:        // Query all nodes for names of all GridGain employees.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:250:        print("Names of all 'GridGain' employees: " + qry.execute(trans, "GridGain").get());
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheQueryExample.java:313:        Organization org1 = new Organization("GridGain");
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:32: * This example demonstrates the use of GridGain In-Memory Data Grid as a Hibernate
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:43: * The example launches GridGain node in the same JVM and registers it in
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:46: * Hibernate SQL output, L2 cache statistics output, and GridGain cache metrics
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:52: * stored in L2 cache (which is GridGain In-Memory Data Grid in fact), which can
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:86:        // Start the GridGain node, run the example, and stop the node when finished.
> ./src/main/java/org/apache/ignite/examples/datagrid/hibernate/HibernateL2CacheExample.java:124:            // Output L2 cache and GridGain cache stats. You may notice that
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheTransactionExample.java:37: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheEventsExample.java:37: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CachePopularNumbersExample.java:36: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CachePutGetExample.java:32: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheApiExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicReferenceExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicStampedExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheCountDownLatchExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicLongExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheSetExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheQueueExample.java:35: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/datastructures/CacheAtomicSequenceExample.java:34: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java:36: * start GridGain node with {@code examples/config/example-cache.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeProjectionExample.java:31: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeCallableExample.java:36: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java:27: * Simple example to demonstrate usage of grid-enabled executor service provided by GridGain.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeExecutorServiceExample.java:32: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeContinuousMapperExample.java:45: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeContinuousMapperExample.java:72:     * Note that annotation {@link org.apache.ignite.compute.ComputeTaskNoResultCache} is optional and tells GridGain
> ./src/main/java/org/apache/ignite/examples/compute/ComputeScheduleExample.java:35: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeRunnableExample.java:33: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java:27: * Demonstrates a simple use of GridGain grid with reduce closure.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java:35: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeClosureExample.java:62:                // Job parameters. GridGain will create as many jobs as there are parameters.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeFibonacciContinuationExample.java:33: * This example demonstrates how to use continuation feature of GridGain by
> ./src/main/java/org/apache/ignite/examples/compute/ComputeFibonacciContinuationExample.java:42: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeReducerExample.java:28: * Demonstrates a simple use of GridGain grid with reduce closure.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeReducerExample.java:36: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeReducerExample.java:62:                // Job parameters. GridGain will create as many jobs as there are parameters.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeBroadcastExample.java:33: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/failover/ComputeFailoverExample.java:30: * Demonstrates the usage of checkpoints in GridGain.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeTaskMapExample.java:29: * Demonstrates a simple use of GridGain grid with
> ./src/main/java/org/apache/ignite/examples/compute/ComputeTaskMapExample.java:39: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/ComputeTaskSplitExample.java:28: * Demonstrates a simple use of GridGain grid with {@link org.apache.ignite.compute.ComputeTaskSplitAdapter}.
> ./src/main/java/org/apache/ignite/examples/compute/ComputeTaskSplitExample.java:37: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/montecarlo/CreditRiskExample.java:32: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/compute/montecarlo/CreditRiskExample.java:137:        // GridGain comes with convenient Spring-compatible benchmark that can be
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsExample.java:28: * Example that shows usage of {@link org.apache.ignite.IgniteFs} API. It starts a GridGain node with {@code GGFS}
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsExample.java:36: * GridGain node with {@code examples/config/filesystem/example-ggfs.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsExample.java:52:            // Get an instance of GridGain File System.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsMapReduceExample.java:37: * GridGain node with {@code examples/config/filesystem/example-ggfs.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsMapReduceExample.java:63:                // Get an instance of GridGain File System.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsMapReduceExample.java:90:     * Write file to the GridGain file system.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsMapReduceExample.java:92:     * @param fs GridGain file system.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsMapReduceExample.java:93:     * @param fsPath GridGain file system path.
> ./src/main/java/org/apache/ignite/examples/ggfs/GgfsNodeStartup.java:24: * You can also start a stand-alone GridGain instance by passing the path
> ./src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongExample.java:38: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/messaging/MessagingPingPongListenActorExample.java:36: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/messaging/MessagingExample.java:39: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:30: * This example shows how to use Memcache client for manipulating GridGain cache.
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:32: * GridGain implements Memcache binary protocol and it is available if
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:63:            // GridGain API and Memcache binary protocol.
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:64:            System.out.println(">>> Getting value for 'strKey' using GridGain cache API: " + cache.get("strKey"));
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:79:            // GridGain API and Memcache binary protocol.
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:80:            System.out.println(">>> Getting value for 'intKey' using GridGain cache API: " + cache.get("intKey"));
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:97:            // Increment atomic long using GridGain API and check that value is correct.
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:104:            // Decrement atomic long using GridGain API and check that value is correct.
> ./src/main/java/org/apache/ignite/examples/misc/client/memcache/MemcacheRestExample.java:114:     * Creates Memcache client that uses binary protocol and connects to GridGain.
> ./src/main/java/org/apache/ignite/examples/misc/deployment/DeploymentExample.java:46: * start GridGain node with {@code examples/config/example-compute.xml} configuration.
> ./src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java:27: * Demonstrates a simple use of GridGain grid configured with Spring.
> ./src/main/java/org/apache/ignite/examples/misc/springbean/SpringBeanExample.java:41: * Alternatively you can run {@link ComputeNodeStartup} in another JVM which will start GridGain node
> ./src/main/java/org/apache/ignite/examples/misc/lifecycle/LifecycleExample.java:29: * to be able to hook into GridGain lifecycle. The {@link LifecycleExampleBean} bean
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)