Ejemplo n.º 1
0
 /** Perform recovery on a single commit log. */
 public void recover(String path) throws IOException {
   CommitLogReplayer recovery = CommitLogReplayer.construct(this);
   recovery.recover(new File(path), false);
   recovery.blockForWrites();
 }
Ejemplo n.º 2
0
 /**
  * Perform recovery on a list of commit log files.
  *
  * @param clogs the list of commit log files to replay
  * @return the number of mutations replayed
  */
 public int recover(File... clogs) throws IOException {
   CommitLogReplayer recovery = CommitLogReplayer.construct(this);
   recovery.recover(clogs);
   return recovery.blockForWrites();
 }