public interface Container
Modifier and Type | Method and Description |
---|---|
void |
addXmlReplacement(org.codehaus.cargo.util.XmlReplacement xmlReplacement)
Replaces values in xml files of the container
|
void |
clearLogMessages()
Clears all the log messages collected so far in the in-memory
WatchingLogger.LogWatcher . |
void |
generateThreadDump()
Generate a thread dump of this process to the logs.
|
ClusterNodeProperties |
getClusterProperties() |
Path |
getLocalHome() |
JiraTestedProduct |
getProduct() |
Map<String,String> |
getSystemProperties() |
void |
installJira(JiraType warType)
Installs a predefined JIRA WAR into this container.
|
void |
installWar(Path warFile,
String context)
Installs a WAR file into this container.
|
JiraCluster.Node |
jiraNode() |
void |
start()
Start the instance.
|
void |
stop()
Cleanly stop the instance.
|
void |
waitForContainerToDie()
Wait until container will die
|
void |
waitForLogMessage(org.hamcrest.Matcher<String> message,
java.time.Duration timeout)
Waits for a log message that matches the pattern.
|
void |
waitForLogMessageFromNowOn(org.hamcrest.Matcher<String> message,
java.time.Duration timeout)
Clears already accumulated log messages and waits for a log message that matches the pattern.
|
void start()
void stop()
JiraCluster.Node jiraNode()
void installWar(Path warFile, String context)
warFile
- the WAR file to install.context
- the context path. Do not include any leading or trailing '/' characters.void installJira(JiraType warType)
warType
- the JIRA version to install.JiraTestedProduct getProduct()
Path getLocalHome()
ClusterNodeProperties getClusterProperties()
void waitForLogMessage(org.hamcrest.Matcher<String> message, java.time.Duration timeout)
waitForLogMessageFromNowOn(Matcher, Duration)
void clearLogMessages()
WatchingLogger.LogWatcher
.
Logs written out to a file remain intact.void waitForLogMessageFromNowOn(org.hamcrest.Matcher<String> message, java.time.Duration timeout)
Map<String,String> getSystemProperties()
void generateThreadDump()
void waitForContainerToDie() throws TimeoutException
TimeoutException
- if container will not dievoid addXmlReplacement(org.codehaus.cargo.util.XmlReplacement xmlReplacement)
xmlReplacement
- containing replacement dataCopyright © 2002-2023 Atlassian. All Rights Reserved.