Class AbstractWebLogicInstalledLocalContainer

    • Method Detail

      • setBeaHome

        public void setBeaHome​(String beaHome)
        Sets the Bea home directory.
        Parameters:
        beaHome - The BEA home directory
      • getBeaHomeFiles

        protected List<String> getBeaHomeFiles()
        Returns:
        a list of files that indicate a properly installed BEA_HOME
      • getBeaHomeDirs

        protected List<String> getBeaHomeDirs()
        Returns:
        a list of directories that indicate a properly installed BEA_HOME
      • getWeblogicHomeFiles

        protected List<String> getWeblogicHomeFiles()
        Returns:
        a list of files that indicate a properly installed WL_HOME
      • getWeblogicHomeDirs

        protected List<String> getWeblogicHomeDirs()
        Returns:
        a list of directories that indicate a properly installed WL_HOME
      • verifyWeblogicHome

        protected void verifyWeblogicHome()
        Verify that the WebLogic home directory structure is valid and throw a ContainerException if not.
      • verifyBeaHome

        protected void verifyBeaHome()
        Verify that the Bea home directory structure is valid and throw a ContainerException if not.
      • verify

        protected void verify​(String errorPrefix,
                              String errorSuffix,
                              List<String> requiredDirs,
                              List<String> requiredFiles)
        run through a list of expected files and directories that indicate a properly installed product.
        Parameters:
        errorPrefix - - Prefix to the ContainerException, if a file or directory is missing
        errorSuffix - - Suffix o the above
        requiredDirs - - Directories that are required to exist
        requiredFiles - - Files that are required to exist
      • initBeaHome

        public void initBeaHome()
        Check the WLS installation directory setting and if the beaHome attribute is not set, guess it.
      • executePostStartTasks

        protected void executePostStartTasks()
                                      throws Exception
        Some containers may require some extra steps after startup.. Define the CARGO servlet users in WebLogic.
        Overrides:
        executePostStartTasks in class AbstractLocalContainer
        Throws:
        Exception - if any error is raised during these executions
      • addWeblogicAdminArguments

        protected void addWeblogicAdminArguments​(JvmLauncher java)
        Add WebLogic admin arguments.
        Parameters:
        java - Java launcher.
      • getBeaHome

        public String getBeaHome()
        The BEA_HOME is a root directory for various versions of WebLogic server. Multiple BEA_HOMEs may exist on a machine, and any changes to this folder will affect all configurations that use it. The BEA_HOME is read-only to running processes. It is modified when patching or installing new versions of WebLogic.
        Specified by:
        getBeaHome in interface WebLogicLocalContainer
        Returns:
        The BEA_HOME of this WebLogic installation.
      • getWeblogicHome

        public String getWeblogicHome()
        There are one or many WL_HOMEs per BEA_HOME. This path contains the versioned WebLogic libraries used by running configurations. This area is typically read-only to running processes. It is modified when patching or adding new extensions to an existing version of WebLogic.
        Specified by:
        getWeblogicHome in interface WebLogicLocalContainer
        Returns:
        The WL_HOME, or version-specific installation
      • getVersion

        public String getVersion​(String defaultVersion)
        Parse installed WebLogic version.
        Specified by:
        getVersion in interface WebLogicLocalContainer
        Parameters:
        defaultVersion - the version used if the exact WebLogic version can't be determined
        Returns:
        the WebLogic version, or defaultVersion if the version number could not be determined.