Class AbstractWildFlyInstalledLocalContainer

    • Field Detail

      • version

        protected String version
        WildFly version.
    • Method Detail

      • setProperties

        protected void setProperties​(JvmLauncher java)
        Set the properties on the JVM launcher.
        Parameters:
        java - JVM launcher to set the properties on.
      • executeScript

        public void executeScript​(List<ScriptCommand> configurationScript)
        Writes CLI configuration script.
        Specified by:
        executeScript in interface ScriptingCapableContainer
        Parameters:
        configurationScript - Script containing CLI configuration to be executed.
      • getName

        public String getName()
        Specified by:
        getName in interface Container
        Returns:
        the human readable name of the Container (ex: "Resin 3.x", "JBoss 3.0.8", etc).
      • getDefaultName

        protected abstract String getDefaultName()
        Returns:
        Default name of the container, including the JBoss EAP version when relevant. For example: WildFly 10.x (JBoss EAP 7.0)
      • getConfigAdminDirectory

        protected File getConfigAdminDirectory()
        Returns:
        Config admin directory.
      • addRuntimeArgs

        protected void addRuntimeArgs​(JvmLauncher java)
        Add command line arguments to the java command.. As WildFly needs to have the runtime AFTER the arguments passed to the main class, we need to set the associated argument line when starting container (and not when initializing the JVM launcher).
        Overrides:
        addRuntimeArgs in class AbstractInstalledLocalContainer
        Parameters:
        java - The java command
      • waitForCompletion

        protected void waitForCompletion​(boolean waitForStarting)
                                  throws InterruptedException
        Ping the WAR CPC to verify if the container is started or stopped.
        Overrides:
        waitForCompletion in class AbstractLocalContainer
        Parameters:
        waitForStarting - if true then wait for container start, if false wait for container stop
        Throws:
        InterruptedException - if the thread sleep is interrupted