use of org.apache.cloudstack.api.response.StoragePoolResponse in project cloudstack by apache.
the class CancelPrimaryStorageMaintenanceCmd method execute.
@Override
public void execute() throws ResourceUnavailableException {
StoragePool result = _storageService.cancelPrimaryStorageForMaintenance(this);
if (result != null) {
StoragePoolResponse response = _responseGenerator.createStoragePoolResponse(result);
response.setResponseName(getCommandName());
this.setResponseObject(response);
} else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to cancel primary storage maintenance");
}
}
Aggregations