Search in sources :

Example 1 with LineageMaster

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);
        }
    }
}
Also used : BlockMaster(alluxio.master.block.BlockMaster) BlockMaster(alluxio.master.block.BlockMaster) FileSystemMaster(alluxio.master.file.FileSystemMaster) LineageMaster(alluxio.master.lineage.LineageMaster) LineageMaster(alluxio.master.lineage.LineageMaster) FileSystemMaster(alluxio.master.file.FileSystemMaster)

Aggregations

BlockMaster (alluxio.master.block.BlockMaster)1 FileSystemMaster (alluxio.master.file.FileSystemMaster)1 LineageMaster (alluxio.master.lineage.LineageMaster)1