git-svn-id: http://code.alibabatech.com/svn/druid/trunk@233 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-06-02 01:42:46 +00:00
parent 18f9c87146
commit 65f2330924
3 changed files with 43 additions and 30 deletions
@@ -1,21 +1,27 @@
package com.alibaba.druid.jconsole;
import javax.management.MBeanServerConnection;
import javax.management.ObjectInstance;
public class NodeInfo {
private MBeanServerConnection connection;
private ObjectInstance objectInstance;
private NodeType type;
private Object data;
private String name;
public NodeInfo(MBeanServerConnection connection, NodeType type, Object data, String name){
public NodeInfo(MBeanServerConnection connection, ObjectInstance objectInstance, NodeType type, Object data, String name){
this.connection = connection;
this.type = type;
this.data = data;
this.name = name;
}
public ObjectInstance getObjectInstance() {
return objectInstance;
}
public MBeanServerConnection getConnection() {
return connection;
}