public abstract class AbstractJBossInstalledLocalContainer extends AbstractInstalledLocalContainer implements JBossInstalledLocalContainer
| Constructor and Description |
|---|
AbstractJBossInstalledLocalContainer(LocalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart(JvmLauncher java)
Implementation of
RunnableContainer.start() that all
containers extending this class must implement. |
protected void |
doStop(JvmLauncher java)
Implementation of
RunnableContainer.stop() that all
containers extending this class must implement. |
ContainerCapability |
getCapability() |
String |
getConfDir(String configurationName) |
String |
getDeployDir(String configurationName) |
protected String |
getJBossLogLevel(String cargoLogLevel)
Translate Cargo logging levels into JBoss logging levels.
|
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.
|
addExtraClasspath, addExtraClasspath, addMemoryArguments, addRuntimeArgs, addSharedClasspath, addToolsJarToClasspath, createJvmLauncher, forceStopInternal, getAntUtils, getExtraClasspath, getHome, getHttpUtils, getJavaHome, getJdkUtils, getJvmLauncherFactory, getResourceUtils, getSharedClasspath, getSystemProperties, getType, ifPresentAddPathToList, setExtraClasspath, setHome, setJvmLauncherFactory, setJvmToLaunchContainerIn, setLogger, setSharedClasspath, setSystemProperties, startInternal, stopInternalexecutePostStartTasks, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, waitForCompletiongetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHome, setHomegetConfiguration, getFileHandler, setConfiguration, setFileHandlergetId, getName, getState, getTypegetOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stopaddExtraClasspath, addSharedClasspath, getExtraClasspath, getJvmLauncherFactory, getSharedClasspath, getSystemProperties, setExtraClasspath, setJvmLauncherFactory, setSharedClasspath, setSystemPropertiespublic AbstractJBossInstalledLocalContainer(LocalConfiguration configuration)
protected void doStart(JvmLauncher java) throws Exception
RunnableContainer.start() that all
containers extending this class must implement.doStart in class AbstractInstalledLocalContainerjava - the predefined JVM launcher to use to start the containerException - if any error is raised during the container startAbstractInstalledLocalContainer.doStart(JvmLauncher)protected void doStop(JvmLauncher java) throws Exception
RunnableContainer.stop() that all
containers extending this class must implement.doStop in class AbstractInstalledLocalContainerjava - the predefined JVM launcher to use to stop the containerException - if any error is raised during the container stopAbstractInstalledLocalContainer.doStop(JvmLauncher)protected final void verify()
AbstractInstalledLocalContainerverify in class AbstractInstalledLocalContainerAbstractLocalContainer.verify()public 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 String getVersion(String defaultVersion)
defaultVersion - the default version used if the exact JBoss version can't be determineddefaultVersion if the version number could not be
determinedpublic String getConfDir(String configurationName)
getConfDir in interface JBossInstalledLocalContainerconfigurationName - the JBoss server configuration name for which to return the conf dirJBossInstalledLocalContainer.getConfDir(String)public String getLibDir(String configurationName)
getLibDir in interface JBossInstalledLocalContainerconfigurationName - the JBoss server configuration name for which to return the conf dirJBossInstalledLocalContainer.getLibDir(String)public String getDeployDir(String configurationName)
getDeployDir in interface JBossInstalledLocalContainerconfigurationName - the JBoss server configuration name for which to return the conf dirJBossInstalledLocalContainer.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 dir.protected void verifyJBossHome()
protected String getJBossLogLevel(String cargoLogLevel)
cargoLogLevel - Cargo logging levelCopyright © 2004-2013 Codehaus. All Rights Reserved.