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;
}
Aggregations