Class JBoss7xInstalledLocalContainer

    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface Container
        Returns:
        the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
      • 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).
      • getVersion

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

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

        protected void copyExtraClasspathJars()
                                       throws IOException
        Cope extra classpath JARs.
        Throws:
        IOException - If creating the JARs' module.xml fails.
      • 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.
      • isOnline

        public boolean isOnline()
        Returns:
        True if WildFly is started and has cargocpc deployed.