|
||||||||||
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.jboss.internal.AbstractJBossInstalledLocalContainer
public abstract class AbstractJBossInstalledLocalContainer
Abstract class for JBoss container family.
Constructor Summary | |
---|---|
AbstractJBossInstalledLocalContainer(LocalConfiguration configuration)
|
Method Summary | |
---|---|
protected void |
doStart(org.apache.tools.ant.taskdefs.Java java)
Implementation of RunnableContainer.start() that all
containers extending this class must implement. |
protected void |
doStop(org.apache.tools.ant.taskdefs.Java java)
Implementation of RunnableContainer.stop() that all
containers extending this class must implement. |
ContainerCapability |
getCapability()
|
String |
getConfDir(String configurationName)
|
String |
getDeployDir(String configurationName)
|
String |
getLibDir(String configurationName)
|
protected String |
getSpecificConfigurationDir(String location,
String configurationName)
|
protected String |
getVersion(String defaultVersion)
Parse installed JBoss version. |
protected void |
verify()
Verify required properties have been set before executing any action. |
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 |
---|
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.InstalledLocalContainer |
---|
getHome, setHome |
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 |
Methods inherited from interface org.codehaus.cargo.container.internal.SpawnedContainer |
---|
addExtraClasspath, addSharedClasspath, getExtraClasspath, getSharedClasspath, getSystemProperties, setExtraClasspath, setSharedClasspath, setSystemProperties |
Constructor Detail |
---|
public AbstractJBossInstalledLocalContainer(LocalConfiguration configuration)
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(LocalConfiguration)
Method Detail |
---|
protected void doStart(org.apache.tools.ant.taskdefs.Java java) throws Exception
RunnableContainer.start()
that all
containers extending this class must implement.
doStart
in class AbstractInstalledLocalContainer
java
- the predefined Ant Java
command to use to
start the container
Exception
- if any error is raised during the container startAbstractInstalledLocalContainer.doStart(Java)
protected void doStop(org.apache.tools.ant.taskdefs.Java java) throws Exception
RunnableContainer.stop()
that all
containers extending this class must implement.
doStop
in class AbstractInstalledLocalContainer
java
- the predefined Ant Java
command to use to stop the container
Exception
- if any error is raised during the container stopAbstractInstalledLocalContainer.doStop(Java)
protected final void verify()
AbstractInstalledLocalContainer
verify
in class AbstractInstalledLocalContainer
AbstractLocalContainer.verify()
public ContainerCapability getCapability()
getCapability
in interface Container
ContainerCapability
of the container in term of ability to deploy such
and such type of Deployable
s
(eg WAR, EAR, etc).Container.getCapability()
protected final String getVersion(String defaultVersion)
defaultVersion
- the default version used if the exact JBoss version can't be determined
defaultVersion
if the version number could not
be determinedpublic String getConfDir(String configurationName)
getConfDir
in interface JBossInstalledLocalContainer
configurationName
- the JBoss server configuration name for which to return the conf dir
JBossInstalledLocalContainer.getConfDir(String)
public String getLibDir(String configurationName)
getLibDir
in interface JBossInstalledLocalContainer
configurationName
- the JBoss server configuration name for which to return the conf dir
JBossInstalledLocalContainer.getLibDir(String)
public String getDeployDir(String configurationName)
getDeployDir
in interface JBossInstalledLocalContainer
configurationName
- the JBoss server configuration name for which to return the conf dir
JBossInstalledLocalContainer.getDeployDir(String)
protected String getSpecificConfigurationDir(String location, String configurationName)
location
- the name of the directory to return inside the server configurationconfigurationName
- the server configuration name to use. A server configuration is
located in the server/
directory inside the JBoss installation ir.
protected void verifyJBossHome()
ContainerException
- if any
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |