org.codehaus.cargo.container.internal
Interface RunnableContainer
- All Known Subinterfaces:
- EmbeddedLocalContainer, InstalledLocalContainer, JBoss5xInstalledLocalContainer, JBossInstalledLocalContainer, LocalContainer, WebLogicLocalContainer
- All Known Implementing Classes:
- AbstractCatalinaInstalledLocalContainer, AbstractEmbeddedLocalContainer, AbstractInstalledLocalContainer, AbstractJBoss5xInstalledLocalContainer, AbstractJBossInstalledLocalContainer, AbstractJetty4x5xEmbeddedLocalContainer, AbstractJettyEmbeddedLocalContainer, AbstractJRunInstalledLocalContainer, AbstractLocalContainer, AbstractOc4j10xInstalledLocalContainer, AbstractOrionInstalledLocalContainer, AbstractResinInstalledLocalContainer, AbstractWebLogicInstalledLocalContainer, Geronimo1xInstalledLocalContainer, JBoss3xInstalledLocalContainer, JBoss42xInstalledLocalContainer, JBoss4xInstalledLocalContainer, JBoss5xInstalledLocalContainer, Jetty4xEmbeddedLocalContainer, Jetty5xEmbeddedLocalContainer, Jetty6xEmbeddedLocalContainer, Jetty6xInstalledLocalContainer, Jetty7xEmbeddedLocalContainer, Jetty7xInstalledLocalContainer, Jo1xInstalledLocalContainer, JRun4xInstalledLocalContainer, Oc4j10xInstalledLocalContainer, Oc4j9xInstalledLocalContainer, Resin2xInstalledLocalContainer, Resin3xInstalledLocalContainer, Tomcat4xInstalledLocalContainer, Tomcat5xEmbeddedLocalContainer, Tomcat5xInstalledLocalContainer, Tomcat6xInstalledLocalContainer, WebLogic103xInstalledLocalContainer, WebLogic10xInstalledLocalContainer, WebLogic8xInstalledLocalContainer, WebLogic9xInstalledLocalContainer
public interface RunnableContainer
All methods that a container that can be started/stopped must implement.
- Version:
- $Id: RunnableContainer.java 1165 2006-07-31 22:13:35Z vmassol $
start
void start()
- Starts the container. It blocks until the container is fully started unless it doesn't start
before the timeout period in which case an exception will be thrown.
stop
void stop()
- Stops the container. It blocks until the container is fully stopped unless it doesn't stop
before the timeout period in which case an exception will be thrown.
setOutput
void setOutput(String output)
- Parameters:
output
- the file to which the container's output will be logged to. Note that we're
passing a String instead of a File because we want to leave the possibility of using
URIs for specifying the home location.
getOutput
String getOutput()
- Returns:
- the file to which the container's output will be logged to. Note that we're returning
a String instead of a File because we want to leave the possibility of using URIs for
specifying the home location.
setTimeout
void setTimeout(long timeout)
- Parameters:
timeout
- the timeout (in ms) after which we consider the container cannot be started
or stopped.
getTimeout
long getTimeout()
- Returns:
- the timeout (in ms) after which we consider the container cannot be started or
or stopped.
setAppend
void setAppend(boolean shouldAppend)
- Sets whether output of the container should be appended to an existing file, or the existing
file should be truncated.
- Parameters:
shouldAppend
- Whether output should be appended to or not
isAppend
boolean isAppend()
- Returns:
- true if the output of the container should be appended to the output file or false
otherwise
Copyright © 2004-2012 Codehaus. All Rights Reserved.