mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02: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();
|
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
|
@Override
|
||||||
public Object execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
public void execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||||
VirtualMachine result = _mgr.startSystemVm(this);
|
VirtualMachine instance = _mgr.startSystemVm(this);
|
||||||
return result;
|
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();
|
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
|
@Override
|
||||||
public Object execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
public void execute() throws ServerApiException, InvalidParameterValueException, PermissionDeniedException, InsufficientAddressCapacityException, InsufficientCapacityException, ConcurrentOperationException{
|
||||||
VirtualMachine result = _mgr.stopSystemVm(this);
|
VirtualMachine instance = _mgr.stopSystemVm(this);
|
||||||
return result;
|
SystemVmResponse response = ApiResponseHelper.createSystemVmResponse((VMInstanceVO)instance);
|
||||||
|
response.setResponseName(getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user