/** * @param masterContext the context for Alluxio master * @param clock the Clock to use for determining the time * @param executorServiceFactory a factory for creating the executor service to use for * running maintenance threads */ protected AbstractMaster(MasterContext masterContext, Clock clock, ExecutorServiceFactory executorServiceFactory) { Preconditions.checkNotNull(masterContext, "masterContext"); mJournal = masterContext.getJournalSystem().createJournal(this); mMasterContext = masterContext; mClock = clock; mExecutorServiceFactory = executorServiceFactory; }
/** * @param masterContext the context for Alluxio master * @param clock the Clock to use for determining the time * @param executorServiceFactory a factory for creating the executor service to use for * running maintenance threads */ protected AbstractMaster(MasterContext masterContext, Clock clock, ExecutorServiceFactory executorServiceFactory) { Preconditions.checkNotNull(masterContext, "masterContext"); mJournal = masterContext.getJournalSystem().createJournal(this); mSafeModeManager = masterContext.getSafeModeManager(); mBackupManager = masterContext.getBackupManager(); mStateChangeLock = masterContext.stateChangeLock(); mPauseStateLock = masterContext.pauseStateLock(); mClock = clock; mExecutorServiceFactory = executorServiceFactory; }