Added basic request mapping navigation in live hover

This commit is contained in:
nsingh
2017-10-11 17:35:29 -07:00
parent 125a6cc6dd
commit ee069226f9
3 changed files with 149 additions and 7 deletions

View File

@@ -316,4 +316,17 @@ public class SpringBootApp {
return null;
}
public String getHost() throws Exception {
String jmxConnect = this.vm.startLocalManagementAgent();
JMXConnector jmxConnector = null;
try {
JMXServiceURL serviceUrl = new JMXServiceURL(jmxConnect);
return serviceUrl.getHost();
}
finally {
if (jmxConnector != null) jmxConnector.close();
}
}
}