Class AbstractJBossInstalledLocalContainer

    • Method Detail

      • 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
      • getConfDir

        public String getConfDir​(String configurationName)
        Specified by:
        getConfDir in interface JBossInstalledLocalContainer
        Parameters:
        configurationName - the JBoss server configuration name for which to return the conf dir
        Returns:
        The conf directory located under the container's home installation directory
      • getLibDir

        public String getLibDir​(String configurationName)
        Specified by:
        getLibDir in interface JBossInstalledLocalContainer
        Parameters:
        configurationName - the JBoss server configuration name for which to return the conf dir
        Returns:
        The lib directory located under the container's home installation directory
      • getDeployDir

        public String getDeployDir​(String configurationName)
        Specified by:
        getDeployDir in interface JBossInstalledLocalContainer
        Parameters:
        configurationName - the JBoss server configuration name for which to return the conf dir
        Returns:
        The deploy directory located under the container's home installation directory
      • getSpecificConfigurationDir

        protected String getSpecificConfigurationDir​(String location,
                                                     String configurationName)
        Parameters:
        location - the name of the directory to return inside the server configuration
        configurationName - the server configuration name to use. A server configuration is located in the server/ directory inside the JBoss installation dir.
        Returns:
        the location of the passed directory name inside the server configuration, as a File
      • verifyJBossHome

        protected void verifyJBossHome()
        Verify that the JBoss directory structure is valid and throw a ContainerException if not.
      • getJBossLogLevel

        protected String getJBossLogLevel​(String cargoLogLevel)
        Translate Cargo logging levels into JBoss logging levels. The default implementation is for log4j, but can be overridden by a sub-class should JBoss change logging framework.
        Parameters:
        cargoLogLevel - Cargo logging level
        Returns:
        the corresponding JBoss (log4j) logging level