T
- the container type.public interface ContainerSet<T extends Container>
Modifier and Type | Method and Description |
---|---|
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 |
resetClusterState()
Reset the tables related to cluster communication & upgrade-tasks in the database of the instance, returning
them to their initial state.
|
void |
resetDatabase()
Deprecated.
|
void |
setLicenseOnDatabase(String licence)
sets licence on database (should be run before container(s) start)
|
void |
startAll()
Start all containers in the set.
|
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 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.void resetClusterState()
@Deprecated void resetDatabase()
resetClusterState()
starting in 8.2void setLicenseOnDatabase(String licence)
Path getSharedHome()
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-2022 Atlassian. All Rights Reserved.