示例#1
0
 @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)));
   }
 }
示例#2
0
 @Override
 public void processJournalCheckpoint(JournalInputStream inputStream) throws IOException {
   // clear state before processing checkpoint.
   mBlocks.clear();
   super.processJournalCheckpoint(inputStream);
 }
示例#3
0
 @Override
 public void start(boolean isLeader) throws IOException {
   super.start(isLeader);
 }