changeset 7920:767f8c68255a

6425769: Allow specifying an address to bind JMX remote connector Reviewed-by: jbachorik, dfuchs
author sgehwolf
date Fri, 18 Dec 2015 08:55:47 +0100
parents 2b2511bd3cc8
children 55c8792fe214 1246f293a0e8
files src/share/vm/services/diagnosticCommand.cpp src/share/vm/services/diagnosticCommand.hpp
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/diagnosticCommand.cpp	Fri Feb 12 19:11:29 2016 +0000
+++ b/src/share/vm/services/diagnosticCommand.cpp	Fri Dec 18 08:55:47 2015 +0100
@@ -437,6 +437,10 @@
   ("config.file",
    "set com.sun.management.config.file", "STRING", false),
 
+  _jmxremote_host
+  ("jmxremote.host",
+   "set com.sun.management.jmxremote.host", "STRING", false),
+
   _jmxremote_port
   ("jmxremote.port",
    "set com.sun.management.jmxremote.port", "STRING", false),
@@ -516,6 +520,7 @@
 
   {
     _dcmdparser.add_dcmd_option(&_config_file);
+    _dcmdparser.add_dcmd_option(&_jmxremote_host);
     _dcmdparser.add_dcmd_option(&_jmxremote_port);
     _dcmdparser.add_dcmd_option(&_jmxremote_rmi_port);
     _dcmdparser.add_dcmd_option(&_jmxremote_ssl);
@@ -586,6 +591,7 @@
     }
 
     PUT_OPTION(_config_file);
+    PUT_OPTION(_jmxremote_host);
     PUT_OPTION(_jmxremote_port);
     PUT_OPTION(_jmxremote_rmi_port);
     PUT_OPTION(_jmxremote_ssl);
--- a/src/share/vm/services/diagnosticCommand.hpp	Fri Feb 12 19:11:29 2016 +0000
+++ b/src/share/vm/services/diagnosticCommand.hpp	Fri Dec 18 08:55:47 2015 +0100
@@ -280,6 +280,7 @@
   // com.sun.management is omitted
 
   DCmdArgument<char *> _config_file;
+  DCmdArgument<char *> _jmxremote_host;
   DCmdArgument<char *> _jmxremote_port;
   DCmdArgument<char *> _jmxremote_rmi_port;
   DCmdArgument<char *> _jmxremote_ssl;