ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [08/23] incubator-ignite git commit: # IGNITE-298 Review.
Date Fri, 27 Feb 2015 13:34:13 GMT
# IGNITE-298 Review.


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

Branch: refs/heads/ignite-gg-fix-deploy
Commit: ae37301b966d9993367333fc0ebe344dc9e659de
Parents: 8469db7
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Feb 24 17:08:28 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Feb 24 17:08:28 2015 +0700

----------------------------------------------------------------------
 .../commands/config/VisorConfigurationCommand.scala   | 14 ++++++++++++++
 .../main/scala/org/apache/ignite/visor/visor.scala    |  2 +-
 2 files changed, 15 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae37301b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/config/VisorConfigurationCommand.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/config/VisorConfigurationCommand.scala
b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/config/VisorConfigurationCommand.scala
index 4934b99..64e230c 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/config/VisorConfigurationCommand.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/config/VisorConfigurationCommand.scala
@@ -236,6 +236,20 @@ class VisorConfigurationCommand {
             cmnT += ("Transaction Log Size", trn.getPessimisticTxLogSize)
             cmnT += ("Transaction Serializable Enabled", bool2Str(trn.txSerializableEnabled()))
 
+            val query = cfg.queryConfiguration()
+
+            if (query != null) {
+                cmnT += ("Query Function Classes", arr2Str(query.indexCustomFunctionClasses()))
+                cmnT += ("Query Path To SQL Schema Objects", arr2Str(query.searchPath()))
+                cmnT += ("Query Initial Script Path", safe(query.initialScriptPath()))
+                cmnT += ("Query Off-Heap Storage Memory", query.maxOffHeapMemory())
+                cmnT += ("Query Execution Time Threshold", query.longQueryExecutionTimeout())
+                cmnT += ("Query Long Queries Explaining", bool2Str(query.longQryExplain()))
+                cmnT += ("Query Serializer", bool2Str(query.useOptimizedSerializer()))
+            }
+            else
+                cmnT += ("Query Configuration", NA)
+
             cmnT.render()
 
             println("\nMetrics:")

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ae37301b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
----------------------------------------------------------------------
diff --git a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
index 8e518aa..b9b5dbc 100644
--- a/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
+++ b/modules/visor-console/src/main/scala/org/apache/ignite/visor/visor.scala
@@ -1006,7 +1006,7 @@ object visor extends VisorTag {
      * @param dflt Value to return if `arr` is `null` or empty.
      * @return String.
      */
-    def arr2Str[T: ClassTag](arr: Array[T], dflt: Any = ""): String = {
+    def arr2Str[T: ClassTag](arr: Array[T], dflt: Any = NA): String = {
         if (arr != null && arr.length > 0) U.compact(arr.mkString(", ")) else
dflt.toString
     }
 


Mime
View raw message