private VPlexClusterInfo findInitiators(List<PortInfo> initiatorPortInfo,List<VPlexInitiatorInfo> initiatorInfoList) throws VPlexApiException {
  VPlexClusterInfo initiatorClusterInfo=null;
  VPlexApiDiscoveryManager discoveryMgr=_vplexApiClient.getDiscoveryManager();
  List<VPlexClusterInfo> clusterInfoList=discoveryMgr.getClusterInfoLite();
  for (  VPlexClusterInfo clusterInfo : clusterInfoList) {
    initiatorInfoList.addAll(findInitiatorsOnCluster(clusterInfo.getName(),initiatorPortInfo,null));
    if (!initiatorInfoList.isEmpty()) {
      initiatorClusterInfo=clusterInfo;
      break;
    }
  }
  return initiatorClusterInfo;
}

private VPlexClusterInfo findInitiators ( List < PortInfo > initiatorPortInfo , List < VPlexInitiatorInfo > initiatorInfoList ) throws VPlexApiException { VPlexClusterInfo initiatorClusterInfo = null ; VPlexApiDiscoveryManager discoveryMgr = _vplexApiClient . getDiscoveryManager ( ) ; List < VPlexClusterInfo > clusterInfoList = discoveryMgr . getClusterInfoLite ( ) ; for ( VPlexClusterInfo clusterInfo : clusterInfoList ) { initiatorInfoList . addAll ( findInitiatorsOnCluster ( clusterInfo . getName ( ) , initiatorPortInfo , null ) ) ; if ( ! initiatorInfoList . isEmpty ( ) ) { initiatorClusterInfo = clusterInfo ; break ; } } return initiatorClusterInfo ; }
finds the initiator ports on the vplex corresponding to the ports specified in the passed port information . note that the functions presumes that all initiators to be found are on the same vplex cluster .
