use of alluxio.master.lineage.LineageMaster in project alluxio by Alluxio.
the class DefaultAlluxioMaster method createMasters.
/**
* @param journalFactory the factory to use for creating journals
*/
protected void createMasters(JournalFactory journalFactory) {
mBlockMaster = new BlockMaster(journalFactory);
mFileSystemMaster = new FileSystemMaster(mBlockMaster, journalFactory);
if (LineageUtils.isLineageEnabled()) {
mLineageMaster = new LineageMaster(mFileSystemMaster, journalFactory);
}
mAdditionalMasters = new ArrayList<>();
List<? extends Master> masters = Lists.newArrayList(mBlockMaster, mFileSystemMaster);
for (MasterFactory factory : ServerUtils.getMasterServiceLoader()) {
Master master = factory.create(masters, journalFactory);
if (master != null) {
mAdditionalMasters.add(master);
}
}
}
Aggregations