Class ComposeServiceWaitStrategyTarget

java.lang.Object
io.quarkus.devservices.deployment.compose.ComposeServiceWaitStrategyTarget
All Implemented Interfaces:
Supplier<com.github.dockerjava.api.command.InspectContainerResponse>, org.testcontainers.containers.ContainerState, org.testcontainers.containers.wait.strategy.WaitStrategyTarget

public class ComposeServiceWaitStrategyTarget extends Object implements org.testcontainers.containers.wait.strategy.WaitStrategyTarget, Supplier<com.github.dockerjava.api.command.InspectContainerResponse>
A WaitStrategyTarget that represents a container in a docker-compose file.
  • Field Summary

    Fields inherited from interface org.testcontainers.containers.ContainerState

    STATE_HEALTHY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ComposeServiceWaitStrategyTarget(com.github.dockerjava.api.DockerClient dockerClient, com.github.dockerjava.api.model.Container container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.github.dockerjava.api.command.InspectContainerResponse
    get()
     
     
    com.github.dockerjava.api.command.InspectContainerResponse
     
     
    int
     
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.testcontainers.containers.ContainerState

    copyFileFromContainer, copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getDockerClient, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, getPortBindings, isCreated, isHealthy, isRunning

    Methods inherited from interface org.testcontainers.containers.wait.strategy.WaitStrategyTarget

    getLivenessCheckPortNumbers
  • Constructor Details

    • ComposeServiceWaitStrategyTarget

      public ComposeServiceWaitStrategyTarget(com.github.dockerjava.api.DockerClient dockerClient, com.github.dockerjava.api.model.Container container)
  • Method Details

    • getExposedPorts

      public List<Integer> getExposedPorts()
      Specified by:
      getExposedPorts in interface org.testcontainers.containers.ContainerState
    • getContainerId

      public String getContainerId()
      Specified by:
      getContainerId in interface org.testcontainers.containers.ContainerState
    • getServiceName

      public String getServiceName()
    • getContainerNumber

      public int getContainerNumber()
    • getContainerName

      public String getContainerName()
    • getContainerInfo

      public com.github.dockerjava.api.command.InspectContainerResponse getContainerInfo()
      Specified by:
      getContainerInfo in interface org.testcontainers.containers.ContainerState
    • get

      public com.github.dockerjava.api.command.InspectContainerResponse get()
      Specified by:
      get in interface Supplier<com.github.dockerjava.api.command.InspectContainerResponse>