|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.integration.ant.container.ContainerRunner
Support class that handles the lifecycle of a container, which basically consists of startup and shutdown.
Constructor Summary | |
ContainerRunner(Container theContainer)
Constructor. |
Method Summary | |
java.lang.String |
getServerName()
Returns the server name as reported in the 'Server' header of HTTP responses from the server. |
void |
setCheckInterval(long theCheckInterval)
Sets the time interval to sleep between polling the container. |
void |
setLog(org.apache.commons.logging.Log theLog)
Sets the log to write to. |
void |
setShutDownWait(long theShutDownWait)
Sets the time to wait after the container has been shut down. |
void |
setTimeout(long theTimeout)
Sets the timeout after which to stop trying to call the container. |
void |
setUrl(java.net.URL theUrl)
Sets the HTTP URL that will be continuously pinged to check if the container is running. |
void |
shutDownContainer()
Method called by the task to perform the stopping of the container. |
void |
startUpContainer()
Method called by the task to perform the startup of the container. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContainerRunner(Container theContainer)
theContainer
- The container to runMethod Detail |
public java.lang.String getServerName()
public void startUpContainer() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the 'url' property is null
public void shutDownContainer() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the 'url' property is null
public void setCheckInterval(long theCheckInterval)
theCheckInterval
- The interval in millisecondspublic void setLog(org.apache.commons.logging.Log theLog)
theLog
- The log to setpublic void setShutDownWait(long theShutDownWait)
theShutDownWait
- The time to wait in millisecondspublic void setTimeout(long theTimeout)
theTimeout
- The timeout in millisecondspublic void setUrl(java.net.URL theUrl)
theUrl
- The URL to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |