ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [12/50] [abbrv] incubator-ignite git commit: # sprint-2 - example fix.
Date Wed, 25 Mar 2015 12:11:53 GMT
# sprint-2 - example fix.


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

Branch: refs/heads/ignite-release-test-no-mod
Commit: 740d4be2e3cec587c3a98d03a6658e918ed2d034
Parents: b370720
Author: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Authored: Tue Mar 24 18:18:27 2015 -0700
Committer: Dmitiry Setrakyan <dsetrakyan@gridgain.com>
Committed: Tue Mar 24 18:18:27 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/ignite/schema/CacheConfig.java    | 2 +-
 .../src/main/java/org/apache/ignite/schema/Demo.java           | 2 +-
 .../src/main/java/org/apache/ignite/schema/DemoNode.java       | 2 +-
 .../src/main/java/org/apache/ignite/schema/Person.java         | 6 +++---
 .../src/main/java/org/apache/ignite/schema/PersonKey.java      | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/740d4be2/examples/schema-import/src/main/java/org/apache/ignite/schema/CacheConfig.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/CacheConfig.java
b/examples/schema-import/src/main/java/org/apache/ignite/schema/CacheConfig.java
index cd758ee..9062d24 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/CacheConfig.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/CacheConfig.java
@@ -33,6 +33,6 @@ public class CacheConfig {
      * @param storeFactory Cache store factory.
      */
     public static <K, V> CacheConfiguration<K, V> cache(String name, Factory<CacheStore<K,
V>> storeFactory) {
-        throw new IllegalStateException("CacheConfig should be generated by Ignite Schema
Import Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/740d4be2/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java b/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
index d822d6f..8b68cbc 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/Demo.java
@@ -59,7 +59,7 @@ public class Demo {
         System.out.println(">>> Start demo...");
 
         // Start Ignite node.
-        try (Ignite ignite = Ignition.start()) {
+        try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
             // Configure cache store.
             CacheConfiguration<PersonKey, Person> cfg =
                 CacheConfig.cache("PersonCache", new H2DemoStoreFactory<PersonKey, Person>());

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/740d4be2/examples/schema-import/src/main/java/org/apache/ignite/schema/DemoNode.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/DemoNode.java b/examples/schema-import/src/main/java/org/apache/ignite/schema/DemoNode.java
index 24a5486..7b8f832 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/DemoNode.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/DemoNode.java
@@ -32,6 +32,6 @@ public class DemoNode {
     public static void main(String[] args) throws IgniteException {
         System.out.println(">>> Start demo node...");
 
-        Ignition.start();
+        Ignition.start("examples/config/example-ignite.xml");
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/740d4be2/examples/schema-import/src/main/java/org/apache/ignite/schema/Person.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/Person.java b/examples/schema-import/src/main/java/org/apache/ignite/schema/Person.java
index 78219b4..36f287f 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/Person.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/Person.java
@@ -25,21 +25,21 @@ public class Person {
      * Empty constructor.
      */
     public Person() {
-        throw new IllegalStateException("Person should be generated by Ignite Schema Import
Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 
     /**
      * @return Salary.
      */
     public double getSalary() {
-        throw new IllegalStateException("Person should be generated by Ignite Schema Import
Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 
     /**
      * @param salary Salary.
      */
     public void setSalary(double salary) {
-        throw new IllegalStateException("Person should be generated by Ignite Schema Import
Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/740d4be2/examples/schema-import/src/main/java/org/apache/ignite/schema/PersonKey.java
----------------------------------------------------------------------
diff --git a/examples/schema-import/src/main/java/org/apache/ignite/schema/PersonKey.java
b/examples/schema-import/src/main/java/org/apache/ignite/schema/PersonKey.java
index 4898c5e..16386d3 100644
--- a/examples/schema-import/src/main/java/org/apache/ignite/schema/PersonKey.java
+++ b/examples/schema-import/src/main/java/org/apache/ignite/schema/PersonKey.java
@@ -25,14 +25,14 @@ public class PersonKey {
      * Full constructor.
      */
     public PersonKey(int id) {
-        throw new IllegalStateException("PersonKey should be generated by Ignite Schema Import
Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 
     /**
      * @return Person ID.
      */
     public int getId() {
-        throw new IllegalStateException("PersonKey should be generated by Ignite Schema Import
Utility");
+        throw new IllegalStateException("Please run Ignite Schema Import Utility as described
in README.txt");
     }
 }
 


Mime
View raw message