activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [3/5] activemq-artemis git commit: ARTEMIS-533 change HTTP port from CLI
Date Mon, 23 May 2016 22:26:36 GMT
ARTEMIS-533 change HTTP port from 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/6993aa9d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/6993aa9d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/6993aa9d

Branch: refs/heads/master
Commit: 6993aa9d844801b90fa7145d9d393a75f970b9d9
Parents: 316845c
Author: jbertram <jbertram@apache.org>
Authored: Mon May 23 10:03:14 2016 -0500
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon May 23 18:26:21 2016 -0400

----------------------------------------------------------------------
 .../java/org/apache/activemq/artemis/cli/commands/Create.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6993aa9d/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 3162bb4..84587c0 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
@@ -99,6 +99,9 @@ public class Create extends InputAbstract {
    @Option(name = "--default-port", description = "The port number to use for the main 'artemis'
acceptor (Default: 61616)")
    int defaultPort = DEFAULT_PORT;
 
+   @Option(name = "--http-port", description = "The port number to use for embedded web server
(Default: 8161)")
+   int httpPort = HTTP_PORT;
+
    @Option(name = "--name", description = "The name of the broker (Default: same as host)")
    String name;
 
@@ -524,7 +527,7 @@ public class Create extends InputAbstract {
       filters.put("${stomp.port}", String.valueOf(STOMP_PORT + portOffset));
       filters.put("${hq.port}", String.valueOf(HQ_PORT + portOffset));
       filters.put("${mqtt.port}", String.valueOf(MQTT_PORT + portOffset));
-      filters.put("${http.port}", String.valueOf(HTTP_PORT + portOffset));
+      filters.put("${http.port}", String.valueOf(httpPort + portOffset));
       filters.put("${data.dir}", data);
       filters.put("${max-hops}", String.valueOf(maxHops));
 


Mime
View raw message