|
@@ -301,7 +301,14 @@ public class ZooKeeperServer implements SessionExpirer, ServerStats.Provider {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Creates a ZooKeeperServer instance. It sets everything up, but doesn't
|
|
|
+ * Keeping this constructor for backward compatibility
|
|
|
+ */
|
|
|
+ public ZooKeeperServer(FileTxnSnapLog txnLogFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, int clientPortListenBacklog, ZKDatabase zkDb, String initialConfig) {
|
|
|
+ this(txnLogFactory, tickTime, minSessionTimeout, maxSessionTimeout, clientPortListenBacklog, zkDb, initialConfig, QuorumPeerConfig.isReconfigEnabled());
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * * Creates a ZooKeeperServer instance. It sets everything up, but doesn't
|
|
|
* actually start listening for clients until run() is invoked.
|
|
|
*
|
|
|
*/
|