ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [1/4] incubator-ignite git commit: IGNITE-45 - Examples
Date Mon, 23 Mar 2015 06:22:02 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-45-330 3ea6c46e8 -> fee55c559


IGNITE-45 - Examples


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/d43409ed
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/d43409ed
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/d43409ed

Branch: refs/heads/ignite-45-330
Commit: d43409ed304163438a1d9cf809ce14cd0ef21469
Parents: 235da89
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Sun Mar 22 22:24:34 2015 -0700
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Sun Mar 22 22:24:34 2015 -0700

----------------------------------------------------------------------
 .../datagrid/CacheDataStreamerExample.java      |  3 --
 .../CacheExamplesMultiNodeSelfTest.java         | 10 -----
 .../ignite/examples/CacheExamplesSelfTest.java  | 20 ++--------
 ...heStoreLoadDataExampleMultiNodeSelfTest.java | 39 --------------------
 .../testsuites/IgniteExamplesSelfTestSuite.java |  1 -
 5 files changed, 3 insertions(+), 70 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d43409ed/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 d4bbde9..db00bab 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
@@ -63,9 +63,6 @@ public class CacheDataStreamerExample {
             cfg.setName(CACHE_NAME);
 
             try (IgniteCache<Integer, String> cache = ignite.createCache(cfg)) {
-                System.out.println();
-                System.out.println(">>> Cache clear finished.");
-
                 long start = System.currentTimeMillis();
 
                 try (IgniteDataStreamer<Integer, String> stmr = ignite.dataStreamer(CACHE_NAME))
{

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d43409ed/examples/src/test/java/org/apache/ignite/examples/CacheExamplesMultiNodeSelfTest.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesMultiNodeSelfTest.java
b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesMultiNodeSelfTest.java
index 27cea4d..b7734e6 100644
--- a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesMultiNodeSelfTest.java
+++ b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesMultiNodeSelfTest.java
@@ -35,14 +35,4 @@ public class CacheExamplesMultiNodeSelfTest extends CacheExamplesSelfTest
{
     @Override protected long getTestTimeout() {
         return 10 * 60 * 1000;
     }
-
-    /** {@inheritDoc} */
-    @Override public void testCacheStoreExample() throws Exception {
-        // No-op.
-    }
-
-    /** {@inheritDoc} */
-    @Override public void testCacheStoreLoaderExample() throws Exception {
-        // No-op.
-    }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d43409ed/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
index 14af44f..526d2cc 100644
--- a/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
+++ b/examples/src/test/java/org/apache/ignite/examples/CacheExamplesSelfTest.java
@@ -19,7 +19,7 @@ package org.apache.ignite.examples;
 
 import org.apache.ignite.examples.datagrid.*;
 import org.apache.ignite.examples.datagrid.starschema.*;
-import org.apache.ignite.examples.datagrid.store.*;
+import org.apache.ignite.examples.datagrid.store.dummy.*;
 import org.apache.ignite.examples.datastructures.*;
 import org.apache.ignite.testframework.junits.common.*;
 
@@ -86,8 +86,8 @@ public class CacheExamplesSelfTest extends GridAbstractExamplesTest {
     /**
      * @throws Exception If failed.
      */
-    public void testCacheStoreExample() throws Exception {
-        CacheStoreExample.main(EMPTY_ARGS);
+    public void testCacheDummyStoreExample() throws Exception {
+        CacheDummyStoreExample.main(EMPTY_ARGS);
     }
 
     /**
@@ -121,20 +121,6 @@ public class CacheExamplesSelfTest extends GridAbstractExamplesTest {
     /**
      * @throws Exception If failed.
      */
-    public void testPopularNumbersRealTimeExample() throws Exception {
-        CachePopularNumbersExample.main(EMPTY_ARGS);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testCacheStoreLoaderExample() throws Exception {
-        CacheStoreLoadDataExample.main(EMPTY_ARGS);
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
     public void testCachePutGetExample() throws Exception {
         CachePutGetExample.main(EMPTY_ARGS);
     }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d43409ed/examples/src/test/java/org/apache/ignite/examples/CacheStoreLoadDataExampleMultiNodeSelfTest.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java/org/apache/ignite/examples/CacheStoreLoadDataExampleMultiNodeSelfTest.java
b/examples/src/test/java/org/apache/ignite/examples/CacheStoreLoadDataExampleMultiNodeSelfTest.java
deleted file mode 100644
index fd3862a..0000000
--- a/examples/src/test/java/org/apache/ignite/examples/CacheStoreLoadDataExampleMultiNodeSelfTest.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.examples;
-
-import org.apache.ignite.examples.datagrid.store.*;
-import org.apache.ignite.testframework.junits.common.*;
-
-/**
- *
- */
-public class CacheStoreLoadDataExampleMultiNodeSelfTest extends GridAbstractExamplesTest
{
-    /** {@inheritDoc} */
-    @Override protected void beforeTest() throws Exception {
-        for (int i = 0; i < RMT_NODES_CNT; i++)
-            startGrid("node-" + i, "examples/config/example-ignite.xml");
-    }
-
-    /**
-     * @throws Exception If failed.
-     */
-    public void testCacheStoreLoaderExample() throws Exception {
-        CacheStoreLoadDataExample.main(EMPTY_ARGS);
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d43409ed/examples/src/test/java/org/apache/ignite/testsuites/IgniteExamplesSelfTestSuite.java
----------------------------------------------------------------------
diff --git a/examples/src/test/java/org/apache/ignite/testsuites/IgniteExamplesSelfTestSuite.java
b/examples/src/test/java/org/apache/ignite/testsuites/IgniteExamplesSelfTestSuite.java
index 58a104e..3ede10f 100644
--- a/examples/src/test/java/org/apache/ignite/testsuites/IgniteExamplesSelfTestSuite.java
+++ b/examples/src/test/java/org/apache/ignite/testsuites/IgniteExamplesSelfTestSuite.java
@@ -58,7 +58,6 @@ public class IgniteExamplesSelfTestSuite extends TestSuite {
 
         // Multi-node.
         suite.addTest(new TestSuite(CacheExamplesMultiNodeSelfTest.class));
-        suite.addTest(new TestSuite(CacheStoreLoadDataExampleMultiNodeSelfTest.class));
         suite.addTest(new TestSuite(BasicExamplesMultiNodeSelfTest.class));
         suite.addTest(new TestSuite(ContinuationExamplesMultiNodeSelfTest.class));
         suite.addTest(new TestSuite(ContinuousMapperExamplesMultiNodeSelfTest.class));


Mime
View raw message