Class ClickHouseContainer

    • Method Detail

      • jdbcUrl

        public String jdbcUrl()
        Return the JDBC url to connect to this container.
      • start

        public boolean start()
        Description copied from interface: Container
        Start the container.
        Specified by:
        start in interface Container
      • startContainerOnly

        public boolean startContainerOnly()
        Start the container only without creating database, user, extensions etc.
      • isRunning

        public boolean isRunning()
        Description copied from interface: Container
        Return true if the container is running.
        Specified by:
        isRunning in interface Container
      • registerShutdownHook

        public void registerShutdownHook()
        Register a JVM Shutdown hook to stop the container with the given mode.
      • stop

        public void stop()
        Stop using the configured stopMode of 'stop' or 'remove'.

        Remove additionally removes the container (expected use in build agents).

        Specified by:
        stop in interface Container
      • stopRemove

        public void stopRemove()
        Stop and remove the container effectively deleting the database.
      • stopOnly

        public void stopOnly()
        Stop the container only (no remove).
        Specified by:
        stopOnly in interface Container