Class JiraCluster
java.lang.Object
com.atlassian.jira.plugins.ha.testapi.test.JiraCluster
A set of nodes that run as part of a JIRA cluster for testing.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanyNode()
cleaner()
Collection<? extends JiraCluster.Node>
nodes()
toString()
void
void
waitForNodeSync
(JiraCluster.Node node, long time, TimeUnit timeUnit) Waits untilnode
in the cluster has synchronized its indexes and there are no pending inter-node operations.
void
Waits for all cluster nodes ot be fully started up, throwing an error if it takes longer than 5 minutes.void
waitForStartup
(long time, TimeUnit timeUnit) Waits for all cluster nodes to be fully started up, throwing an error if it takes longer than the specified time.void
Waits until all nodes in the cluster have synchronized their indexes and there are no pending inter-node operations.void
waitForSync
(long time, TimeUnit timeUnit) Waits until all nodes in the cluster have synchronized their indexes and there are no pending inter-node operations.
-
Constructor Details
-
JiraCluster
-
-
Method Details
-
anyNode
- Returns:
- a random node in the cluster.
-
differentNode
- Returns:
- returns a node guaranteed to be different than the specified node.
-
nodes
-
cleaner
-
adminUsername
-
adminPassword
-
waitForSync
Waits until all nodes in the cluster have synchronized their indexes and there are no pending inter-node operations. Fails with an exception if nodes haven't synchronized after the specified time. -
waitForSync
public void waitForSync()Waits until all nodes in the cluster have synchronized their indexes and there are no pending inter-node operations. Fails with an exception if nodes haven't synchronized up after 60 seconds. -
waitForNodeSync
-
waitForNodeSync
Waits untilnode
in the cluster has synchronized its indexes and there are no pending inter-node operations. Fails with an exception if the node haven't synchronized after the specified time.
-
waitForStartup
Waits for all cluster nodes to be fully started up, throwing an error if it takes longer than the specified time. -
waitForStartup
public void waitForStartup()Waits for all cluster nodes ot be fully started up, throwing an error if it takes longer than 5 minutes. -
toString
-