mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-17 14:38:55 +00:00
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:
parent
ac0dadca7f
commit
3a6305e6c7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user