Class ContainerUtils


  • public final class ContainerUtils
    extends Object
    Set of common Container utility methods for people extending Cargo.
    • Method Detail

      • getCPCURL

        public static URL getCPCURL​(Configuration configuration)
        Parameters:
        configuration - the configuration from which to derive the CPC URL. We need it to get the hostname, the port, etc.
        Returns:
        the CPC Cargo URL
      • waitTillContainerIsStopped

        public static void waitTillContainerIsStopped​(Container container)
        Wait indefinitely till the container is stopped.
        Parameters:
        container - the local container