mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
jconsole
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@229 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -4,27 +4,30 @@ import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.management.MBeanServerConnection;
|
||||
import javax.management.openmbean.CompositeData;
|
||||
|
||||
public class DataSourceInfo {
|
||||
|
||||
private long id;
|
||||
private String name;
|
||||
private String url;
|
||||
private List<String> filters = new ArrayList<String>();
|
||||
private Date createdTime;
|
||||
private long id;
|
||||
private String name;
|
||||
private String url;
|
||||
private List<String> filters = new ArrayList<String>();
|
||||
private Date createdTime;
|
||||
|
||||
private String rawDriverClassName;
|
||||
private String rawUrl;
|
||||
private int rawDriverMajorVersion;
|
||||
private int rawDriverMinorVersion;
|
||||
private String properties;
|
||||
private String rawDriverClassName;
|
||||
private String rawUrl;
|
||||
private int rawDriverMajorVersion;
|
||||
private int rawDriverMinorVersion;
|
||||
private String properties;
|
||||
private MBeanServerConnection connection;
|
||||
|
||||
public DataSourceInfo(){
|
||||
|
||||
}
|
||||
|
||||
public DataSourceInfo(CompositeData data){
|
||||
public DataSourceInfo(MBeanServerConnection conn, CompositeData data){
|
||||
this.connection = conn;
|
||||
this.id = ((Number) data.get("ID")).longValue();
|
||||
this.name = (String) data.get("Name");
|
||||
this.url = (String) data.get("URL");
|
||||
@@ -40,6 +43,14 @@ public class DataSourceInfo {
|
||||
this.properties = (String) data.get("Properties");
|
||||
}
|
||||
|
||||
public MBeanServerConnection getConnection() {
|
||||
return connection;
|
||||
}
|
||||
|
||||
public void setConnection(MBeanServerConnection connection) {
|
||||
this.connection = connection;
|
||||
}
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user