use of org.neo4j.jmx.Kernel in project neo4j by neo4j.
the class Dbinfo method getDescription.
@Override
public String getDescription() {
final Kernel kernel;
try {
kernel = getKernel();
} catch (ShellException e) {
return e.getMessage();
}
MBeanServer mbeans = getPlatformMBeanServer();
StringBuilder result = new StringBuilder("Get runtime information about the Graph Database.\n" + "This uses the Neo4j management beans to get" + " information about the Graph Database.\n\n");
availableBeans(mbeans, kernel, result);
result.append("\n");
getUsage(result);
return result.toString();
}
use of org.neo4j.jmx.Kernel in project neo4j by neo4j.
the class Neo4jManager method allBeans.
@Override
public List<Object> allBeans() {
List<Object> beans = super.allBeans();
Kernel kernel = null;
for (Object bean : beans) {
if (bean instanceof Kernel) {
kernel = (Kernel) bean;
}
}
if (kernel != null) {
beans.remove(kernel);
}
return beans;
}
Aggregations