Search in sources :

Example 1 with ServerManagement

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);
    }
}
Also used : ServerManagement(org.neo4j.server.enterprise.jmx.ServerManagement) MalformedObjectNameException(javax.management.MalformedObjectNameException) InstanceNotFoundException(javax.management.InstanceNotFoundException) MBeanServer(javax.management.MBeanServer)

Aggregations

InstanceNotFoundException (javax.management.InstanceNotFoundException)1 MBeanServer (javax.management.MBeanServer)1 MalformedObjectNameException (javax.management.MalformedObjectNameException)1 ServerManagement (org.neo4j.server.enterprise.jmx.ServerManagement)1