org.codehaus.cargo.container.jboss.internal
Class AbstractJBossInstalledLocalContainer
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.jboss.internal.AbstractJBossInstalledLocalContainer
- 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, JBossInstalledLocalContainer, org.codehaus.cargo.container.LocalContainer, org.codehaus.cargo.util.log.Loggable
- Direct Known Subclasses:
- JBoss3xInstalledLocalContainer, JBoss4xInstalledLocalContainer
public abstract class AbstractJBossInstalledLocalContainer
- extends org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- implements JBossInstalledLocalContainer
Abstract class for JBoss container family.
- Version:
- $Id: AbstractJBossInstalledLocalContainer.java 1177 2006-09-02 13:27:29Z vmassol $
Method Summary |
protected void |
doStart(org.apache.tools.ant.taskdefs.Java java)
|
protected void |
doStop(org.apache.tools.ant.taskdefs.Java java)
|
org.codehaus.cargo.container.ContainerCapability |
getCapability()
|
java.lang.String |
getConfDir(java.lang.String configurationName)
|
java.lang.String |
getDeployDir(java.lang.String configurationName)
|
java.lang.String |
getLibDir(java.lang.String configurationName)
|
protected java.lang.String |
getVersion(java.lang.String defaultVersion)
Parse installed JBoss version. |
protected void |
verify()
|
protected void |
verifyJBossHome()
Verify that the JBoss directory structure is valid and throw a ContainerException if not. |
Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer |
addToolsJarToClasspath, getAntUtils, getExtraClasspath, getFileHandler, getHome, getHttpUtils, getJdkUtils, getResourceUtils, getSystemProperties, getType, setExtraClasspath, setFileHandler, setHome, setLogger, setSystemProperties, startInternal, stopInternal |
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer |
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, 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.InstalledLocalContainer |
getHome, setHome |
Methods inherited from interface org.codehaus.cargo.container.LocalContainer |
getConfiguration, setConfiguration |
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 |
Methods inherited from interface org.codehaus.cargo.container.internal.SpawnedContainer |
getExtraClasspath, getSystemProperties, setExtraClasspath, setSystemProperties |
AbstractJBossInstalledLocalContainer
public AbstractJBossInstalledLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)
-
- See Also:
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(LocalConfiguration)
doStart
protected void doStart(org.apache.tools.ant.taskdefs.Java java)
throws java.lang.Exception
-
- Specified by:
doStart
in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- Throws:
java.lang.Exception
- See Also:
AbstractInstalledLocalContainer.doStart(Java)
doStop
protected void doStop(org.apache.tools.ant.taskdefs.Java java)
throws java.lang.Exception
-
- Specified by:
doStop
in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- Throws:
java.lang.Exception
- See Also:
AbstractInstalledLocalContainer.doStop(Java)
verify
protected final void verify()
- Overrides:
verify
in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- See Also:
AbstractLocalContainer.verify()
getCapability
public org.codehaus.cargo.container.ContainerCapability getCapability()
-
- Specified by:
getCapability
in interface org.codehaus.cargo.container.Container
- See Also:
Container.getCapability()
getVersion
protected final java.lang.String getVersion(java.lang.String defaultVersion)
- Parse installed JBoss version.
- Parameters:
defaultVersion
- the default version used if the exact JBoss version can't be determined
- Returns:
- the JBoss version, or
defaultVersion
if the version number could not
be determined
getConfDir
public java.lang.String getConfDir(java.lang.String configurationName)
-
- Specified by:
getConfDir
in interface JBossInstalledLocalContainer
- Parameters:
configurationName
- the JBoss server configuration name for which to return the conf dir
- Returns:
- The conf directory located under the container's home installation directory
- See Also:
JBossInstalledLocalContainer.getConfDir(String)
getLibDir
public java.lang.String getLibDir(java.lang.String configurationName)
-
- Specified by:
getLibDir
in interface JBossInstalledLocalContainer
- Parameters:
configurationName
- the JBoss server configuration name for which to return the conf dir
- Returns:
- The lib directory located under the container's home installation directory
- See Also:
JBossInstalledLocalContainer.getLibDir(String)
getDeployDir
public java.lang.String getDeployDir(java.lang.String configurationName)
-
- Specified by:
getDeployDir
in interface JBossInstalledLocalContainer
- Parameters:
configurationName
- the JBoss server configuration name for which to return the conf dir
- Returns:
- The deploy directory located under the container's home installation directory
- See Also:
JBossInstalledLocalContainer.getDeployDir(String)
verifyJBossHome
protected void verifyJBossHome()
- Verify that the JBoss directory structure is valid and throw a ContainerException if not.
- Throws:
org.codehaus.cargo.container.ContainerException
- if any
Copyright © 2004-2010 Codehaus. All Rights Reserved.