public abstract class AbstractCatalinaInstalledLocalContainer extends AbstractInstalledLocalContainer
| Constructor and Description |
|---|
AbstractCatalinaInstalledLocalContainer(LocalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addExtraClasspath(JvmLauncher java)
Does not add anything to the extra classpath since this is already handled by the
AbstractCatalinaStandaloneLocalConfiguration. |
void |
doStart(JvmLauncher java)
Implementation of
RunnableContainer.start() that all
containers extending this class must implement. |
void |
doStop(JvmLauncher java)
Implementation of
RunnableContainer.stop() that all
containers extending this class must implement. |
ContainerCapability |
getCapability() |
protected String |
getVersion(String defaultVersion)
Returns the version of the Tomcat installation.
|
protected void |
invokeContainer(String action,
JvmLauncher java)
Invokes the container bootstrap class to start or stop the container, depending on the value
of the provided argument.
|
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, stopInternal, verifyexecutePostStartTasks, 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, waitgetConfiguration, getFileHandler, setConfiguration, setFileHandlergetOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stoppublic AbstractCatalinaInstalledLocalContainer(LocalConfiguration configuration)
protected final String getVersion(String defaultVersion)
defaultVersion - default version to use if we cannot find out the exact Tomcat versionnull if the version number could not be retrievedpublic ContainerCapability getCapability()
ContainerCapability of the container in term of ability to deploy such
and such type of Deployables (eg WAR, EAR,
etc).Container.getCapability()public 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)public 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 void addExtraClasspath(JvmLauncher java)
AbstractCatalinaStandaloneLocalConfiguration. Add extra container classpath entries specified by the user.addExtraClasspath in class AbstractInstalledLocalContainerjava - the java command used to start/stop the containerAbstractInstalledLocalContainer.addExtraClasspath(JvmLauncher)protected void invokeContainer(String action, JvmLauncher java) throws Exception
action - Either 'start' or 'stop'java - the prepared Ant Java command that will be executedException - in case of container invocation errorCopyright © 2004-2013 Codehaus. All Rights Reserved.