activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: renaming sync parameter to auto tune journal on the CLI
Date Tue, 04 Aug 2015 19:46:05 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master bff0886b0 -> 38fb9300c


renaming sync parameter to auto tune journal on the CLI


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/38fb9300
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/38fb9300
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/38fb9300

Branch: refs/heads/master
Commit: 38fb9300c7b952e89ea062d7c35b8a6d5b39e310
Parents: bff0886
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Tue Aug 4 15:22:47 2015 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Tue Aug 4 15:22:47 2015 -0400

----------------------------------------------------------------------
 .../apache/activemq/artemis/cli/commands/Create.java    | 12 ++++++------
 .../activemq/artemis/maven/ActiveMQCreatePlugin.java    |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/38fb9300/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
index 2fdf5f2..90c6d2b 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
@@ -146,8 +146,8 @@ public class Create extends InputAbstract
    @Option(name = "--require-login", description = "This will configure security to require
user / password, opposite of --allow-anonymous")
    Boolean requireLogin = null;
 
-   @Option(name = "--no-sync-test", description = "Disable the calculation for the buffer")
-   boolean noSyncTest;
+   @Option(name = "--no-autotune", description = "Disable auto tuning on the journal.")
+   boolean noAutoTune;
 
    @Option(name = "--user", description = "The username (Default: input)")
    String user;
@@ -650,7 +650,7 @@ public class Create extends InputAbstract
          filters.put("${bootstrap-web-settings}", applyFilters(readTextFile(ETC_BOOTSTRAP_WEB_SETTINGS_TXT),
filters));
       }
 
-      performSyncCalc(filters, aio, dataFolder);
+      performAutoTune(filters, aio, dataFolder);
 
       write(ETC_BOOTSTRAP_XML, filters, false);
       write(ETC_BROKER_XML, filters, false);
@@ -706,9 +706,9 @@ public class Create extends InputAbstract
       return null;
    }
 
-   private void performSyncCalc(HashMap<String, String> filters, boolean aio, File
dataFolder)
+   private void performAutoTune(HashMap<String, String> filters, boolean aio, File
dataFolder)
    {
-      if (noSyncTest)
+      if (noAutoTune)
       {
          filters.put("${journal-buffer.settings}", "");
       }
@@ -718,7 +718,7 @@ public class Create extends InputAbstract
          {
             int writes = 250;
             System.out.println("");
-            System.out.println("Performing write sync calculation...");
+            System.out.println("Auto tuning journal ...");
 
             long time = SyncCalculation.syncTest(dataFolder, 4096, writes, 5, verbose, aio);
             long nanoseconds = SyncCalculation.toNanos(time, writes);

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/38fb9300/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ActiveMQCreatePlugin.java
----------------------------------------------------------------------
diff --git a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ActiveMQCreatePlugin.java
b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ActiveMQCreatePlugin.java
index bae871e..405b2b1 100644
--- a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ActiveMQCreatePlugin.java
+++ b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ActiveMQCreatePlugin.java
@@ -250,7 +250,7 @@ public class ActiveMQCreatePlugin extends AbstractMojo
          add(listCommands, "--failover-on-shutdown");
       }
 
-      add(listCommands, "--no-sync-test");
+      add(listCommands, "--no-autotune");
       add(listCommands, "--verbose");
 
       add(listCommands, instance.getAbsolutePath());


Mime
View raw message