mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
compilation errors fixed
This commit is contained in:
parent
94250c1330
commit
284720bf00
@ -93,17 +93,11 @@ public class StartSystemVm2Cmd extends BaseAsyncCmd {
|
||||
return "starting system vm: " + getId();
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("unchecked")
|
||||
public SystemVmResponse getResponse() {
|
||||
VMInstanceVO instance = (VMInstanceVO)getResponseObject();
|
||||
SystemVmResponse response = ApiResponseHelper.createSystemVmResponse(instance);
|
||||
response.setResponseName(getName());
|
||||
return response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||
VirtualMachine result = _mgr.startSystemVm(this);
|
||||
return result;
|
||||
}
|
||||
public void execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||
VirtualMachine instance = _mgr.startSystemVm(this);
|
||||
SystemVmResponse response = ApiResponseHelper.createSystemVmResponse((VMInstanceVO)instance);
|
||||
response.setResponseName(getName());
|
||||
this.setResponseObject(response);
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,17 +89,10 @@ public class StopSystemVm2Cmd extends BaseAsyncCmd {
|
||||
return "stopping system vm: " + getId();
|
||||
}
|
||||
|
||||
@Override @SuppressWarnings("unchecked")
|
||||
public SystemVmResponse getResponse() {
|
||||
VMInstanceVO instance = (VMInstanceVO)getResponseObject();
|
||||
SystemVmResponse response = ApiResponseHelper.createSystemVmResponse(instance);
|
||||
response.setResponseName(getName());
|
||||
return response;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||
VirtualMachine result = _mgr.stopSystemVm(this);
|
||||
return result;
|
||||
public void execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||
VirtualMachine instance = _mgr.stopSystemVm(this);
|
||||
SystemVmResponse response = ApiResponseHelper.createSystemVmResponse((VMInstanceVO)instance);
|
||||
response.setResponseName(getName());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user