/** * Creates a new instance of {@link UfsJournalCheckpointThread}. * * @param master the master to apply the journal entries to * @param journal the journal */ public UfsJournalCheckpointThread(JournalEntryStateMachine master, UfsJournal journal) { mMaster = Preconditions.checkNotNull(master, "master"); mJournal = Preconditions.checkNotNull(journal, "journal"); mShutdownQuietWaitTimeMs = journal.getQuietPeriodMs(); mJournalCheckpointSleepTimeMs = (int) Configuration.getMs(PropertyKey.MASTER_JOURNAL_TAILER_SLEEP_TIME_MS); mJournalReader = new UfsJournalReader(mJournal, 0, false); mCheckpointPeriodEntries = Configuration.getLong( PropertyKey.MASTER_JOURNAL_CHECKPOINT_PERIOD_ENTRIES); }
ClientContext.getConf().getLong(Constants.USER_FILE_WAITCOMPLETED_POLL_MS); boolean completed = false; long timeleft = deadline - System.currentTimeMillis();