Interface Player

All Superinterfaces:
AutoCloseable, GenericService
All Known Implementing Classes:
PlayerImpl

public interface Player extends GenericService
  • Method Details

    • withExposedService

      Player withExposedService(String serviceName, Integer exposedPort) throws PodmanException
      Specify service and its port for expose.
      Parameters:
      serviceName - name of service to expose.
      exposedPort - port to expose.
      Returns:
      container with exposed services.
      Throws:
      PodmanException
    • getMappedPort

      Integer getMappedPort(String serviceName, Integer exposedPort) throws PodmanException
      Getting mapped port for the given service's name and exposed port.
      Parameters:
      serviceName - the service name.
      exposedPort - the exposed port.
      Returns:
      mapped host.
      Throws:
      PodmanException