Search in sources :

Example 1 with MasterFactory

use of alluxio.master.MasterFactory in project alluxio by Alluxio.

the class ServerUtils method getMasterServiceNames.

/**
   * @return the list of master service names
   */
public static List<String> getMasterServiceNames() {
    List<String> masterServiceNames = new ArrayList<>();
    masterServiceNames.add(Constants.BLOCK_MASTER_NAME);
    masterServiceNames.add(Constants.FILE_SYSTEM_MASTER_NAME);
    masterServiceNames.add(Constants.LINEAGE_MASTER_NAME);
    for (MasterFactory factory : getMasterServiceLoader()) {
        if (factory.isEnabled()) {
            masterServiceNames.add(factory.getName());
        }
    }
    return masterServiceNames;
}
Also used : ArrayList(java.util.ArrayList) MasterFactory(alluxio.master.MasterFactory)

Aggregations

MasterFactory (alluxio.master.MasterFactory)1 ArrayList (java.util.ArrayList)1