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.
|
方法摘要 |
void |
doExecute()
Real method to do coordinator operation. |
| 从类 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 © 2015. All Rights Reserved.