use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolumesInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getXtremIOVolumeLinks.
@Override
public List<XtremIOObjectInfo> getXtremIOVolumeLinks(String clusterName) throws Exception {
String uriString = XtremIOConstants.XTREMIO_V2_VOLUMES_STR.concat(XtremIOConstants.getInputClusterString(clusterName));
ClientResponse response = get(URI.create(uriString));
XtremIOVolumesInfo volumeLinks = getResponseObject(XtremIOVolumesInfo.class, response);
return Arrays.asList(volumeLinks.getVolumeInfo());
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolumesInfo in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getXtremIOVolumeLinks.
@Override
public List<XtremIOObjectInfo> getXtremIOVolumeLinks(String clusterName) throws Exception {
ClientResponse response = get(XtremIOConstants.XTREMIO_VOLUMES_URI);
XtremIOVolumesInfo volumeLinks = getResponseObject(XtremIOVolumesInfo.class, response);
return Arrays.asList(volumeLinks.getVolumeInfo());
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolumesInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getXtremIOVolumes.
@Override
public List<XtremIOVolume> getXtremIOVolumes(String clusterName) throws Exception {
String uriString = XtremIOConstants.XTREMIO_V2_VOLUMES_STR.concat(XtremIOConstants.getInputClusterString(clusterName));
ClientResponse response = get(URI.create(uriString));
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;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOVolumesInfo 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