/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.zookeeper.server; import static org.apache.zookeeper.server.ServerConfig.getClientPort; import java.io.File; import java.io.IOException; import org.apache.log4j.Logger; import org.apache.zookeeper.jmx.server.ConnectionMXBean; import org.apache.zookeeper.jmx.server.DataTreeMXBean; import org.apache.zookeeper.jmx.server.ZooKeeperServerMXBean; import org.apache.zookeeper.server.persistence.FileTxnLog; import org.apache.zookeeper.server.persistence.FileTxnSnapLog; import org.apache.zookeeper.server.util.ZooKeeperObserverManager; /** * This class launches a standalone zookeeper server with JMX support * enabled. The users can connect to the server JVM and manage the server state * (such as currently open client connections) and view runtime statistics using * one of existing GUI JMX consoles (jconsole, for example). Please refer to * the JDK vendor documentation for further information on how to enable JMX * support in the JVM. *
* The server provides following MBeans: *