ml.shifu.guagua.master
类 AbstractMasterCoordinator.FailOverCommand
java.lang.Object
ml.shifu.guagua.BasicCoordinator.BasicCoordinatorCommand
ml.shifu.guagua.master.AbstractMasterCoordinator.FailOverCommand
- 所有已实现的接口:
- BasicCoordinator.CoordinatorCommand
- 包容类:
- AbstractMasterCoordinator<MASTER_RESULT extends Bytable,WORKER_RESULT extends Bytable>
protected class AbstractMasterCoordinator.FailOverCommand
- extends BasicCoordinator.BasicCoordinatorCommand
AbstractMasterCoordinator.FailOverCommand is used to read last iteration before task failed.
To read last iteration, just read all iterations from master znodes and get the maximal one.
Master znodes should be set as persistent type.
|
方法摘要 |
void |
doExecute()
Real method to do coordinator operation. |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMasterCoordinator.FailOverCommand
public AbstractMasterCoordinator.FailOverCommand(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
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.