Class ServiceBinding

java.lang.Object
io.github.pod4dev.java.ServiceBinding

public class ServiceBinding extends Object
Service binging.
  • Constructor Details

    • ServiceBinding

      public ServiceBinding(String serviceName, String mappedHost, int exposedPort, int mappedPort)
      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

      public String getServiceName()
      Name of service that owns the exposed port.
    • getMappedHost

      public String getMappedHost()
      Host of exposed service.
    • getExposedPort

      public int getExposedPort()
      Exposed port.
    • getMappedPort

      public int getMappedPort()
      Mapped port.