提交 b20b08c3 编写于 作者: D dsamersoff

8024071: In ManagementAgent.start it should be possible to set the jdp.name parameter.

Summary: Pass one more property from Agent to JdpController
Reviewed-by: jbachorik, sla
上级 c8eee0d5
......@@ -323,7 +323,7 @@ public class Agent {
: String.format(
"service:jmx:rmi:///jndi/rmi://%s:%s/jmxrmi", hostname, jmxremotePort);
String instanceName = System.getProperty("com.sun.management.jdp.name");
String instanceName = props.getProperty("com.sun.management.jdp.name");
try{
JdpController.startDiscoveryService(address, port, instanceName, jmxUrlStr);
......
......@@ -213,6 +213,7 @@ test_03(){
jdp.port=${_port} \
jdp.address=${_ip} \
jdp.pause=5 \
jdp.name=jcmdtest \
jmxremote.port=${_jmxport} \
jmxremote.authenticate=false \
jmxremote.ssl=false
......
......@@ -551,6 +551,11 @@ do
esac
done
if [ "${COMPILEJAVA}" = "" ]
then
COMPILEJAVA=${TESTJAVA}
fi
if [ ${_compile} = "yes" ]
then
_compile
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册