org.codehaus.cargo.container.tomcat
Class Tomcat5xEmbeddedLocalContainer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.AbstractContainer
          extended by org.codehaus.cargo.container.spi.AbstractLocalContainer
              extended by org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
                  extended by org.codehaus.cargo.container.tomcat.Tomcat5xEmbeddedLocalContainer
All Implemented Interfaces:
Container, EmbeddedLocalContainer, RunnableContainer, LocalContainer, Loggable

public class Tomcat5xEmbeddedLocalContainer
extends AbstractEmbeddedLocalContainer

Embedded Tomcat 5.x container.

Version:
$Id: Tomcat5xEmbeddedLocalContainer.java 1260 2007-01-02 16:56:04Z vmassol $

Constructor Summary
Tomcat5xEmbeddedLocalContainer(LocalConfiguration configuration)
          Creates a Tomcat 5.x EmbeddedLocalContainer.
 
Method Summary
protected  void doStart()
          Implementation of RunnableContainer.start() that all containers extending this class must implement.
protected  void doStop()
          Implementation of RunnableContainer.stop() that all containers extending this class must implement.
 ContainerCapability getCapability()
          
 String getId()
          
 String getName()
          
protected  void waitForCompletion(boolean waitForStarting)
          Tomcat's start/stop methods are synchronous, so no need for waiting.
 
Methods inherited from class org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
getClassLoader, getType, setClassLoader, 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, verify
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
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.LocalContainer
getConfiguration, getFileHandler, setConfiguration, setFileHandler
 
Methods inherited from interface org.codehaus.cargo.container.Container
getState
 
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

Tomcat5xEmbeddedLocalContainer

public Tomcat5xEmbeddedLocalContainer(LocalConfiguration configuration)
Creates a Tomcat 5.x EmbeddedLocalContainer.

Parameters:
configuration - the configuration of the newly created container.
Method Detail

doStart

protected void doStart()
                throws Exception
Implementation of RunnableContainer.start() that all containers extending this class must implement.

Specified by:
doStart in class AbstractEmbeddedLocalContainer
Throws:
Exception - if any error is raised during the container start
See Also:
AbstractEmbeddedLocalContainer.doStart()

waitForCompletion

protected void waitForCompletion(boolean waitForStarting)
Tomcat's start/stop methods are synchronous, so no need for waiting.

Overrides:
waitForCompletion in class AbstractLocalContainer
Parameters:
waitForStarting - never used

doStop

protected void doStop()
               throws Exception
Implementation of RunnableContainer.stop() that all containers extending this class must implement.

Specified by:
doStop in class AbstractEmbeddedLocalContainer
Throws:
Exception - if any error is raised during the container stop
See Also:
AbstractEmbeddedLocalContainer.doStop()

getId

public String getId()

Returns:
the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
See Also:
Container.getId()

getName

public String getName()

Returns:
the human readable name of the Container (ex: "Resin 3.x", "JBoss 3.0.8", etc).
See Also:
Container.getName()

getCapability

public ContainerCapability getCapability()

Returns:
the ContainerCapability of the container in term of ability to deploy such and such type of Deployables (eg WAR, EAR, etc).
See Also:
Container.getCapability()


Copyright © 2004-2012 Codehaus. All Rights Reserved.