Interface ManagedResource

    • Method Detail

      • getDisplayName

        String getDisplayName()
        Returns:
        name of the running resource.
      • 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.
      • getURI

        URILike getURI​(Protocol protocol)
        Get the Host 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.
      • validate

        default void validate()