public class RollingBatchRestartRsAction extends BatchRestartRsAction
Action.ActionContext| Modifier and Type | Field and Description |
|---|---|
protected int |
maxDeadServers |
cluster, context, initialServers, initialStatus, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, killMasterTimeout, killRsTimeout, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, startMasterTimeout, startRsTimeout| Constructor and Description |
|---|
RollingBatchRestartRsAction(long sleepTime,
float ratio) |
RollingBatchRestartRsAction(long sleepTime,
float ratio,
int maxDeadServers) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Small test to ensure the class basically works.
|
void |
perform() |
protected java.util.List<ServerName> |
selectServers() |
forceBalancer, getCurrentServers, init, killMaster, killRs, startMaster, startRs, unbalanceRegionspublic RollingBatchRestartRsAction(long sleepTime,
float ratio)
public RollingBatchRestartRsAction(long sleepTime,
float ratio,
int maxDeadServers)
public void perform()
throws java.lang.Exception
perform in class BatchRestartRsActionjava.lang.Exceptionprotected java.util.List<ServerName> selectServers() throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - java.lang.Exception