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@232 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -6,10 +6,14 @@ public class NodeInfo {
|
||||
|
||||
private MBeanServerConnection connection;
|
||||
private NodeType type;
|
||||
private Object data;
|
||||
private String name;
|
||||
|
||||
public NodeInfo(MBeanServerConnection connection, NodeType type){
|
||||
public NodeInfo(MBeanServerConnection connection, NodeType type, Object data, String name){
|
||||
this.connection = connection;
|
||||
this.type = type;
|
||||
this.data = data;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public MBeanServerConnection getConnection() {
|
||||
@@ -20,4 +24,19 @@ public class NodeInfo {
|
||||
return type;
|
||||
}
|
||||
|
||||
public Object getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user