Search in sources :

Example 1 with DeleteVolumeOnFilerCmdResponse

use of com.cloud.server.api.response.netapp.DeleteVolumeOnFilerCmdResponse in project cloudstack by apache.

the class DestroyVolumeOnFilerCmd method execute.

@Override
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException {
    try {
        netappMgr.destroyVolumeOnFiler(ipAddr, aggrName, volumeName);
        DeleteVolumeOnFilerCmdResponse response = new DeleteVolumeOnFilerCmdResponse();
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
    } catch (InvalidParameterValueException e) {
        throw new ServerApiException(ApiErrorCode.PARAM_ERROR, e.toString());
    } catch (ResourceInUseException e) {
        throw new ServerApiException(ApiErrorCode.RESOURCE_IN_USE_ERROR, e.toString());
    } catch (ServerException e) {
        throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, e.toString());
    }
}
Also used : ServerException(java.rmi.ServerException) ServerApiException(org.apache.cloudstack.api.ServerApiException) InvalidParameterValueException(com.cloud.exception.InvalidParameterValueException) DeleteVolumeOnFilerCmdResponse(com.cloud.server.api.response.netapp.DeleteVolumeOnFilerCmdResponse) ResourceInUseException(com.cloud.exception.ResourceInUseException)

Aggregations

InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)1 ResourceInUseException (com.cloud.exception.ResourceInUseException)1 DeleteVolumeOnFilerCmdResponse (com.cloud.server.api.response.netapp.DeleteVolumeOnFilerCmdResponse)1 ServerException (java.rmi.ServerException)1 ServerApiException (org.apache.cloudstack.api.ServerApiException)1