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 SummaryConstructors Constructor Description WebLogic121xInstalledLocalContainer(LocalConfiguration configuration)
 - 
Method SummaryAll 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.AbstractWebLogicInstalledLocalContaineraddWeblogicAdminArguments, doStart, getBeaHome, getCapability, getVersion, getWeblogicHome, getWeblogicHomeDirs, getWeblogicHomeFiles, initBeaHome, setBeaHome, verify, verify, verifyBeaHome, verifyWeblogicHome
 - 
Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContaineraddExtraClasspath, 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.AbstractLocalContainergetConfiguration, 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.LoggedObjectgetLogger
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.codehaus.cargo.container.ContainergetCapability, getState, getType
 - 
Methods inherited from interface org.codehaus.cargo.container.LocalContainergetConfiguration, getFileHandler, setConfiguration, setFileHandler
 - 
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainergetOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
 - 
Methods inherited from interface org.codehaus.cargo.container.weblogic.internal.WebLogicLocalContainergetBeaHome, getVersion, getWeblogicHome
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final String ID Unique container id.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WebLogic121xInstalledLocalContainerpublic WebLogic121xInstalledLocalContainer(LocalConfiguration configuration) 
 
- 
 - 
Method Detail- 
getNamepublic String getName() 
 - 
getIdpublic String getId() 
 - 
getAutoDeployDirectorypublic 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 interface- WebLogicLocalContainer
- Returns:
- The auto-deploy directory
 
 - 
getBeaHomeDirsprotected List<String> getBeaHomeDirs() Also includes checking of the modules directory, which is unique to WebLogic 10.- Overrides:
- getBeaHomeDirsin class- AbstractWebLogicInstalledLocalContainer
- Returns:
- a list of directories that indicate a properly installed BEA_HOME
 
 - 
getBeaHomeFilesprotected List<String> getBeaHomeFiles() - Overrides:
- getBeaHomeFilesin class- AbstractWebLogicInstalledLocalContainer
- Returns:
- a list of files that indicate a properly installed BEA_HOME
 
 - 
executePostStartTasksprotected void executePostStartTasks() throws ExceptionSome containers may require some extra steps after startup.. Define the CARGO servlet users in WebLogic..- Overrides:
- executePostStartTasksin class- AbstractWebLogicInstalledLocalContainer
- Throws:
- Exception- if any error is raised during these executions
 
 - 
doStoppublic void doStop(JvmLauncher java) throws Exception Implementation ofRunnableContainer.stop()that all containers extending this class must implement.- Overrides:
- doStopin class- AbstractWebLogicInstalledLocalContainer
- Parameters:
- java- the predefined JVM launcher to use to stop the container
- Throws:
- Exception- if any error is raised during the container stop
 
 - 
executeScriptpublic void executeScript(List<ScriptCommand> configurationScript) Writes configuration script using WLST.- Specified by:
- executeScriptin interface- ScriptingCapableContainer
- Parameters:
- configurationScript- Script containing WLST configuration to be executed.
 
 - 
executeScriptFilespublic void executeScriptFiles(List<String> scriptFilePaths) Executes scripts using WLST.- Specified by:
- executeScriptFilesin interface- ScriptingCapableContainer
- Parameters:
- scriptFilePaths- List of file paths containing jython scripts.
 
 - 
waitForCompletionprotected void waitForCompletion(boolean waitForStarting) throws InterruptedExceptionPing the WAR CPC to verify if the container is started or stopped.- Overrides:
- waitForCompletionin class- AbstractLocalContainer
- Parameters:
- waitForStarting- if- truethen wait for container start, if- falsewait for container stop
- Throws:
- InterruptedException- if the thread sleep is interrupted
 
 
- 
 
-