Package io.github.pod4dev.java.service
Interface Player
- All Superinterfaces:
AutoCloseable,GenericService
- All Known Implementing Classes:
PlayerImpl
-
Method Summary
Modifier and TypeMethodDescriptiongetMappedPort(String serviceName, Integer exposedPort) Getting mapped port for the given service's name and exposed port.withExposedService(String serviceName, Integer exposedPort) Specify service and its port for expose.Methods inherited from interface io.github.pod4dev.java.service.GenericService
close, getClient, getMappedHost, isRunning, start, stop, withCleanup, withRemoveVolumes
-
Method Details
-
withExposedService
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
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
-