Search in sources :

Example 1 with XtremIOLunMapsInfo

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());
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Example 2 with XtremIOLunMapsInfo

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());
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Example 3 with XtremIOLunMapsInfo

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;
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMap(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Example 4 with XtremIOLunMapsInfo

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;
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMap(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Example 5 with XtremIOLunMapsInfo

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());
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Aggregations

XtremIOLunMapsInfo (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)7 ClientResponse (com.sun.jersey.api.client.ClientResponse)7 XtremIOLunMap (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap)2