Class HanaContainer

    • Method Detail

      • startWithCreate

        public boolean startWithCreate()
        Start the container and wait for it to be ready.

        This checks if the container is already running.

        Returns false if the wait for ready was unsuccessful.

      • startWithDropCreate

        public boolean startWithDropCreate()
        Start with a drop and create of the database and user.
      • 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.
      • waitForDatabaseReady

        public boolean waitForDatabaseReady()
        Return true when the DB is ready for taking commands (like create database, user 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