git-svn-id: http://code.alibabatech.com/svn/druid/trunk@234 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-02 01:48:57 +00:00
parent 65f2330924
commit 838c4937f6
2 changed files with 18 additions and 8 deletions
@@ -1,7 +1,7 @@
package com.alibaba.druid.jconsole;
import javax.management.MBeanServerConnection;
import javax.management.ObjectName;
import javax.management.ObjectInstance;
import javax.swing.JPanel;
public class ConnectionsPanel extends JPanel {
@@ -9,20 +9,26 @@ public class ConnectionsPanel extends JPanel {
private static final long serialVersionUID = 1L;
private MBeanServerConnection connection;
private ObjectName objectName;
private ObjectInstance objectInstance;
private DataSourceInfo dataSourceInfo;
public ConnectionsPanel(MBeanServerConnection connection, ObjectName objectName){
public ConnectionsPanel(MBeanServerConnection connection, ObjectInstance objectInstance, DataSourceInfo dataSourceInfo){
super();
this.connection = connection;
this.objectName = objectName;
this.objectInstance = objectInstance;
this.dataSourceInfo = dataSourceInfo;
}
public MBeanServerConnection getConnection() {
return connection;
}
public ObjectName getObjectName() {
return objectName;
public ObjectInstance getObjectInstance() {
return objectInstance;
}
public DataSourceInfo getDataSourceInfo() {
return dataSourceInfo;
}
}