mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
testcase
This commit is contained in:
@@ -1,50 +1,50 @@
|
||||
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, ObjectInstance objectInstance, NodeType type, Object data,
|
||||
String name){
|
||||
this.connection = connection;
|
||||
this.objectInstance = objectInstance;
|
||||
this.type = type;
|
||||
this.data = data;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ObjectInstance getObjectInstance() {
|
||||
return objectInstance;
|
||||
}
|
||||
|
||||
public MBeanServerConnection getConnection() {
|
||||
return connection;
|
||||
}
|
||||
|
||||
public NodeType getType() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
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, ObjectInstance objectInstance, NodeType type, Object data,
|
||||
String name){
|
||||
this.connection = connection;
|
||||
this.objectInstance = objectInstance;
|
||||
this.type = type;
|
||||
this.data = data;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public ObjectInstance getObjectInstance() {
|
||||
return objectInstance;
|
||||
}
|
||||
|
||||
public MBeanServerConnection getConnection() {
|
||||
return connection;
|
||||
}
|
||||
|
||||
public NodeType getType() {
|
||||
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