Class WebLogic121xInstalledLocalContainer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.AbstractContainer
-
- org.codehaus.cargo.container.spi.AbstractLocalContainer
-
- org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
-
- org.codehaus.cargo.container.weblogic.internal.AbstractWebLogicInstalledLocalContainer
-
- org.codehaus.cargo.container.weblogic.WebLogic121xInstalledLocalContainer
-
- All Implemented Interfaces:
org.codehaus.cargo.container.Container
,org.codehaus.cargo.container.InstalledLocalContainer
,org.codehaus.cargo.container.internal.RunnableContainer
,org.codehaus.cargo.container.internal.SpawnedContainer
,org.codehaus.cargo.container.LocalContainer
,org.codehaus.cargo.container.ScriptingCapableContainer
,WebLogicLocalContainer
,WebLogicLocalScriptingContainer
,org.codehaus.cargo.util.log.Loggable
- Direct Known Subclasses:
WebLogic122xInstalledLocalContainer
public class WebLogic121xInstalledLocalContainer extends AbstractWebLogicInstalledLocalContainer implements WebLogicLocalScriptingContainer
Special container support for the Bea WebLogic 12.1.3 application server. Contains WLST support.
-
-
Constructor Summary
Constructors Constructor Description WebLogic121xInstalledLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStop(org.codehaus.cargo.container.spi.jvm.JvmLauncher java)
protected void
executePostStartTasks()
.void
executeScript(List<org.codehaus.cargo.container.configuration.script.ScriptCommand> configurationScript)
Writes configuration script using WLST.void
executeScriptFiles(List<String> scriptFilePaths)
Executes scripts using WLST.String
getAutoDeployDirectory()
When valid deployment files are written to auto-deploy directory, WebLogic will deploy and start them automatically.protected List<String>
getBeaHomeDirs()
Also includes checking of the modules directory, which is unique to WebLogic 10.protected List<String>
getBeaHomeFiles()
String
getId()
String
getName()
protected void
waitForCompletion(boolean waitForStarting)
-
Methods inherited from class org.codehaus.cargo.container.weblogic.internal.AbstractWebLogicInstalledLocalContainer
addWeblogicAdminArguments, doStart, getBeaHome, getCapability, getVersion, getWeblogicHome, getWeblogicHomeDirs, getWeblogicHomeFiles, initBeaHome, setBeaHome, verify, verify, verifyBeaHome, verifyWeblogicHome
-
Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
addExtraClasspath, addExtraClasspath, addMemoryArguments, addRuntimeArgs, addSharedClasspath, addToolsJarToClasspath, createJvmLauncher, forceStopInternal, 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, waitForPortShutdown, waitForStarting
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.cargo.container.Container
getCapability, getState, getType
-
Methods inherited from interface org.codehaus.cargo.container.LocalContainer
getConfiguration, getFileHandler, setConfiguration, setFileHandler
-
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer
getOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
-
Methods inherited from interface org.codehaus.cargo.container.weblogic.internal.WebLogicLocalContainer
getBeaHome, getVersion, getWeblogicHome
-
-
-
-
Field Detail
-
ID
public static final String ID
Unique container id.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.codehaus.cargo.container.Container
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.codehaus.cargo.container.Container
-
getAutoDeployDirectory
public String getAutoDeployDirectory()
When valid deployment files are written to auto-deploy directory, WebLogic will deploy and start them automatically. This mechanism only works when ProductionMode is disabled, on single-server domains.- Specified by:
getAutoDeployDirectory
in interfaceWebLogicLocalContainer
- Returns:
- The auto-deploy directory
-
getBeaHomeDirs
protected List<String> getBeaHomeDirs()
Also includes checking of the modules directory, which is unique to WebLogic 10.- Overrides:
getBeaHomeDirs
in classAbstractWebLogicInstalledLocalContainer
- Returns:
- a list of directories that indicate a properly installed BEA_HOME
-
getBeaHomeFiles
protected List<String> getBeaHomeFiles()
- Overrides:
getBeaHomeFiles
in classAbstractWebLogicInstalledLocalContainer
- Returns:
- a list of files that indicate a properly installed BEA_HOME
-
executePostStartTasks
protected void executePostStartTasks() throws Exception
. Define the CARGO servlet users in WebLogic..- Overrides:
executePostStartTasks
in classAbstractWebLogicInstalledLocalContainer
- Throws:
Exception
-
doStop
public void doStop(org.codehaus.cargo.container.spi.jvm.JvmLauncher java) throws Exception
- Overrides:
doStop
in classAbstractWebLogicInstalledLocalContainer
- Throws:
Exception
-
executeScript
public void executeScript(List<org.codehaus.cargo.container.configuration.script.ScriptCommand> configurationScript)
Writes configuration script using WLST.- Specified by:
executeScript
in interfaceorg.codehaus.cargo.container.ScriptingCapableContainer
- Parameters:
configurationScript
- Script containing WLST configuration to be executed.
-
executeScriptFiles
public void executeScriptFiles(List<String> scriptFilePaths)
Executes scripts using WLST.- Specified by:
executeScriptFiles
in interfaceorg.codehaus.cargo.container.ScriptingCapableContainer
- Parameters:
scriptFilePaths
- List of file paths containing jython scripts.
-
waitForCompletion
protected void waitForCompletion(boolean waitForStarting) throws InterruptedException
- Overrides:
waitForCompletion
in classorg.codehaus.cargo.container.spi.AbstractLocalContainer
- Throws:
InterruptedException
-
-