@InterfaceAudience.Private class MoveRegionAction extends BalanceAction
BalanceAction.Type
Modifier and Type | Field and Description |
---|---|
private int |
fromServer |
private int |
region |
private int |
toServer |
NULL_ACTION
Constructor and Description |
---|
MoveRegionAction(int region,
int fromServer,
int toServer) |
Modifier and Type | Method and Description |
---|---|
int |
getFromServer() |
int |
getRegion() |
int |
getToServer() |
String |
toString() |
BalanceAction |
undoAction()
Returns an Action which would undo this action
|
getType
private final int region
private final int fromServer
private final int toServer
public MoveRegionAction(int region, int fromServer, int toServer)
public int getRegion()
public int getFromServer()
public int getToServer()
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.