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 voiddoStop(JvmLauncher java)Implementation ofRunnableContainer.stop()that all containers extending this class must implement.protected voidexecutePostStartTasks()Some containers may require some extra steps after startup.voidexecuteScript(List<ScriptCommand> configurationScript)Writes configuration script using WLST.voidexecuteScriptFiles(List<String> scriptFilePaths)Executes scripts using WLST.StringgetAutoDeployDirectory()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()StringgetId()StringgetName()protected voidwaitForCompletion(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:
getAutoDeployDirectoryin 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:
getBeaHomeDirsin classAbstractWebLogicInstalledLocalContainer- Returns:
- a list of directories that indicate a properly installed BEA_HOME
-
getBeaHomeFiles
protected List<String> getBeaHomeFiles()
- Overrides:
getBeaHomeFilesin classAbstractWebLogicInstalledLocalContainer- Returns:
- a list of files that indicate a properly installed BEA_HOME
-
executePostStartTasks
protected void executePostStartTasks() throws ExceptionSome containers may require some extra steps after startup.. Define the CARGO servlet users in WebLogic..- Overrides:
executePostStartTasksin 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:
doStopin 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:
executeScriptin interfaceScriptingCapableContainer- Parameters:
configurationScript- Script containing WLST configuration to be executed.
-
executeScriptFiles
public void executeScriptFiles(List<String> scriptFilePaths)
Executes scripts using WLST.- Specified by:
executeScriptFilesin interfaceScriptingCapableContainer- Parameters:
scriptFilePaths- List of file paths containing jython scripts.
-
waitForCompletion
protected void waitForCompletion(boolean waitForStarting) throws InterruptedExceptionPing the WAR CPC to verify if the container is started or stopped.- Overrides:
waitForCompletionin classAbstractLocalContainer- Parameters:
waitForStarting- iftruethen wait for container start, iffalsewait for container stop- Throws:
InterruptedException- if the thread sleep is interrupted
-
-