Class TomcatContainerSet
java.lang.Object
com.atlassian.jira.plugins.ha.container.TomcatContainerSet
- All Implemented Interfaces:
ContainerSet<TomcatContainer>
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemove all Jira tables.cluster()Access an object that can perform operations on the JIRA cluster.List<? extends TomcatContainer> voidinstallJira(JiraType warType) Installs a predefined JIRA WAR into all containers in the set.voidinstallSharedPlugin(Path pluginFile) Installs a plugin into shared home.voidinstallTestingPlugins(JiraType jiraType) Installs any plugins to shared home that are required for testing.voidinstallWar(Path warFile, String context) Installs a WAR file into all containers in the set.jiraWarFile(JiraType warType) Return the path of a predefined JIRA WAR file.voidReinsert the basic Jira tables, so that Jira is initialised, licensed, but without any issues.voidDeprecated.voidDeprecated.voidsetLicenseOnDatabase(String license) Sets licence on database (should be run before container(s) start).voidsetSharedHome(Path path) Sets path to shared home.voidstartAll()Start all containers in the set.voidvoidvoidstopAll()Cleanly stop all containers in the set.testingPluginFile(String name, JiraType jarType) Return the path to the plugin JAR file.voidWaits for a default maximum amount of time for all containers that are starting to complete startup and join the cluster.voidwaitForStartupOfActiveContainers(Duration timeout) Waits at most the specified amount of time for all containers to finish starting up and join the cluster.voidwaitForUpgradeState(ZeroDowntimeControl.UpgradeState targetState, Duration timeout)
-
Method Details
-
getContainers
- Specified by:
getContainersin interfaceContainerSet<TomcatContainer>- Returns:
- all containers in the set.
-
startAll
public void startAll()Description copied from interface:ContainerSetStart all containers in the set.- Specified by:
startAllin interfaceContainerSet<TomcatContainer>
-
startAllConcurrently
- Specified by:
startAllConcurrentlyin interfaceContainerSet<TomcatContainer>- Throws:
InterruptedException
-
startStoppedContainersConcurrently
- Specified by:
startStoppedContainersConcurrentlyin interfaceContainerSet<TomcatContainer>- Throws:
InterruptedException
-
stopAll
public void stopAll()Description copied from interface:ContainerSetCleanly stop all containers in the set.- Specified by:
stopAllin interfaceContainerSet<TomcatContainer>
-
cluster
Description copied from interface:ContainerSetAccess an object that can perform operations on the JIRA cluster. Access REST endpoints through this.- Specified by:
clusterin interfaceContainerSet<TomcatContainer>- Returns:
- object that can perform JIRA cluster operations.
-
installJira
Description copied from interface:ContainerSetInstalls a predefined JIRA WAR into all containers in the set.- Specified by:
installJirain interfaceContainerSet<TomcatContainer>- Parameters:
warType- the JIRA version to install.
-
jiraWarFile
Description copied from interface:ContainerSetReturn the path of a predefined JIRA WAR file. File may not actually exist.- Specified by:
jiraWarFilein interfaceContainerSet<TomcatContainer>- Parameters:
warType- JIRA version.- Returns:
- the path of the WAR file.
-
testingPluginFile
Description copied from interface:ContainerSetReturn the path to the plugin JAR file.- Specified by:
testingPluginFilein interfaceContainerSet<TomcatContainer>- Parameters:
name- the name of the plugin. For example,"jira-ha-plugin"will search for a file called"jira-ha-plugin-.*.jar".jarType- JIRA version.- Returns:
- the path of the JAR file.
-
installWar
Description copied from interface:ContainerSetInstalls a WAR file into all containers in the set.- Specified by:
installWarin interfaceContainerSet<TomcatContainer>- Parameters:
warFile- the WAR file to install.context- the context path. Do not include any leading or trailing '/' characters.
-
installTestingPlugins
Description copied from interface:ContainerSetInstalls any plugins to shared home that are required for testing. These plugins are the func-test plugin, ha plugin, etc.- Specified by:
installTestingPluginsin interfaceContainerSet<TomcatContainer>- Parameters:
jiraType- JIRA version to target.
-
resetClusterState
Deprecated.Description copied from interface:ContainerSetNo-op. This empty method is left not to break 8.13 -> 8.14 merge.- Specified by:
resetClusterStatein interfaceContainerSet<TomcatContainer>
-
cleanDatabase
public void cleanDatabase()Description copied from interface:ContainerSetRemove all Jira tables. We're doing this rather than dropping the whole DB, because database drop requires superuser permissions.- Specified by:
cleanDatabasein interfaceContainerSet<TomcatContainer>
-
reinitialiseDatabase
public void reinitialiseDatabase()Description copied from interface:ContainerSetReinsert the basic Jira tables, so that Jira is initialised, licensed, but without any issues.- Specified by:
reinitialiseDatabasein interfaceContainerSet<TomcatContainer>
-
resetDatabase
Deprecated.Description copied from interface:ContainerSetNo-op. This empty method is left not to break 8.13 -> 8.14 merge.- Specified by:
resetDatabasein interfaceContainerSet<TomcatContainer>
-
setLicenseOnDatabase
Description copied from interface:ContainerSetSets licence on database (should be run before container(s) start).- Specified by:
setLicenseOnDatabasein interfaceContainerSet<TomcatContainer>
-
waitForUpgradeState
- Specified by:
waitForUpgradeStatein interfaceContainerSet<TomcatContainer>
-
waitForStartupOfActiveContainers
Description copied from interface:ContainerSetWaits at most the specified amount of time for all containers to finish starting up and join the cluster.- Specified by:
waitForStartupOfActiveContainersin interfaceContainerSet<TomcatContainer>- Parameters:
timeout- the maximum amount of time to wait.
-
waitForStartupOfActiveContainers
public void waitForStartupOfActiveContainers()Description copied from interface:ContainerSetWaits for a default maximum amount of time for all containers that are starting to complete startup and join the cluster.- Specified by:
waitForStartupOfActiveContainersin interfaceContainerSet<TomcatContainer>
-