public class JiraCluster extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JiraCluster.Node
A node running in a JIRA cluster.
|
Constructor and Description |
---|
JiraCluster(Collection<? extends JiraCluster.Node> nodes) |
Modifier and Type | Method and Description |
---|---|
String |
adminPassword() |
String |
adminUsername() |
JiraCluster.Node |
anyNode() |
ClusterCleaner |
cleaner() |
JiraCluster.Node |
differentNode(JiraCluster.Node than) |
Collection<? extends JiraCluster.Node> |
nodes() |
String |
toString() |
void |
waitForNodeSync(JiraCluster.Node n) |
void |
waitForNodeSync(JiraCluster.Node node,
long time,
TimeUnit timeUnit)
Waits until
node |
void |
waitForStartup()
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 |
waitForSync()
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.
|
public JiraCluster(Collection<? extends JiraCluster.Node> nodes)
public JiraCluster.Node anyNode()
public JiraCluster.Node differentNode(JiraCluster.Node than)
public Collection<? extends JiraCluster.Node> nodes()
public ClusterCleaner cleaner()
public String adminUsername()
public String adminPassword()
public void waitForSync(long time, TimeUnit timeUnit)
public void waitForSync()
public void waitForNodeSync(JiraCluster.Node n)
public void waitForNodeSync(JiraCluster.Node node, long time, TimeUnit timeUnit)
node
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.
public void waitForStartup(long time, TimeUnit timeUnit)
public void waitForStartup()
Copyright © 2002-2022 Atlassian. All Rights Reserved.