Interface ManagedResource

    • Method Detail

      • start

        void start()
        Start the resource. If the resource is already started, it will do nothing.
        Throws:
        RuntimeException - when application errors at startup.
      • stop

        void stop()
        Stop the resource.
      • getHost

        String getHost​(Protocol protocol)
        Get the Host of the running resource.
      • getPort

        int getPort​(Protocol protocol)
        Get the Port of the running resource.
      • isRunning

        boolean isRunning()
        Returns:
        if the resource is running.
      • isFailed

        default boolean isFailed()
        Returns:
        if the resource has failed.
      • logs

        List<String> logs()
        Returns:
        the list of logs.
      • restart

        default void restart()
        Restart of the managed resource.