Search in sources :

Example 6 with Itls

use of com.emc.storageos.vasa.data.internal.Volume.Itls in project coprhd-controller by CoprHD.

the class SyncManager method fetchVolumeIdsByHostInitiators.

private List<String> fetchVolumeIdsByHostInitiators(String csvSeparatedInitiatorList) throws SOSFailure {
    final String methodName = "fetchVolumeIdsByHostInitiators(): ";
    log.trace(methodName + "Entry with input: csvSeparatedInitiatorList[" + csvSeparatedInitiatorList + "]");
    Set<String> volumeIdSet = new HashSet<String>();
    for (Itls itlObj : this.fetchExportITLS(csvSeparatedInitiatorList)) {
        if (itlObj != null) {
            for (Itl itl : itlObj.getItls()) {
                Device device = itl.getDevice();
                if (device != null && device.getId() != null) {
                    volumeIdSet.add(device.getId());
                }
            }
        }
    }
    log.trace(methodName + "Exit returning volume ID list of size[" + volumeIdSet.size() + "]");
    return new ArrayList<String>(volumeIdSet);
}
Also used : Itls(com.emc.storageos.vasa.data.internal.Volume.Itls) Itl(com.emc.storageos.vasa.data.internal.Volume.Itls.Itl) Device(com.emc.storageos.vasa.data.internal.Volume.Itls.Itl.Device) ArrayList(java.util.ArrayList) HashSet(java.util.HashSet)

Aggregations

Itls (com.emc.storageos.vasa.data.internal.Volume.Itls)6 ArrayList (java.util.ArrayList)5 Itl (com.emc.storageos.vasa.data.internal.Volume.Itls.Itl)4 HashSet (java.util.HashSet)4 Target (com.emc.storageos.vasa.data.internal.Volume.Itls.Itl.Target)3 Device (com.emc.storageos.vasa.data.internal.Volume.Itls.Itl.Device)2 CoSList (com.emc.storageos.vasa.data.internal.CoS.CoSList)1 EventList (com.emc.storageos.vasa.data.internal.Event.EventList)1 StatList (com.emc.storageos.vasa.data.internal.StatList)1 StoragePort (com.emc.storageos.vasa.data.internal.StoragePort)1 SOSFailure (com.emc.storageos.vasa.fault.SOSFailure)1 UniformInterfaceException (com.sun.jersey.api.client.UniformInterfaceException)1 HostInitiatorInfo (com.vmware.vim.vasa._1_0.data.xsd.HostInitiatorInfo)1 UsageContext (com.vmware.vim.vasa._1_0.data.xsd.UsageContext)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 Hashtable (java.util.Hashtable)1 List (java.util.List)1