public void onStartup(ZooKeeperServer server) {
ZooTrace.logTraceMessage(LOG, ZooTrace.JMX_TRACE_MASK,
"Started new zookeeper server: "+server);
try {
dataTreeBean = new DataTreeBean(server.dataTree);
MBeanRegistry.getInstance().register(dataTreeBean, svrBean);
} catch (Exception e) {
LOG.warn("Failed to register Standalone ZooKeeperServerMBean "
+ e.getMessage());
}