public interface ConnectionPorts
Provides access to the ports that can be used to connect to a RunningService.
RunningService| Modifier and Type | Method and Description |
|---|---|
int |
get(int containerPort)
Return the host port mapped to the given container port.
|
List<Integer> |
getAll()
Return all host ports in use.
|
List<Integer> |
getAll(String protocol)
Return all host ports in use that match the given protocol.
|
int get(int containerPort)
containerPort - the container port. This is usually the standard port for the
service (e.g. port 80 for HTTP)IllegalStateException - if the container port is not mappedList<Integer> getAll()
getAll(String)Copyright © 2010–2025. All rights reserved.