public SwapRegionsAction(int fromServer, int fromRegion, int toServer, int toRegion) { super(Type.SWAP_REGIONS); this.fromServer = fromServer; this.fromRegion = fromRegion; this.toServer = toServer; this.toRegion = toRegion; }
public AssignRegionAction(int region, int server) { super(Type.ASSIGN_REGION); this.region = region; this.server = server; }
public MoveRegionAction(int region, int fromServer, int toServer) { super(Type.MOVE_REGION); this.fromServer = fromServer; this.region = region; this.toServer = toServer; }
public Action (Type type) {this.type = type;}