Get final port mappings using allocated ports.

@return The port mapping.
486146
public Map<String, PortMapping> ports() {
    final ImmutableMap.Builder<String, PortMapping> builder = ImmutableMap.builder();
    for (final Map.Entry<String, PortMapping> e : job.getPorts().entrySet()) {
      final PortMapping mapping = e.getValue();
      builder.put(e.getKey(), mapping.hasExternalPort()
                              ? mapping
                              : mapping.withExternalPort(checkNotNull(ports.get(e.getKey()))));
    }
    return builder.build();
  }
1168268
public java.util.List<TerminateConnectionStatus> getConnectionStatuses() {
        if (connectionStatuses == null) {
            connectionStatuses = new com.amazonaws.internal.SdkInternalList<TerminateConnectionStatus>();
        }
        return connectionStatuses;
    }
1125130
public Collection<EndpointInfo> getEndpointInfos() {

        ArrayList<EndpointInfo> values = new ArrayList<EndpointInfo>();

        Iterator<String> it = getEndpointNames().iterator();
        // for each endpoint name, iterate over it's list of endpoints and add to values
        while (it.hasNext()) {
            List<EndpointInfo> list = endpointInfoMap.get(it.next());
            for (int i = 0; i < list.size(); i++) {
                values.add(list.get(i));
            }
        }
        return Collections.unmodifiableCollection(values);
        //return Collections.unmodifiableCollection(endpointInfoMap.values());
    }
1265062
public static Set<String> getLocalAddresses() {
        try {
            List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());

            Set<String> result = new HashSet<>();

            for (NetworkInterface networkInterface : interfaces) {
                if (networkInterface.isLoopback() || !networkInterface.isUp())
                    continue;

                for (InterfaceAddress address : networkInterface.getInterfaceAddresses()) {
                    String addr = address.getAddress().getHostAddress();

                    if (addr == null || addr.isEmpty() || addr.contains(":"))
                        continue;

                    result.add(addr);
                }
            }

            return result;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
246724
public java.util.Map<java.lang.String, alluxio.grpc.MountPointInfo> getMountPointsMap() {
    return internalGetMountPoints().getMap();
  }
987212
public java.util.List<Interconnect> getInterconnects() {
        if (interconnects == null) {
            interconnects = new com.amazonaws.internal.SdkInternalList<Interconnect>();
        }
        return interconnects;
    }
511798
public List<PortletType<PortletAppType<T>>> getAllPortlet()
   {
      List<PortletType<PortletAppType<T>>> list = new ArrayList<PortletType<PortletAppType<T>>>();
      List<Node> nodeList = childNode.get("portlet");
      for(Node node: nodeList)
      {
         PortletType<PortletAppType<T>>  type = new PortletTypeImpl<PortletAppType<T>>(this, "portlet", childNode, node);
         list.add(type);
      }
      return list;
   }
1263347
public List<PortletType<PortletDescriptor>> getAllPortlet()
   {
      List<PortletType<PortletDescriptor>> list = new ArrayList<PortletType<PortletDescriptor>>();
      List<Node> nodeList = model.get("portlet");
      for(Node node: nodeList)
      {
         PortletType<PortletDescriptor>  type = new PortletTypeImpl<PortletDescriptor>(this, "portlet", model, node);
         list.add(type);
      }
      return list;
   }
1143816
public Map<String, Object> getOutboundConnectionInfo() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getOutboundConnectionInfo");
        Map<String, Object> outboundConnectionInfo = ThreadManager.getInstance().getOutboundConnectionInfo();
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "getOutboundConnectionInfo", outboundConnectionInfo);
        return outboundConnectionInfo;
    }
815800
public List<PortComponentRefType<ServiceRefType<T>>> getAllPortComponentRef()
   {
      List<PortComponentRefType<ServiceRefType<T>>> list = new ArrayList<PortComponentRefType<ServiceRefType<T>>>();
      List<Node> nodeList = childNode.get("port-component-ref");
      for(Node node: nodeList)
      {
         PortComponentRefType<ServiceRefType<T>>  type = new PortComponentRefTypeImpl<ServiceRefType<T>>(this, "port-component-ref", childNode, node);
         list.add(type);
      }
      return list;
   }
637051
public java.util.List<Mapping> getMapping() {  
		if (myMapping == null) {
			myMapping = new java.util.ArrayList<Mapping>();
		}
		return myMapping;
	}
915565
public static int mapPort(Map<Integer, Integer> mapping, int port) {
    Integer mappedPort = mapping.get(port);
    if( mappedPort == null ) throw new RuntimeException("Could not map port "+port);
    return mappedPort;
  }
694692
def portMappings() 
            joinThread()
            i, r = 0, 0
            mappings = Array.new
            while r == 0 
                rhost = getCString()
                enabled = getCString()
                duration = getCString()
                description = getCString()
                nport = getCString()
                lport = getCString()
                duration = getCString()
                client = getCString()
                protocol = getCString()

                r = MiniUPnP.UPNP_GetGenericPortMappingEntry(@urls.controlURL,
                                  @data.servicetype,i.to_s,nport,client,lport,
                                  protocol,description,enabled,rhost,duration)
                if r != 0 then
                    break;
                end
                i = i+1
                mappings << PortMapping.new(client.rstrip,lport.rstrip.to_i,
                                  nport.rstrip.to_i,protocol.rstrip,
                                  description.rstrip,enabled.rstrip,
                                  rhost.rstrip,duration.rstrip)
            end 
            return  mappings
        end
50564
public byte[] getPort() {
        byte[] port = new byte[2];
        int p = (getEndpointAddress() == null ? this.port
                : getEndpointAddress().getPort());
        port[1] = (byte) p;
        port[0] = (byte) (p >> 8);
        return port;
    }
645871
public Iterator targetMappings() {
        // System.out.println("TargetMappings called");
        // return vHostTable.values().iterator(); 316624
        Collection vHosts = vHostTable.values(); // 316624
        List l = new ArrayList(); // 316624
        l.addAll(vHosts); // 316624
        return l.listIterator(); // 316624
    }
370827
public synchronized Map<PoolInfo, PoolInfo> getRedirects() {
    return (poolInfoToRedirect == null) ? null :
        new HashMap<PoolInfo, PoolInfo>(poolInfoToRedirect);
  }
65905
public java.util.List<String> getDnsIpAddresses() {
        if (dnsIpAddresses == null) {
            dnsIpAddresses = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return dnsIpAddresses;
    }