Package com.cloud.server.api.response.netapp

Examples of com.cloud.server.api.response.netapp.AssociateLunCmdResponse


 
    @Override
    public void execute(){
     
      try {
        AssociateLunCmdResponse response = new AssociateLunCmdResponse();
        String returnVals[] = null;
        returnVals = netappMgr.associateLun(getGuestIQN(), getLunName());
        response.setLun(returnVals[0]);
        response.setIpAddress(returnVals[2]);
        response.setTargetIQN(returnVals[1]);
        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());
View Full Code Here


    @Override
    public void execute() {

        try {
            AssociateLunCmdResponse response = new AssociateLunCmdResponse();
            String returnVals[] = null;
            returnVals = netappMgr.associateLun(getGuestIQN(), getLunName());
            response.setLun(returnVals[0]);
            response.setIpAddress(returnVals[2]);
            response.setTargetIQN(returnVals[1]);
            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());
View Full Code Here

    public void execute(){
      ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
     
      try {
        AssociateLunCmdResponse response = new AssociateLunCmdResponse();
        String returnVals[] = null;
        returnVals = netappMgr.associateLun(getGuestIQN(), getLunName());
        response.setLun(returnVals[0]);
        response.setIpAddress(returnVals[2]);
        response.setTargetIQN(returnVals[1]);
        response.setObjectName("lun");
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
      } catch (ServerException e) {
        throw new ServerApiException(BaseCmd.PARAM_ERROR, e.toString());
      } catch (InvalidParameterValueException e) {
        throw new ServerApiException(BaseCmd.INTERNAL_ERROR, e.toString());
View Full Code Here

TOP

Related Classes of com.cloud.server.api.response.netapp.AssociateLunCmdResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.