Skip to content

Commit dd5a36f

Browse files
committed
api_refactor: refactor for autoscale apis
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 2121fbd commit dd5a36f

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎api/src/com/cloud/network/as/AutoScaleService.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
import java.util.List;
2020

21+
import org.apache.cloudstack.api.admin.autoscale.command.CreateCounterCmd;
2122
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScalePolicyCmd;
2223
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmGroupCmd;
2324
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmProfileCmd;
2425
import org.apache.cloudstack.api.user.autoscale.command.*;
25-
import com.cloud.api.commands.CreateCounterCmd;
2626
import org.apache.cloudstack.api.user.autoscale.command.ListAutoScalePoliciesCmd;
2727
import org.apache.cloudstack.api.user.autoscale.command.ListConditionsCmd;
2828
import org.apache.cloudstack.api.user.autoscale.command.UpdateAutoScaleVmGroupCmd;

api/src/com/cloud/api/commands/CreateCounterCmd.java renamed to api/src/org/apache/cloudstack/api/admin/autoscale/command/CreateCounterCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
package com.cloud.api.commands;
18+
package org.apache.cloudstack.api.admin.autoscale.command;
1919

2020
import org.apache.log4j.Logger;
2121

api/src/com/cloud/api/commands/DeleteCounterCmd.java renamed to api/src/org/apache/cloudstack/api/admin/autoscale/command/DeleteCounterCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
package com.cloud.api.commands;
18+
package org.apache.cloudstack.api.admin.autoscale.command;
1919

2020
import org.apache.log4j.Logger;
2121

‎client/tomcatconf/commands.properties.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ listLoadBalancerRuleInstances=org.apache.cloudstack.api.user.lb.command.ListLoad
154154
updateLoadBalancerRule=org.apache.cloudstack.api.user.lb.command.UpdateLoadBalancerRuleCmd;15
155155

156156
#### autoscale commands
157-
createCounter = com.cloud.api.commands.CreateCounterCmd;1
157+
createCounter = org.apache.cloudstack.api.admin.autoscale.command.CreateCounterCmd;1
158158
createCondition = org.apache.cloudstack.api.user.autoscale.command.CreateConditionCmd;15
159159
createAutoScalePolicy=org.apache.cloudstack.api.user.autoscale.command.CreateAutoScalePolicyCmd;15
160160
createAutoScaleVmProfile=org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmProfileCmd;15
161161
createAutoScaleVmGroup=org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmGroupCmd;15
162-
deleteCounter = com.cloud.api.commands.DeleteCounterCmd;1
162+
deleteCounter = org.apache.cloudstack.api.admin.autoscale.command.DeleteCounterCmd;1
163163
deleteCondition = org.apache.cloudstack.api.user.autoscale.command.DeleteConditionCmd;15
164164
deleteAutoScalePolicy=org.apache.cloudstack.api.user.autoscale.command.DeleteAutoScalePolicyCmd;15
165165
deleteAutoScaleVmProfile=org.apache.cloudstack.api.user.autoscale.command.DeleteAutoScaleVmProfileCmd;15

‎server/src/com/cloud/network/as/AutoScaleManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmGroupCmd;
3838
import org.apache.cloudstack.api.user.autoscale.command.CreateAutoScaleVmProfileCmd;
3939
import org.apache.cloudstack.api.user.autoscale.command.CreateConditionCmd;
40-
import com.cloud.api.commands.CreateCounterCmd;
40+
import org.apache.cloudstack.api.admin.autoscale.command.CreateCounterCmd;
4141
import org.apache.cloudstack.api.user.vm.command.DeployVMCmd;
4242
import org.apache.cloudstack.api.user.autoscale.command.ListAutoScalePoliciesCmd;
4343
import org.apache.cloudstack.api.user.autoscale.command.ListAutoScaleVmGroupsCmd;

0 commit comments

Comments
 (0)