6425769: Allow specifying an address to bind JMX remote connector

Reviewed-by: jbachorik, dfuchs
This commit is contained in:
Severin Gehwolf 2015-12-18 08:55:47 +01:00
parent 2c277c0986
commit adeb2daf12
2 changed files with 7 additions and 0 deletions
hotspot/src/share/vm/services

@ -564,6 +564,10 @@ JMXStartRemoteDCmd::JMXStartRemoteDCmd(outputStream *output, bool heap_allocated
("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),
@ -643,6 +647,7 @@ JMXStartRemoteDCmd::JMXStartRemoteDCmd(outputStream *output, bool heap_allocated
{
_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);
@ -718,6 +723,7 @@ void JMXStartRemoteDCmd::execute(DCmdSource source, TRAPS) {
PUT_OPTION(_config_file);
PUT_OPTION(_jmxremote_host);
PUT_OPTION(_jmxremote_port);
PUT_OPTION(_jmxremote_rmi_port);
PUT_OPTION(_jmxremote_ssl);

@ -446,6 +446,7 @@ class JMXStartRemoteDCmd : public DCmdWithParser {
// 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;