git-svn-id: http://code.alibabatech.com/svn/druid/trunk@252 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-03 01:40:35 +00:00
parent d924f2d56d
commit 90d4d1508e
2 changed files with 56 additions and 14 deletions
@@ -166,7 +166,7 @@ public class DruidPanel extends JPanel {
NodeInfo dataSourceNodeInfo = new NodeInfo(conn, statInstance, NodeType.DataSource, dataSourceInfo, dataSourceInfo.getName());
DefaultMutableTreeNode dataSourceNode = new DefaultMutableTreeNode(dataSourceNodeInfo, true);
NodeInfo connectionsNodeInfo = new NodeInfo(conn, statInstance, NodeType.Connections, dataSourceInfo, "Connections");
DefaultMutableTreeNode connections = new DefaultMutableTreeNode(connectionsNodeInfo, true);
{
@@ -198,8 +198,8 @@ public class DruidPanel extends JPanel {
frame.pack();
frame.setSize(1024, 768);
final String urlPath = "/jndi/rmi://192.168.1.103:9005/jmxrmi";
// final String urlPath = "/jndi/rmi://10.20.138.25:9006/jmxrmi";
// final String urlPath = "/jndi/rmi://192.168.1.103:9005/jmxrmi";
final String urlPath = "/jndi/rmi://10.20.138.25:9006/jmxrmi";
JMXServiceURL jmxUrl = new JMXServiceURL("rmi", "", 0, urlPath);
JMXConnector connector = JMXConnectorFactory.connect(jmxUrl);