Class PortMapping
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.PortMapping
-
public class PortMapping extends Object
A representation of a container port mapping.- Author:
- jk 2018.10.17
-
-
Constructor Summary
Constructors Constructor Description PortMapping(String sName, int nPortContainer)Create aPortMapping.PortMapping(String sName, int nPortLocal, int nPortContainer)Create aPortMapping.PortMapping(String sName, com.oracle.bedrock.util.Capture<Integer> localPort, int nPortContainer)Create aPortMapping.PortMapping(String sName, Iterator<Integer> itPortLocal, int nPortContainer)Create aPortMapping.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.oracle.bedrock.runtime.options.Ports.PortgetPort()Obtain the local port value.StringtoString()
-
-
-
Constructor Detail
-
PortMapping
public PortMapping(String sName, int nPortContainer)
Create aPortMapping.- Parameters:
sName- the name of the mappingnPortContainer- the container port to map
-
PortMapping
public PortMapping(String sName, int nPortLocal, int nPortContainer)
Create aPortMapping.- Parameters:
sName- the name of the mappingnPortLocal- the local port to map to the container portnPortContainer- the container port to map
-
PortMapping
public PortMapping(String sName, Iterator<Integer> itPortLocal, int nPortContainer)
Create aPortMapping.- Parameters:
sName- the name of the mappingitPortLocal- the local port to map to the container portnPortContainer- the container port to map
-
PortMapping
public PortMapping(String sName, com.oracle.bedrock.util.Capture<Integer> localPort, int nPortContainer)
Create aPortMapping.- Parameters:
sName- the name of the mappinglocalPort- the local port to map to the container portnPortContainer- the container port to map
-
-