public class TomcatRuntimeImpl extends java.lang.Object implements Tomcat, TomcatRuntime
AJP13, CATALINA_BASE, CATALINA_HOME, DEFAULT_AJP_PORT, DEFAULT_EXECUTOR_MAX, DEFAULT_EXECUTOR_MIN, DEFAULT_EXECUTOR_NAME, DEFAULT_HTTP_PORT, DEFAULT_SERVICE_NAME, DEFAULT_SHUTDOWN_PORT, DEFAULT_SSL_PORT, EMPTY_MAP, HTTP11, PROTOCOL_AJP, PROTOCOL_BIO, PROTOCOL_NIO| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TomcatRuntime |
deploy(java.lang.String appName) |
org.apache.catalina.Server |
getServer() |
TomcatRuntimeImpl |
start()
Start the embedded instance synchronously
|
void |
start(Callback<TomcatRuntime> callback)
Start the embedded instance synchronously, calling the callback with the
runtime instance when complete
|
TomcatRuntimeImpl |
start(long timeout)
Start the embedded instance synchronously, but return after the timeout
|
TomcatStatus |
status() |
void |
stop()
Stop the runtime
|
void |
stop(long timeout)
Stop after the supplied timeout
|
void |
stopOnCompletion(java.lang.Thread waiting)
Stop when the thread supplied terminates, by joining on that thread
|
TomcatRuntime |
undeploy(java.lang.String appName) |
public TomcatStatus status()
status in interface TomcatRuntimepublic org.apache.catalina.Server getServer()
getServer in interface TomcatRuntimepublic TomcatRuntimeImpl start()
Tomcatpublic TomcatRuntimeImpl start(long timeout)
Tomcatpublic void start(Callback<TomcatRuntime> callback)
Tomcatpublic TomcatRuntime deploy(java.lang.String appName)
deploy in interface TomcatRuntimeappName - to be deployedpublic TomcatRuntime undeploy(java.lang.String appName)
undeploy in interface TomcatRuntimeappName - to be undeployedpublic void close()
close in interface java.lang.AutoCloseablepublic void stop()
TomcatRuntimestop in interface TomcatRuntimepublic void stop(long timeout)
TomcatRuntimestop in interface TomcatRuntimepublic void stopOnCompletion(java.lang.Thread waiting)
TomcatRuntimestopOnCompletion in interface TomcatRuntime