use of com.cloud.server.api.response.netapp.CreateLunCmdResponse in project cloudstack by apache.
the class CreateLunCmd method execute.
@Override
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException {
try {
CreateLunCmdResponse response = new CreateLunCmdResponse();
String[] returnVals = null;
returnVals = netappMgr.createLunOnFiler(getPoolName(), getLunSize());
response.setPath(returnVals[0]);
response.setIqn(returnVals[1]);
response.setIpAddress(returnVals[2]);
response.setObjectName("lun");
response.setResponseName(getCommandName());
this.setResponseObject(response);
} catch (ServerException e) {
throw new ServerApiException(ApiErrorCode.PARAM_ERROR, e.toString());
} catch (InvalidParameterValueException e) {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, e.toString());
}
}
Aggregations