@Override public void start(boolean isLeader) throws IOException { super.start(isLeader); mGlobalStorageTierAssoc = new MasterStorageTierAssoc(MasterContext.getConf()); if (isLeader) { mLostWorkerDetectionService = getExecutorService() .submit( new HeartbeatThread( HeartbeatContext.MASTER_LOST_WORKER_DETECTION, new LostWorkerDetectionHeartbeatExecutor(), MasterContext.getConf().getInt(Constants.MASTER_HEARTBEAT_INTERVAL_MS))); } }
@Override public void processJournalCheckpoint(JournalInputStream inputStream) throws IOException { // clear state before processing checkpoint. mBlocks.clear(); super.processJournalCheckpoint(inputStream); }
@Override public void start(boolean isLeader) throws IOException { super.start(isLeader); }