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 |
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 waitForStartup(long time, TimeUnit timeUnit)
public void waitForStartup()
Copyright © 2002-2019 Atlassian. All Rights Reserved.