Skip to content

Commit 456b852

Browse files
committed
api_refactor: refactor loadbalancer apis
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 8773fc2 commit 456b852

16 files changed

Lines changed: 31 additions & 35 deletions

api/src/com/cloud/network/lb/LoadBalancingRulesService.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@
1818

1919
import java.util.List;
2020

21-
import com.cloud.api.commands.CreateLBStickinessPolicyCmd;
22-
import com.cloud.api.commands.CreateLoadBalancerRuleCmd;
23-
import com.cloud.api.commands.ListLBStickinessPoliciesCmd;
24-
import com.cloud.api.commands.ListLoadBalancerRuleInstancesCmd;
25-
import com.cloud.api.commands.ListLoadBalancerRulesCmd;
26-
import com.cloud.api.commands.UpdateLoadBalancerRuleCmd;
21+
import org.apache.cloudstack.api.user.lb.command.*;
22+
import org.apache.cloudstack.api.user.lb.command.CreateLBStickinessPolicyCmd;
23+
import org.apache.cloudstack.api.user.lb.command.UpdateLoadBalancerRuleCmd;
2724
import com.cloud.exception.InsufficientAddressCapacityException;
2825
import com.cloud.exception.NetworkRuleConflictException;
2926
import com.cloud.exception.ResourceUnavailableException;
3027
import com.cloud.network.rules.LoadBalancer;
3128
import com.cloud.network.rules.StickinessPolicy;
3229
import com.cloud.uservm.UserVm;
3330
import com.cloud.utils.Pair;
31+
import org.apache.cloudstack.api.user.lb.command.ListLoadBalancerRulesCmd;
3432

3533

3634
public interface LoadBalancingRulesService {

api/src/com/cloud/api/commands/AssignToLoadBalancerRuleCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/AssignToLoadBalancerRuleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.List;
2020

api/src/com/cloud/api/commands/CreateLBStickinessPolicyCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/CreateLBStickinessPolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919

2020
import java.util.Map;

api/src/com/cloud/api/commands/CreateLoadBalancerRuleCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/CreateLoadBalancerRuleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.List;
2020

api/src/com/cloud/api/commands/DeleteLBStickinessPolicyCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/DeleteLBStickinessPolicyCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/DeleteLoadBalancerRuleCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/DeleteLoadBalancerRuleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import org.apache.log4j.Logger;
2020

api/src/com/cloud/api/commands/ListLBStickinessPoliciesCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/ListLBStickinessPoliciesCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;

api/src/com/cloud/api/commands/ListLoadBalancerRuleInstancesCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/ListLoadBalancerRuleInstancesCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;

api/src/com/cloud/api/commands/ListLoadBalancerRulesCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/ListLoadBalancerRulesCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.ArrayList;
2020
import java.util.List;

api/src/com/cloud/api/commands/RemoveFromLoadBalancerRuleCmd.java renamed to api/src/org/apache/cloudstack/api/user/lb/command/RemoveFromLoadBalancerRuleCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// KIND, either express or implied. See the License for the
1515
// specific language governing permissions and limitations
1616
// under the License.
17-
package com.cloud.api.commands;
17+
package org.apache.cloudstack.api.user.lb.command;
1818

1919
import java.util.List;
2020

0 commit comments

Comments
 (0)