use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolume in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getVolumeDetails.
@Override
public XtremIOVolume getVolumeDetails(String volumeName, String clusterName) throws Exception {
String uriStr = XtremIOConstants.XTREMIO_VOLUMES_STR.concat(XtremIOConstants.getInputNameString(volumeName));
ClientResponse response = get(URI.create(uriStr));
XtremIOVolumes volumesResponse = getResponseObject(XtremIOVolumes.class, response);
XtremIOVolume volume = volumesResponse.getContent();
log.info(volume.toString());
return volume;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolume in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getXtremIOVolumes.
@Override
public List<XtremIOVolume> getXtremIOVolumes(String clusterName) throws Exception {
ClientResponse response = get(XtremIOConstants.XTREMIO_VOLUMES_URI);
XtremIOVolumesInfo volumeLinks = getResponseObject(XtremIOVolumesInfo.class, response);
log.info("Returned Volume Links size : {}", volumeLinks.getVolumeInfo().length);
List<XtremIOVolume> volumeList = getXtremIOVolumesForLinks(Arrays.asList(volumeLinks.getVolumeInfo()), clusterName);
return volumeList;
}
Aggregations