public class TomcatContainerSet extends Object implements ContainerSet<TomcatContainer>
| Modifier and Type | Method and Description |
|---|---|
JiraCluster |
cluster()
Access an object that can perform operations on the JIRA cluster.
|
List<? extends TomcatContainer> |
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 |
removeAllSharedPlugins() |
void |
removeSharedPlugins(java.util.function.Predicate<? super Path> filter) |
void |
resetDatabase()
Reset the database of the instance, returning it to an initial state.
|
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) |
public List<? extends TomcatContainer> getContainers()
getContainers in interface ContainerSet<TomcatContainer>public void startAll()
ContainerSetstartAll in interface ContainerSet<TomcatContainer>public void stopAll()
ContainerSetstopAll in interface ContainerSet<TomcatContainer>public JiraCluster cluster()
ContainerSetcluster in interface ContainerSet<TomcatContainer>public void installJira(JiraType warType)
ContainerSetinstallJira in interface ContainerSet<TomcatContainer>warType - the JIRA version to install.public Path jiraWarFile(JiraType warType)
ContainerSetjiraWarFile in interface ContainerSet<TomcatContainer>warType - JIRA version.public Optional<Path> testingPluginFile(String name, JiraType jarType)
ContainerSettestingPluginFile in interface ContainerSet<TomcatContainer>name - the name of the plugin. For example, "jira-ha-plugin" will search for a file called "jira-ha-plugin-.*.jar".jarType - JIRA version.public void installWar(Path warFile, String context)
ContainerSetinstallWar in interface ContainerSet<TomcatContainer>warFile - the WAR file to install.context - the context path. Do not include any leading or trailing '/' characters.public void removeAllSharedPlugins()
public void installTestingPlugins(JiraType jiraType)
ContainerSetinstallTestingPlugins in interface ContainerSet<TomcatContainer>jiraType - JIRA version to target.public void installSharedPlugin(Path pluginFile)
ContainerSetinstallSharedPlugin in interface ContainerSet<TomcatContainer>pluginFile - the plugin JAR/OBR file to install.public void removeSharedPlugins(java.util.function.Predicate<? super Path> filter)
public void resetDatabase()
ContainerSetresetDatabase in interface ContainerSet<TomcatContainer>public Path getSharedHome()
getSharedHome in interface ContainerSet<TomcatContainer>public void waitForUpgradeState(ZeroDowntimeControl.UpgradeState targetState, java.time.Duration timeout)
waitForUpgradeState in interface ContainerSet<TomcatContainer>public void waitForStartupOfActiveContainers(java.time.Duration timeout)
ContainerSetwaitForStartupOfActiveContainers in interface ContainerSet<TomcatContainer>timeout - the maximum amount of time to wait.public void waitForStartupOfActiveContainers()
ContainerSetwaitForStartupOfActiveContainers in interface ContainerSet<TomcatContainer>Copyright © 2002-2018 Atlassian. All Rights Reserved.