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.
| Constructor and Description |
|---|
FailOverCommand(MasterContext<MASTER_RESULT,WORKER_RESULT> context) |
| Modifier and Type | Method and Description |
|---|---|
void |
doExecute()
Real method to do coordinator operation.
|
executepublic FailOverCommand(MasterContext<MASTER_RESULT,WORKER_RESULT> context)
public void doExecute()
throws org.apache.zookeeper.KeeperException,
InterruptedException
BasicCoordinator.BasicCoordinatorCommanddoExecute in class BasicCoordinator.BasicCoordinatorCommandorg.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2019. All Rights Reserved.