Class TomcatController
- java.lang.Object
-
- org.jenkinsci.test.acceptance.controller.JenkinsController
-
- org.jenkinsci.test.acceptance.controller.LocalController
-
- org.jenkinsci.test.acceptance.controller.TomcatController
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IJenkinsController
,AutoCleaned
,LogListenable
public class TomcatController extends LocalController
- Author:
- Vivek Pandey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TomcatController.FactoryImpl
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.controller.LocalController
LocalController.LocalFactoryImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected File
catalinaHome
-
Fields inherited from class org.jenkinsci.test.acceptance.controller.LocalController
jenkinsHome, logWatcher, process, time, war
-
Fields inherited from class org.jenkinsci.test.acceptance.controller.JenkinsController
isQuite, STARTUP_TIMEOUT, WORKSPACE
-
-
Constructor Summary
Constructors Constructor Description TomcatController(com.google.inject.Injector i, File catalinaHome)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getUrl()
Gives URL where Jenkins is listening.org.jenkinsci.utils.process.ProcessInputStream
startProcess()
void
stopNow()
Synchronously shutdown Jenkins instance.-
Methods inherited from class org.jenkinsci.test.acceptance.controller.LocalController
addLogListener, commonLaunchEnv, diagnose, getJavaHome, getJenkinsHome, getSlaveJarPath, getSutHostName, isRunInstallWizard, onReady, populateJenkinsHome, postConstruct, removeLogListener, setRunInstallWizard, startNow, tearDown
-
Methods inherited from class org.jenkinsci.test.acceptance.controller.JenkinsController
close, getInitialCredentials, getLogId, getLogPrinter, isRunning, restart, start, stop
-
-
-
-
Field Detail
-
catalinaHome
protected final File catalinaHome
-
-
Constructor Detail
-
TomcatController
@Inject public TomcatController(com.google.inject.Injector i, @Named("tomcatHome") File catalinaHome)
-
-
Method Detail
-
startProcess
public org.jenkinsci.utils.process.ProcessInputStream startProcess() throws IOException
- Specified by:
startProcess
in classLocalController
- Throws:
IOException
-
stopNow
public void stopNow() throws IOException
Description copied from class:JenkinsController
Synchronously shutdown Jenkins instance.This method must leave JENKINS_HOME intact so that it can be started later. To really delete the data and clean up, see
JenkinsController.tearDown()
.- Overrides:
stopNow
in classLocalController
- Throws:
IOException
-
getUrl
public URL getUrl()
Description copied from class:JenkinsController
Gives URL where Jenkins is listening. Must end with "/"- Specified by:
getUrl
in interfaceIJenkinsController
- Specified by:
getUrl
in classJenkinsController
-
-