Class PortMapping


  • public class PortMapping
    extends Object
    A representation of a container port mapping.
    Author:
    jk 2018.10.17
    • Constructor Detail

      • PortMapping

        public PortMapping​(String sName,
                           int nPortContainer)
        Create a PortMapping.
        Parameters:
        sName - the name of the mapping
        nPortContainer - the container port to map
      • PortMapping

        public PortMapping​(String sName,
                           int nPortLocal,
                           int nPortContainer)
        Create a PortMapping.
        Parameters:
        sName - the name of the mapping
        nPortLocal - the local port to map to the container port
        nPortContainer - the container port to map
      • PortMapping

        public PortMapping​(String sName,
                           Iterator<Integer> itPortLocal,
                           int nPortContainer)
        Create a PortMapping.
        Parameters:
        sName - the name of the mapping
        itPortLocal - the local port to map to the container port
        nPortContainer - the container port to map
      • PortMapping

        public PortMapping​(String sName,
                           com.oracle.bedrock.util.Capture<Integer> localPort,
                           int nPortContainer)
        Create a PortMapping.
        Parameters:
        sName - the name of the mapping
        localPort - the local port to map to the container port
        nPortContainer - the container port to map
    • Method Detail

      • getPort

        public com.oracle.bedrock.runtime.options.Ports.Port getPort()
        Obtain the local port value.
        Returns:
        the local port value