/** * Creates a new DebugLogWrapper that can be used for debugging purposes. This should not be used for regular operations. * * @param logId Id of the Log to create a wrapper for. * @return A new instance of the DebugLogWrapper class. */ public DebugLogWrapper createDebugLogWrapper(int logId) { Preconditions.checkState(this.bookKeeper.get() != null, "BookKeeperLogFactory is not initialized."); return new DebugLogWrapper(logId, this.zkClient, this.bookKeeper.get(), this.config, this.executor); }