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:
Container
,InstalledLocalContainer
,RunnableContainer
,SpawnedContainer
,LocalContainer
,ScriptingCapableContainer
,WebLogicLocalContainer
,WebLogicLocalScriptingContainer
,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(LocalConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStop(JvmLauncher java)
Implementation ofRunnableContainer.stop()
that all containers extending this class must implement.protected void
executePostStartTasks()
Some containers may require some extra steps after startup.void
executeScript(List<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)
Ping the WAR CPC to verify if the container is started or stopped.-
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 org.codehaus.cargo.util.log.LoggedObject
getLogger
-
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
-
-
Constructor Detail
-
WebLogic121xInstalledLocalContainer
public WebLogic121xInstalledLocalContainer(LocalConfiguration configuration)
-
-
Method Detail
-
getName
public String getName()
-
getId
public String getId()
-
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
Some containers may require some extra steps after startup.. Define the CARGO servlet users in WebLogic..- Overrides:
executePostStartTasks
in classAbstractWebLogicInstalledLocalContainer
- Throws:
Exception
- if any error is raised during these executions
-
doStop
public void doStop(JvmLauncher java) throws Exception
Implementation ofRunnableContainer.stop()
that all containers extending this class must implement.- Overrides:
doStop
in classAbstractWebLogicInstalledLocalContainer
- Parameters:
java
- the predefined JVM launcher to use to stop the container- Throws:
Exception
- if any error is raised during the container stop
-
executeScript
public void executeScript(List<ScriptCommand> configurationScript)
Writes configuration script using WLST.- Specified by:
executeScript
in interfaceScriptingCapableContainer
- Parameters:
configurationScript
- Script containing WLST configuration to be executed.
-
executeScriptFiles
public void executeScriptFiles(List<String> scriptFilePaths)
Executes scripts using WLST.- Specified by:
executeScriptFiles
in interfaceScriptingCapableContainer
- Parameters:
scriptFilePaths
- List of file paths containing jython scripts.
-
waitForCompletion
protected void waitForCompletion(boolean waitForStarting) throws InterruptedException
Ping the WAR CPC to verify if the container is started or stopped.- Overrides:
waitForCompletion
in classAbstractLocalContainer
- Parameters:
waitForStarting
- iftrue
then wait for container start, iffalse
wait for container stop- Throws:
InterruptedException
- if the thread sleep is interrupted
-
-