use of org.neo4j.server.enterprise.jmx.ServerManagement in project neo4j by neo4j.
the class JMXManagementModule method start.
@Override
public void start() {
try {
ServerManagement serverManagement = new ServerManagement(server);
MBeanServer beanServer = ManagementFactory.getPlatformMBeanServer();
beanServer.registerMBean(serverManagement, createObjectName());
} catch (Exception e) {
throw new RuntimeException("Unable to initialize jmx management, see nested exception.", e);
}
}
Aggregations