ml.shifu.guagua.master
类 AbstractMasterCoordinator.MasterElectionCommand

java.lang.Object
  继承者 ml.shifu.guagua.BasicCoordinator.BasicCoordinatorCommand
      继承者 ml.shifu.guagua.master.AbstractMasterCoordinator.MasterElectionCommand
所有已实现的接口:
BasicCoordinator.CoordinatorCommand
包容类:
AbstractMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>

protected class AbstractMasterCoordinator.MasterElectionCommand
extends BasicCoordinator.BasicCoordinatorCommand

Elect master from several backup masters.

Wait until it is the first bid, then it is elected as master.

Since fail-over in hadop map-reduce tasks is very fast. Using multiple-master is not a good choice expecially time out is too large.

Multiple masters are used in environment in which no fail-over.


构造方法摘要
AbstractMasterCoordinator.MasterElectionCommand(String appId)
           
 
方法摘要
 void doExecute()
          Real method to do coordinator operation.
 
从类 ml.shifu.guagua.BasicCoordinator.BasicCoordinatorCommand 继承的方法
execute
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

AbstractMasterCoordinator.MasterElectionCommand

public AbstractMasterCoordinator.MasterElectionCommand(String appId)
方法详细信息

doExecute

public void doExecute()
               throws org.apache.zookeeper.KeeperException,
                      InterruptedException
从类 BasicCoordinator.BasicCoordinatorCommand 复制的描述
Real method to do coordinator operation.

指定者:
BasicCoordinator.BasicCoordinatorCommand 中的 doExecute
抛出:
org.apache.zookeeper.KeeperException
InterruptedException


Copyright © 2014. All Rights Reserved.