|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public abstract class AbstractWebLogicInstalledLocalContainer
Basic support for the WebLogic application server.
| Constructor Summary | |
|---|---|
AbstractWebLogicInstalledLocalContainer(LocalConfiguration configuration)
|
|
| Method Summary | |
|---|---|
protected abstract void |
addDefaultMemArgs(org.apache.tools.ant.taskdefs.Java java)
|
void |
addDefaultMemArgsIfNotProvidedAsASystemProperty(org.apache.tools.ant.taskdefs.Java java)
Users can override memory defaults through setting them via a system property. |
void |
doStart(org.apache.tools.ant.taskdefs.Java java)
Implementation of RunnableContainer.start() that all
containers extending this class must implement. |
void |
doStop(org.apache.tools.ant.taskdefs.Java java)
Implementation of RunnableContainer.stop() that all
containers extending this class must implement. |
String |
getBeaHome()
The BEA_HOME is a root directory for various versions of WebLogic server. |
protected List |
getBeaHomeDirs()
|
protected List |
getBeaHomeFiles()
|
ContainerCapability |
getCapability()
|
String |
getDomainHome()
|
String |
getWeblogicHome()
There are one or many WL_HOMEs per BEA_HOME. |
protected List |
getWeblogicHomeDirs()
|
protected List |
getWeblogicHomeFiles()
|
void |
initBeaHome()
Check the WLS installation directory setting and if the beaHome attribute is not set, guess it. |
boolean |
memArgsProvidedAsASystemProperty()
Scan the System properties provided by the user and determine if memory args are present. |
void |
setBeaHome(String beaHome)
Sets the Bea home directory. |
protected void |
verify()
Verify required properties have been set before executing any action. |
protected void |
verify(String errorPrefix,
String errorSuffix,
List requiredDirs,
List 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, addSharedClasspath, addToolsJarToClasspath, getAntUtils, getExtraClasspath, getHome, getHttpUtils, getJdkUtils, getResourceUtils, getSharedClasspath, getSystemProperties, getType, ifPresentAddPathToList, setExtraClasspath, setHome, setJvmToLaunchContainerIn, setLogger, setSharedClasspath, setSystemProperties, startInternal, stopInternal |
| Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer |
|---|
getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, waitForCompletion |
| 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.weblogic.WebLogicLocalContainer |
|---|
getAutoDeployDirectory |
| Methods inherited from interface org.codehaus.cargo.container.LocalContainer |
|---|
getConfiguration, getFileHandler, setConfiguration, setFileHandler |
| Methods inherited from interface org.codehaus.cargo.container.Container |
|---|
getId, getName, getState, getType |
| 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, setAppend, setOutput, setTimeout, start, stop |
| Constructor Detail |
|---|
public AbstractWebLogicInstalledLocalContainer(LocalConfiguration configuration)
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(LocalConfiguration)| Method Detail |
|---|
public final void setBeaHome(String beaHome)
beaHome - The BEA home directorypublic final ContainerCapability getCapability()
getCapability in interface ContainerContainerCapability of the container in term of ability to deploy such
and such type of Deployables
(eg WAR, EAR, etc).Container.getCapability()protected final void verify()
AbstractInstalledLocalContainer
verify in class AbstractInstalledLocalContainerAbstractLocalContainer.verify()protected List getBeaHomeFiles()
protected List getBeaHomeDirs()
protected List getWeblogicHomeFiles()
protected List getWeblogicHomeDirs()
protected void verifyWeblogicHome()
ContainerException - if anyprotected void verifyBeaHome()
ContainerException - if any
protected void verify(String errorPrefix,
String errorSuffix,
List requiredDirs,
List requiredFiles)
errorPrefix - -
Prefix to the ContainerException, if a file or directory
is missingerrorSuffix - -
Suffix o the aboverequiredDirs - -
Directories that are required to existrequiredFiles - -
Files that are required to exist
ContainerException - -
if a file or directory isn't present as expectedpublic final void initBeaHome()
public void addDefaultMemArgsIfNotProvidedAsASystemProperty(org.apache.tools.ant.taskdefs.Java java)
java - - object to insert mem arguments if requiredpublic boolean memArgsProvidedAsASystemProperty()
protected abstract void addDefaultMemArgs(org.apache.tools.ant.taskdefs.Java java)
java - - runtime configuration to insert default memory args into
public final void doStart(org.apache.tools.ant.taskdefs.Java java)
throws Exception
RunnableContainer.start() that all
containers extending this class must implement.
doStart in class AbstractInstalledLocalContainerjava - the predefined Ant Java command to use to
start the container
Exception - if any error is raised during the container startAbstractInstalledLocalContainer.doStart(Java)
public final void doStop(org.apache.tools.ant.taskdefs.Java java)
throws Exception
RunnableContainer.stop() that all
containers extending this class must implement.
doStop in class AbstractInstalledLocalContainerjava - the predefined Ant Java command to use to stop the container
Exception - if any error is raised during the container stopAbstractInstalledLocalContainer.doStop(Java)public String getBeaHome()
WebLogicLocalContainer
getBeaHome in interface WebLogicLocalContainerorg.codehaus.cargo.container.weblogic.internal.WebLogicLocalContainer#getDomainHome()public String getDomainHome()
org.codehaus.cargo.container.weblogic.internal.WebLogicLocalContainer#getDomainHome()public String getWeblogicHome()
WebLogicLocalContainer
getWeblogicHome in interface WebLogicLocalContainerorg.codehaus.cargo.container.weblogic.internal.WebLogicLocalContainer#getWeblogicHome()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||