Search in sources :

Example 1 with VirtualArrayConnectivityList

use of com.emc.storageos.model.varray.VirtualArrayConnectivityList in project coprhd-controller by CoprHD.

the class VirtualArrayService method getConnectivity.

/**
 * Gets information about VirtualArrays that are connected to the passed in VirtualArray that support some kind of protection
 *
 * @param varray
 * @return rest response
 */
private VirtualArrayConnectivityList getConnectivity(VirtualArray varray) {
    Set<VirtualArrayConnectivityRestRep> connections = AbstractBlockServiceApiImpl.getVirtualArrayConnectivity(_dbClient, varray.getId());
    VirtualArrayConnectivityList connectivityList = new VirtualArrayConnectivityList();
    connectivityList.setConnections(new ArrayList<VirtualArrayConnectivityRestRep>());
    connectivityList.getConnections().addAll(connections);
    return connectivityList;
}
Also used : VirtualArrayConnectivityRestRep(com.emc.storageos.model.varray.VirtualArrayConnectivityRestRep) VirtualArrayConnectivityList(com.emc.storageos.model.varray.VirtualArrayConnectivityList)

Aggregations

VirtualArrayConnectivityList (com.emc.storageos.model.varray.VirtualArrayConnectivityList)1 VirtualArrayConnectivityRestRep (com.emc.storageos.model.varray.VirtualArrayConnectivityRestRep)1