Package io.quarkus.devservices.common
Class ContainerLocator
java.lang.Object
io.quarkus.devservices.common.ContainerLocator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BiPredicate<com.github.dockerjava.api.model.Container, String> -
Constructor Summary
ConstructorsConstructorDescriptionContainerLocator(String devServiceLabel, int port) ContainerLocator(BiPredicate<com.github.dockerjava.api.model.Container, String> filter, int port) -
Method Summary
Modifier and TypeMethodDescriptionlocateContainer(String serviceName, boolean shared, io.quarkus.runtime.LaunchMode launchMode) locateContainer(String serviceName, boolean shared, io.quarkus.runtime.LaunchMode launchMode, BiConsumer<Integer, ContainerAddress> consumer) static ContainerLocatorlocateContainerWithLabels(int port, String... devServiceLabels) locatePublicPort(String serviceName, boolean shared, io.quarkus.runtime.LaunchMode launchMode, int privatePort)
-
Field Details
-
IS_NOT_CREATED_BY_US_SELECTOR
public static final BiPredicate<com.github.dockerjava.api.model.Container,String> IS_NOT_CREATED_BY_US_SELECTOR
-
-
Constructor Details
-
ContainerLocator
-
ContainerLocator
public ContainerLocator(BiPredicate<com.github.dockerjava.api.model.Container, String> filter, int port)
-
-
Method Details
-
locateContainerWithLabels
-
locateContainer
public Optional<ContainerAddress> locateContainer(String serviceName, boolean shared, io.quarkus.runtime.LaunchMode launchMode) -
locateContainer
public Optional<String> locateContainer(String serviceName, boolean shared, io.quarkus.runtime.LaunchMode launchMode, BiConsumer<Integer, ContainerAddress> consumer) - Returns:
- container id, if exists
-
locatePublicPort
-