ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-2039 minor fix.
Date Wed, 02 Dec 2015 10:10:08 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 654bd337f -> 8cd5fa053


IGNITE-2039 minor fix.


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

Branch: refs/heads/ignite-843-rc2
Commit: 8cd5fa0535b73affc837c1fb23a82553135c04c8
Parents: 654bd33
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Wed Dec 2 17:10:43 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Wed Dec 2 17:10:43 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/helpers/generator/generator-java.js         | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/8cd5fa05/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
index 3b73db4..9f5e982 100644
--- a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
+++ b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
@@ -1981,7 +1981,7 @@ $generatorJava.cluster = function (cluster, pkg, javaClass, clientNearCfg)
{
 $generatorJava.nodeStartup = function (cluster, pkg, cls, cfg, factoryCls, clientNearCfg)
{
     var res = $generatorCommon.builder();
 
-    res.importClass('org.apache.ignite.IgniteException');
+    res.importClass('org.apache.ignite.Ignite');
     res.importClass('org.apache.ignite.Ignition');
 
     if (factoryCls)
@@ -1996,17 +1996,18 @@ $generatorJava.nodeStartup = function (cluster, pkg, cls, cfg, factoryCls,
clien
     res.line(' * Start up node with specified configuration.');
     res.line(' *');
     res.line(' * @param args Command line arguments, none required.');
-    res.line(' * @throws IgniteException If failed.');
+    res.line(' * @throws Exception If failed.');
     res.line(' */');
 
-    res.startBlock('public static void main(String[] args) throws IgniteException {');
+    res.startBlock('public static void main(String[] args) throws Exception {');
 
     if (clientNearCfg) {
         res.line('Ignite ignite = Ignition.start(' + cfg + ');');
+        res.needEmptyLine = true;
 
         if ($commonUtils.isDefinedAndNotEmpty(cluster.caches)) {
             res.line('// Example of near cache creation on client node.');
-            res.line('ignite.getOrCreateNearCache("' + cluster.caches[0].name + '", ' + cls
+ '.createNearCacheConfiguration());');
+            res.line('ignite.getOrCreateNearCache("' + cluster.caches[0].name + '", ' + factoryCls
+ '.createNearCacheConfiguration());');
 
             res.needEmptyLine = true;
         }


Mime
View raw message