|
16 | 16 | // under the License. |
17 | 17 | package org.apache.cloudstack.api.command.admin.systemvm; |
18 | 18 |
|
| 19 | +import com.cloud.event.EventTypes; |
| 20 | +import com.cloud.exception.ConcurrentOperationException; |
| 21 | +import com.cloud.exception.InvalidParameterValueException; |
| 22 | +import com.cloud.exception.ManagementServerException; |
| 23 | +import com.cloud.exception.ResourceUnavailableException; |
| 24 | +import com.cloud.exception.VirtualMachineMigrationException; |
| 25 | +import com.cloud.host.Host; |
| 26 | +import com.cloud.user.Account; |
| 27 | +import com.cloud.vm.VirtualMachine; |
19 | 28 | import org.apache.cloudstack.api.APICommand; |
20 | 29 | import org.apache.cloudstack.api.ApiConstants; |
21 | 30 | import org.apache.cloudstack.api.ApiErrorCode; |
22 | 31 | import org.apache.cloudstack.api.BaseAsyncCmd; |
23 | 32 | import org.apache.cloudstack.api.Parameter; |
24 | 33 | import org.apache.cloudstack.api.ServerApiException; |
25 | 34 | import org.apache.cloudstack.api.response.HostResponse; |
26 | | -import org.apache.cloudstack.api.response.SystemVmInstanceResponse; |
27 | 35 | import org.apache.cloudstack.api.response.SystemVmResponse; |
28 | 36 | import org.apache.cloudstack.context.CallContext; |
29 | | - |
30 | 37 | import org.apache.log4j.Logger; |
31 | 38 |
|
32 | | -import com.cloud.event.EventTypes; |
33 | | -import com.cloud.exception.ConcurrentOperationException; |
34 | | -import com.cloud.exception.InvalidParameterValueException; |
35 | | -import com.cloud.exception.ManagementServerException; |
36 | | -import com.cloud.exception.ResourceUnavailableException; |
37 | | -import com.cloud.exception.VirtualMachineMigrationException; |
38 | | -import com.cloud.host.Host; |
39 | | -import com.cloud.user.Account; |
40 | | -import com.cloud.vm.VirtualMachine; |
41 | | - |
42 | | -@APICommand(name = "migrateSystemVm", description="Attempts Migration of a system virtual machine to the host specified.", responseObject=SystemVmInstanceResponse.class) |
| 39 | +@APICommand(name = "migrateSystemVm", description="Attempts Migration of a system virtual machine to the host specified.", responseObject=SystemVmResponse.class) |
43 | 40 | public class MigrateSystemVMCmd extends BaseAsyncCmd { |
44 | 41 | public static final Logger s_logger = Logger.getLogger(MigrateSystemVMCmd.class.getName()); |
45 | 42 |
|
@@ -113,7 +110,7 @@ public void execute(){ |
113 | 110 | VirtualMachine migratedVm = _userVmService.migrateVirtualMachine(getVirtualMachineId(), destinationHost); |
114 | 111 | if (migratedVm != null) { |
115 | 112 | // return the generic system VM instance response |
116 | | - SystemVmInstanceResponse response = _responseGenerator.createSystemVmInstanceResponse(migratedVm); |
| 113 | + SystemVmResponse response = _responseGenerator.createSystemVmResponse(migratedVm); |
117 | 114 | response.setResponseName(getCommandName()); |
118 | 115 | this.setResponseObject(response); |
119 | 116 | } else { |
|
0 commit comments