use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getLunMapsForInitiatorGroup.
@Override
public List<XtremIOObjectInfo> getLunMapsForInitiatorGroup(String igName, String clusterName) throws Exception {
String filterString = String.format(XtremIOConstants.XTREMIO_LUNMAP_IG_FILTER_STR, igName, clusterName);
String uriString = XtremIOConstants.XTREMIO_V2_LUNMAPS_STR.concat(filterString);
ClientResponse response = get(URI.create(uriString));
XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
return Arrays.asList(lunMapLinks.getLunMapInfo());
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getLunMaps.
@Override
public List<XtremIOObjectInfo> getLunMaps(String clusterName) throws Exception {
String uriString = XtremIOConstants.XTREMIO_V2_LUNMAPS_STR.concat(XtremIOConstants.getInputClusterString(clusterName));
ClientResponse response = get(URI.create(uriString));
XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
return Arrays.asList(lunMapLinks.getLunMapInfo());
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getXtremIOLunMaps.
@Override
public List<XtremIOLunMap> getXtremIOLunMaps(String clusterName) throws Exception {
String uriString = XtremIOConstants.XTREMIO_V2_LUNMAPS_STR.concat(XtremIOConstants.getInputClusterString(clusterName));
ClientResponse response = get(URI.create(uriString));
XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
log.info("Returned LunMaps Links size : {}", lunMapLinks.getLunMapInfo().length);
List<XtremIOLunMap> lunMapList = getXtremIOLunMapsForLinks(Arrays.asList(lunMapLinks.getLunMapInfo()), clusterName);
return lunMapList;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getXtremIOLunMaps.
@Override
public List<XtremIOLunMap> getXtremIOLunMaps(String clusterName) throws Exception {
ClientResponse response = get(XtremIOConstants.XTREMIO_LUNMAPS_URI);
XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
log.info("Returned LunMaps Links size : {}", lunMapLinks.getLunMapInfo().length);
List<XtremIOLunMap> lunMapList = getXtremIOLunMapsForLinks(Arrays.asList(lunMapLinks.getLunMapInfo()), clusterName);
return lunMapList;
}
use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.
the class XtremIOV1Client method getXtremIOLunMapLinks.
@Override
public List<XtremIOObjectInfo> getXtremIOLunMapLinks(String clusterName) throws Exception {
ClientResponse response = get(XtremIOConstants.XTREMIO_LUNMAPS_URI);
XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
return Arrays.asList(lunMapLinks.getLunMapInfo());
}
Aggregations