/*
 * Licensed to the University of California, Berkeley 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 tachyon.master.next.journal;

import tachyon.conf.TachyonConf;

/**
 * This encapsulates the journal for a master. The journal is made up of 2 components:
 * - The checkpoint:
 * - The entries
 *
 * To construct the full state of the master, the
 */
public class Journal {
  private String mJournalPath;
  private TachyonConf mTachyonConf;

  public Journal(String journalPath, TachyonConf tachyonConf) {
    mJournalPath = journalPath;
    mTachyonConf = tachyonConf;
  }

  public JournalWriter getNewWriter() {
    return new JournalWriter(this);
  }

  public JournalReader getNewReader() {
    return new JournalReader(this);
  }
}

@@ -973,78 +973,366 @@
 int:
-%0A * - The entries%0A *%0A * To construct the full state of the master, the
+ the full state of the master%0A * - The entries: incremental entries to apply to the checkpoint.%0A *%0A * To construct the full state of the master, all the entries must be applied to the checkpoint in%0A * order. The entry file most recently being written to is in the base journal folder, where the%0A * completed entry files are in the %22completed/%22 sub-directory.
 %0A */

Fix Journal comments