T
- the container type.public interface ContainerSet<T extends Container>
Modifier and Type | Method and Description |
---|---|
void |
cleanDatabase()
Remove all Jira tables.
|
JiraCluster |
cluster()
Access an object that can perform operations on the JIRA cluster.
|
List<? extends T> |
getContainers() |
Path |
getSharedHome() |
void |
installJira(JiraType warType)
Installs a predefined JIRA WAR into all containers in the set.
|
void |
installSharedPlugin(Path pluginFile)
Installs a plugin into shared home.
|
void |
installTestingPlugins(JiraType jiraType)
Installs any plugins to shared home that are required for testing.
|
void |
installWar(Path warFile,
String context)
Installs a WAR file into all containers in the set.
|
Path |
jiraWarFile(JiraType warType)
Return the path of a predefined JIRA WAR file.
|
void |
reinitialiseDatabase()
Reinsert the basic Jira tables, so that Jira is initialised, licensed, but without any issues.
|
void |
resetClusterState()
Deprecated.
|
void |
resetDatabase()
Deprecated.
|
void |
setLicenseOnDatabase(String licence)
Sets licence on database (should be run before container(s) start).
|
void |
setSharedHome(Path path)
Sets path to shared home.
|
void |
startAll()
Start all containers in the set.
|
void |
startAllConcurrently() |
void |
startStoppedContainersConcurrently() |
void |
stopAll()
Cleanly stop all containers in the set.
|
Optional<Path> |
testingPluginFile(String name,
JiraType jarType)
Return the path to the plugin JAR file.
|
void |
waitForStartupOfActiveContainers()
Waits for a default maximum amount of time for all containers that are starting to complete startup and join the
cluster.
|
void |
waitForStartupOfActiveContainers(java.time.Duration timeout)
Waits at most the specified amount of time for all containers to finish starting up and join the cluster.
|
void |
waitForUpgradeState(ZeroDowntimeControl.UpgradeState targetState,
java.time.Duration timeout) |
void startAll()
void startAllConcurrently() throws InterruptedException
InterruptedException
void startStoppedContainersConcurrently() throws InterruptedException
InterruptedException
void stopAll()
JiraCluster cluster()
void installJira(JiraType warType)
warType
- the JIRA version to install.Path jiraWarFile(JiraType warType)
warType
- JIRA version.Optional<Path> testingPluginFile(String name, JiraType jarType)
name
- the name of the plugin. For example, "jira-ha-plugin"
will search for a file called "jira-ha-plugin-.*.jar"
.jarType
- JIRA version.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 installTestingPlugins(JiraType jiraType)
jiraType
- JIRA version to target.void installSharedPlugin(Path pluginFile)
pluginFile
- the plugin JAR/OBR file to install.@Deprecated void resetClusterState()
void cleanDatabase()
void reinitialiseDatabase()
@Deprecated void resetDatabase()
void setLicenseOnDatabase(String licence)
Path getSharedHome()
void setSharedHome(Path path)
path
- shared home path.void waitForUpgradeState(ZeroDowntimeControl.UpgradeState targetState, java.time.Duration timeout)
void waitForStartupOfActiveContainers(java.time.Duration timeout)
timeout
- the maximum amount of time to wait.void waitForStartupOfActiveContainers()
Copyright © 2002-2023 Atlassian. All Rights Reserved.