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()
          
protected  void doStop()
          
 ContainerCapability getCapability()
          
 java.lang.String getId()
          
 java.lang.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, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, 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, setConfiguration
 
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 java.lang.Exception

Specified by:
doStart in class AbstractEmbeddedLocalContainer
Throws:
java.lang.Exception
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 java.lang.Exception

Specified by:
doStop in class AbstractEmbeddedLocalContainer
Throws:
java.lang.Exception
See Also:
AbstractEmbeddedLocalContainer.doStop()

getId

public java.lang.String getId()

See Also:
Container.getId()

getName

public java.lang.String getName()

See Also:
Container.getName()

getCapability

public ContainerCapability getCapability()

See Also:
Container.getCapability()


Copyright © 2004-2011 Codehaus. All Rights Reserved.