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