Search in sources :

Example 1 with DataTreeBean

use of org.apache.zookeeper.server.DataTreeBean in project zookeeper by apache.

the class LeaderZooKeeperServer method registerJMX.

@Override
protected void registerJMX() {
    // register with JMX
    try {
        jmxDataTreeBean = new DataTreeBean(getZKDatabase().getDataTree());
        MBeanRegistry.getInstance().register(jmxDataTreeBean, jmxServerBean);
    } catch (Exception e) {
        LOG.warn("Failed to register with JMX", e);
        jmxDataTreeBean = null;
    }
}
Also used : DataTreeBean(org.apache.zookeeper.server.DataTreeBean) IOException(java.io.IOException) SessionExpiredException(org.apache.zookeeper.KeeperException.SessionExpiredException)

Example 2 with DataTreeBean

use of org.apache.zookeeper.server.DataTreeBean in project zookeeper by apache.

the class ReadOnlyZooKeeperServer method registerJMX.

@Override
protected void registerJMX() {
    // register with JMX
    try {
        jmxDataTreeBean = new DataTreeBean(getZKDatabase().getDataTree());
        MBeanRegistry.getInstance().register(jmxDataTreeBean, jmxServerBean);
    } catch (Exception e) {
        LOG.warn("Failed to register with JMX", e);
        jmxDataTreeBean = null;
    }
}
Also used : DataTreeBean(org.apache.zookeeper.server.DataTreeBean)

Example 3 with DataTreeBean

use of org.apache.zookeeper.server.DataTreeBean in project zookeeper by apache.

the class LearnerZooKeeperServer method registerJMX.

@Override
protected void registerJMX() {
    // register with JMX
    try {
        jmxDataTreeBean = new DataTreeBean(getZKDatabase().getDataTree());
        MBeanRegistry.getInstance().register(jmxDataTreeBean, jmxServerBean);
    } catch (Exception e) {
        LOG.warn("Failed to register with JMX", e);
        jmxDataTreeBean = null;
    }
}
Also used : DataTreeBean(org.apache.zookeeper.server.DataTreeBean) IOException(java.io.IOException)

Aggregations

DataTreeBean (org.apache.zookeeper.server.DataTreeBean)3 IOException (java.io.IOException)2 SessionExpiredException (org.apache.zookeeper.KeeperException.SessionExpiredException)1