Search in sources :

Example 1 with DeleteLUNCmdResponse

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

the class DestroyLunCmd method execute.

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

Aggregations

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