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

Pass one more property from Agent to JdpController

Reviewed-by: jbachorik, sla
This commit is contained in:
Dmitry Samersoff 2013-10-19 20:59:42 +04:00
parent ac0dadca7f
commit 3a6305e6c7
3 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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

View File

@ -551,6 +551,11 @@ do
esac
done
if [ "${COMPILEJAVA}" = "" ]
then
COMPILEJAVA=${TESTJAVA}
fi
if [ ${_compile} = "yes" ]
then
_compile