Package io.github.pod4dev.java
Class ServiceBinding
java.lang.Object
io.github.pod4dev.java.ServiceBinding
Service binging.
-
Constructor Summary
ConstructorsConstructorDescriptionServiceBinding(String serviceName, String mappedHost, int exposedPort, int mappedPort) Creates port binding. -
Method Summary
Modifier and TypeMethodDescriptionintExposed port.Host of exposed service.intMapped port.Name of service that owns the exposed port.
-
Constructor Details
-
ServiceBinding
Creates port binding.- Parameters:
serviceName- the name of service that owns by the given port.mappedHost- the service's host.exposedPort- the exposed port.mappedPort- the mapped port.
-
-
Method Details
-
getServiceName
Name of service that owns the exposed port. -
getMappedHost
Host of exposed service. -
getExposedPort
public int getExposedPort()Exposed port. -
getMappedPort
public int getMappedPort()Mapped port.
-