Search in sources :

Example 6 with XtremIOLunMap

use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap 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)

Aggregations

XtremIOLunMap (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap)6 XtremIOObjectInfo (com.emc.storageos.xtremio.restapi.model.response.XtremIOObjectInfo)4 ClientResponse (com.sun.jersey.api.client.ClientResponse)4 ArrayList (java.util.ArrayList)3 XtremIOLunMaps (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMaps)2 XtremIOLunMapsInfo (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)2 URI (java.net.URI)2 HashSet (java.util.HashSet)2 URIQueryResultList (com.emc.storageos.db.client.constraint.URIQueryResultList)1 Initiator (com.emc.storageos.db.client.model.Initiator)1 DeviceControllerException (com.emc.storageos.exceptions.DeviceControllerException)1 XtremIOClient (com.emc.storageos.xtremio.restapi.XtremIOClient)1 XtremIOApiException (com.emc.storageos.xtremio.restapi.errorhandling.XtremIOApiException)1 XtremIOInitiator (com.emc.storageos.xtremio.restapi.model.response.XtremIOInitiator)1 HashMap (java.util.HashMap)1 List (java.util.List)1 Set (java.util.Set)1