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.


构造方法摘要
AbstractMasterCoordinator.FailOverCommand(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
           
 
方法摘要
 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.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 © 2014. All Rights Reserved.