Package com.atlassian.bamboo.docker
Class PortMapping
- java.lang.Object
-
- com.atlassian.bamboo.docker.PortMapping
-
public class PortMapping extends Object
Represents a port exposed by a Docker container.
-
-
Constructor Summary
Constructors Constructor Description PortMapping(int containerPort, @Nullable Integer hostPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getContainerPort()
@Nullable Integer
getHostPort()
int
hashCode()
-
-
-
Constructor Detail
-
PortMapping
public PortMapping(int containerPort, @Nullable @Nullable Integer hostPort)
-
-
Method Detail
-
getContainerPort
public int getContainerPort()
- Returns:
- the exposed container port.
-
getHostPort
@Nullable public @Nullable Integer getHostPort()
- Returns:
- the mapped host port. May be null if the host port is to be dynamically bound to the exposed container port.
-
-