You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2012/01/05 20:07:28 UTC

svn commit: r1227767 - in /incubator/accumulo/branches/1.4: docs/examples/README.bloom src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java

Author: ecn
Date: Thu Jan  5 19:07:28 2012
New Revision: 1227767

URL: http://svn.apache.org/viewvc?rev=1227767&view=rev
Log:
ACCUMULO-249 turn off verbose when executing a single command; remove shell code that loads member classes: there are none

Modified:
    incubator/accumulo/branches/1.4/docs/examples/README.bloom
    incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java

Modified: incubator/accumulo/branches/1.4/docs/examples/README.bloom
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/docs/examples/README.bloom?rev=1227767&r1=1227766&r2=1227767&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/docs/examples/README.bloom (original)
+++ incubator/accumulo/branches/1.4/docs/examples/README.bloom Thu Jan  5 19:07:28 2012
@@ -44,15 +44,6 @@ initialized with the seed 7.
 Below the table is flushed:
 
     $ ./bin/accumulo shell -u username -p password -e 'flush -t bloom_test -w'
-    Shell - Accumulo Interactive Shell
-    - 
-    - version: 1.4.0-incubating-SNAPSHOT
-    - instance name: test
-    - instance id: 54e9b81f-bf36-4a66-a020-f93d98f151a6
-    - 
-    - type 'help' for a list of available commands
-    - 
-    root@test> flush -t bloom_test -w
     05 10:40:06,069 [shell.Shell] INFO : Flush of table bloom_test completed.
 
 After the flush completes, 500 random queries are done against the table.  The

Modified: incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java?rev=1227767&r1=1227766&r2=1227767&view=diff
==============================================================================
--- incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java (original)
+++ incubator/accumulo/branches/1.4/src/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java Thu Jan  5 19:07:28 2012
@@ -344,6 +344,7 @@ public class Shell {
     }
     if (cl.hasOption(execCommandOpt.getOpt())) {
       execCommand = cl.getOptionValue(execCommandOpt.getOpt());
+      verbose = false;
     }
     
     rootToken = new Token();
@@ -362,18 +363,6 @@ public class Shell {
     for (Command cmd : external) {
       commandFactory.put(cmd.getName(), cmd);
     }
-    for (Class<?> subclass : Shell.class.getClasses()) {
-      Object t;
-      try {
-        t = subclass.newInstance();
-      } catch (Exception e) {
-        continue;
-      }
-      if (t instanceof Command) {
-        Command sci = (Command) t;
-        commandFactory.put(sci.getName(), sci);
-      }
-    }
   }
   
   /**