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

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


      try {
        List<NetappVolumeVO> volumes = netappMgr.listVolumesOnFiler(poolName);
        ListResponse<ListVolumesOnFilerCmdResponse> listResponse = new ListResponse<ListVolumesOnFilerCmdResponse>();
        List<ListVolumesOnFilerCmdResponse> responses = new ArrayList<ListVolumesOnFilerCmdResponse>();
        for (NetappVolumeVO volume : volumes) {
          ListVolumesOnFilerCmdResponse response = new ListVolumesOnFilerCmdResponse();
          response.setId(volume.getId());
          response.setIpAddress(volume.getIpAddress());
          response.setPoolName(volume.getPoolName());
          response.setAggrName(volume.getAggregateName());
          response.setVolumeName(volume.getVolumeName());
          response.setSnapshotPolicy(volume.getSnapshotPolicy());
          response.setSnapshotReservation(volume.getSnapshotReservation());
          response.setVolumeSize(volume.getVolumeSize());
          response.setObjectName("volume");
          responses.add(response);
        }
        listResponse.setResponses(responses);
        listResponse.setResponseName(getCommandName());
        this.setResponseObject(listResponse);
View Full Code Here


        try {
            List<NetappVolumeVO> volumes = netappMgr.listVolumesOnFiler(poolName);
            ListResponse<ListVolumesOnFilerCmdResponse> listResponse = new ListResponse<ListVolumesOnFilerCmdResponse>();
            List<ListVolumesOnFilerCmdResponse> responses = new ArrayList<ListVolumesOnFilerCmdResponse>();
            for (NetappVolumeVO volume : volumes) {
                ListVolumesOnFilerCmdResponse response = new ListVolumesOnFilerCmdResponse();
                response.setId(volume.getId());
                response.setIpAddress(volume.getIpAddress());
                response.setPoolName(volume.getPoolName());
                response.setAggrName(volume.getAggregateName());
                response.setVolumeName(volume.getVolumeName());
                response.setSnapshotPolicy(volume.getSnapshotPolicy());
                response.setSnapshotReservation(volume.getSnapshotReservation());
                response.setVolumeSize(volume.getVolumeSize());
                response.setObjectName("volume");
                responses.add(response);
            }
            listResponse.setResponses(responses);
            listResponse.setResponseName(getCommandName());
            this.setResponseObject(listResponse);
View Full Code Here

      try {
        List<NetappVolumeVO> volumes = netappMgr.listVolumesOnFiler(poolName);
        ListResponse<ListVolumesOnFilerCmdResponse> listResponse = new ListResponse<ListVolumesOnFilerCmdResponse>();
        List<ListVolumesOnFilerCmdResponse> responses = new ArrayList<ListVolumesOnFilerCmdResponse>();
        for (NetappVolumeVO volume : volumes) {
          ListVolumesOnFilerCmdResponse response = new ListVolumesOnFilerCmdResponse();
          response.setId(volume.getId());
          response.setIpAddress(volume.getIpAddress());
          response.setPoolName(volume.getPoolName());
          response.setAggrName(volume.getAggregateName());
          response.setVolumeName(volume.getVolumeName());
          response.setSnapshotPolicy(volume.getSnapshotPolicy());
          response.setSnapshotReservation(volume.getSnapshotReservation());
          response.setVolumeSize(volume.getVolumeSize());
          response.setObjectName("volume");
          responses.add(response);
        }
        listResponse.setResponses(responses);
        listResponse.setResponseName(getCommandName());
        this.setResponseObject(listResponse);
View Full Code Here

TOP

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

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.