Class AbstractWebLogicInstalledLocalContainer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addWeblogicAdminArguments​(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
      Add WebLogic admin arguments.
      void doStart​(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
      void doStop​(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
      protected void executePostStartTasks()
      .
      String getBeaHome()
      The BEA_HOME is a root directory for various versions of WebLogic server.
      protected List<String> getBeaHomeDirs()  
      protected List<String> getBeaHomeFiles()  
      org.codehaus.cargo.container.ContainerCapability getCapability()
      String getVersion​(String defaultVersion)
      Parse installed WebLogic version.
      String getWeblogicHome()
      There are one or many WL_HOMEs per BEA_HOME.
      protected List<String> getWeblogicHomeDirs()  
      protected List<String> getWeblogicHomeFiles()  
      void initBeaHome()
      Check the WLS installation directory setting and if the beaHome attribute is not set, guess it.
      void setBeaHome​(String beaHome)
      Sets the Bea home directory.
      protected void 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.
      protected void verifyBeaHome()
      Verify that the Bea home directory structure is valid and throw a ContainerException if not.
      protected void verifyWeblogicHome()
      Verify that the WebLogic home directory structure is valid and throw a ContainerException if not.
      • Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer

        addExtraClasspath, addExtraClasspath, addMemoryArguments, addRuntimeArgs, addSharedClasspath, addToolsJarToClasspath, createJvmLauncher, forceStopInternal, getAntUtils, getExtraClasspath, getHome, getHttpUtils, getJavaHome, getJvmLauncherFactory, getResourceUtils, getSharedClasspath, getSystemProperties, getType, ifPresentAddPathToList, setExtraClasspath, setHome, setJvmLauncherFactory, setJvmToLaunchContainerIn, setLogger, setSharedClasspath, setSystemProperties, startInternal, stopInternal
      • Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer

        getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, waitForCompletion, waitForPortShutdown, waitForStarting
      • Methods inherited from class org.codehaus.cargo.util.log.LoggedObject

        getLogger
      • Methods inherited from interface org.codehaus.cargo.container.Container

        getId, getName, getState, getType
      • Methods inherited from interface org.codehaus.cargo.container.LocalContainer

        getConfiguration, getFileHandler, setConfiguration, setFileHandler
      • Methods inherited from interface org.codehaus.cargo.util.log.Loggable

        getLogger, setLogger
      • Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer

        getOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
    • Constructor Detail

      • AbstractWebLogicInstalledLocalContainer

        public AbstractWebLogicInstalledLocalContainer​(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)
        See Also:
        AbstractInstalledLocalContainer(LocalConfiguration)
    • Method Detail

      • setBeaHome

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

        public org.codehaus.cargo.container.ContainerCapability getCapability()
        Specified by:
        getCapability in interface org.codehaus.cargo.container.Container
      • verify

        protected final void verify()
        Overrides:
        verify in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
      • 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.
      • doStart

        public void doStart​(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
                     throws Exception
        Specified by:
        doStart in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
        Throws:
        Exception
      • executePostStartTasks

        protected void executePostStartTasks()
                                      throws Exception
        . Define the CARGO servlet users in WebLogic.
        Overrides:
        executePostStartTasks in class org.codehaus.cargo.container.spi.AbstractLocalContainer
        Throws:
        Exception
      • doStop

        public void doStop​(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
                    throws Exception
        Specified by:
        doStop in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
        Throws:
        Exception
      • addWeblogicAdminArguments

        protected void addWeblogicAdminArguments​(org.codehaus.cargo.container.spi.jvm.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.