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()voidvoidwaitForNodeSync(JiraCluster.Node node, long time, TimeUnit timeUnit) Waits untilnodein the cluster has synchronized its indexes and there are no pending inter-node operations.voidWaits for all cluster nodes ot be fully started up, throwing an error if it takes longer than 5 minutes.voidwaitForStartup(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.voidWaits until all nodes in the cluster have synchronized their indexes and there are no pending inter-node operations.voidwaitForSync(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 untilnodein 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
-