@InterfaceAudience.Private public class SwapRegionsAction extends BalanceAction
BalanceAction.Type
Modifier and Type | Field and Description |
---|---|
private int |
fromRegion |
private int |
fromServer |
private int |
toRegion |
private int |
toServer |
NULL_ACTION
Constructor and Description |
---|
SwapRegionsAction(int fromServer,
int fromRegion,
int toServer,
int toRegion) |
Modifier and Type | Method and Description |
---|---|
int |
getFromRegion() |
int |
getFromServer() |
int |
getToRegion() |
int |
getToServer() |
String |
toString() |
BalanceAction |
undoAction()
Returns an Action which would undo this action
|
getType
private final int fromServer
private final int fromRegion
private final int toServer
private final int toRegion
SwapRegionsAction(int fromServer, int fromRegion, int toServer, int toRegion)
public int getFromServer()
public int getFromRegion()
public int getToServer()
public int getToRegion()
public BalanceAction undoAction()
BalanceAction
undoAction
in class BalanceAction
public String toString()
toString
in class BalanceAction
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.