Esempio n. 1
0
 public FileJournalManager(Configuration conf, Storage.StorageDirectory sd, StorageErrorReporter
                           errorReporter)
 {
     this.conf          = conf;
     this.sd            = sd;
     this.errorReporter = errorReporter;
 }
Esempio n. 2
0
 /// <param name="conf">Configuration object</param>
 /// <param name="logDir">the path to the directory in which data will be stored</param>
 /// <param name="errorReporter">a callback to report errors</param>
 /// <exception cref="System.IO.IOException"></exception>
 protected internal JNStorage(Configuration conf, FilePath logDir, HdfsServerConstants.StartupOption
                              startOpt, StorageErrorReporter errorReporter)
     : base(HdfsServerConstants.NodeType.JournalNode)
 {
     sd = new Storage.StorageDirectory(logDir);
     this.AddStorageDir(sd);
     this.fjm = new FileJournalManager(conf, sd, errorReporter);
     AnalyzeAndRecoverStorage(startOpt);
 }