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.
      • getVersion

        protected String getVersion​(String defaultVersion)
        Parse installed WildFly version.
        Parameters:
        defaultVersion - the default version used if the exact JBoss version can't be determined
        Returns:
        the WildFly version, or defaultVersion if the version number could not be determined.
      • 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