protected void processInitiators(ExportGroup exportGroup,Collection<Initiator> initiators,Collection<String> portNames,Map<String,URI> portNameToInitiatorURI,Collection<URI> hostURIs,ListMultimap<String,String> computeResourceToPortNames){
  for (  Initiator initiator : initiators) {
    String normalizedName=Initiator.normalizePort(initiator.getInitiatorPort());
    portNames.add(normalizedName);
    portNameToInitiatorURI.put(normalizedName,initiator.getId());
    if (hostURIs != null) {
      if (!NullColumnValueGetter.isNullURI(initiator.getHost()) && !hostURIs.contains(initiator.getHost())) {
        hostURIs.add(initiator.getHost());
      }
    }
    if (computeResourceToPortNames != null) {
      String computeResourceId;
      if (exportGroup != null && exportGroup.forCluster()) {
        computeResourceId=initiator.getClusterName();
      }
 else {
        URI hostURI=initiator.getHost();
        if (hostURI == null) {
          hostURI=NullColumnValueGetter.getNullURI();
        }
        computeResourceId=hostURI.toString();
      }
      computeResourceToPortNames.put(computeResourceId,normalizedName);
    }
  }
}

protected void processInitiators ( ExportGroup exportGroup , Collection < Initiator > initiators , Collection < String > portNames , Map < String , URI > portNameToInitiatorURI , Collection < URI > hostURIs , ListMultimap < String , String > computeResourceToPortNames ) { for ( Initiator initiator : initiators ) { String normalizedName = Initiator . normalizePort ( initiator . getInitiatorPort ( ) ) ; portNames . add ( normalizedName ) ; portNameToInitiatorURI . put ( normalizedName , initiator . getId ( ) ) ; if ( hostURIs != null ) { if ( ! NullColumnValueGetter . isNullURI ( initiator . getHost ( ) ) && ! hostURIs . contains ( initiator . getHost ( ) ) ) { hostURIs . add ( initiator . getHost ( ) ) ; } } if ( computeResourceToPortNames != null ) { String computeResourceId ; if ( exportGroup != null && exportGroup . forCluster ( ) ) { computeResourceId = initiator . getClusterName ( ) ; } else { URI hostURI = initiator . getHost ( ) ; if ( hostURI == null ) { hostURI = NullColumnValueGetter . getNullURI ( ) ; } computeResourceId = hostURI . toString ( ) ; } computeResourceToPortNames . put ( computeResourceId , normalizedName ) ; } } }
a utility for processing initiators and updating data structures . the data structures are for mapping an initiator reference on the array , which is in terms of a wwn / iqn , to an initiator reference in vipr , which is in terms of uri . there ' s an optional parameter to return a list of host uris referenced by the list of initiators . there ' s an optional parameter to return a multimap of compute resource to a list of array port wwns .
