Exemplo 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)));
   }
 }
Exemplo n.º 2
0
 @Override
 public void start(boolean isLeader) throws IOException {
   super.start(isLeader);
 }