public class

DefaultClusterConfigurationHelper

extends Object
implements ClusterConfigurationHelper
java.lang.Object
   ↳ com.atlassian.confluence.cluster.DefaultClusterConfigurationHelper

Summary

Constants
String CLUSTER
String CLUSTER_ADDRESS
String CLUSTER_INTERFACE
String CLUSTER_NAME
String CLUSTER_TTL
Public Constructors
DefaultClusterConfigurationHelper()
Public Methods
void bootstrapCluster()
Checks whether clustering is enabled, and bootstraps the cluster manager with an appropriate configuration
void createCluster(String clusterName, String networkInterfaceName)
Creates a new cluster with the given name, on the specified network interface, as long as the given cluster does not exist.
void createCluster(String clusterName)
Creates a new cluster with the given name as long as the given cluster does not exist.
List getClusterableInterfaces()
Return a list of interfaces suitable for clustered communication.
int getPermittedClusterNodes()
boolean isClusteredInstance()
boolean isLicensedClusterNodesExceeded()
void joinCluster(String clusterName)
Join the named cluster, as long as it exists and the licensed member count is not exceeded.
void joinCluster(String clusterName, String networkInterfaceName)
Join the named cluster, on the specified network interface, as long as it exists and the licensed member count is not exceeded.
void publishConfiguration()
Publish the configuration of this instance to the shared cluster cache, where it can be loaded by subsequent nodes during setup.
void setApplicationConfig(ApplicationConfig applicationConfig)
void setCacheConfigLoader(CacheConfigurationLoader cacheConfigLoader)
void setClusterManager(ClusterManager clusterManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.cluster.ClusterConfigurationHelper

Constants

public static final String CLUSTER

Constant Value: "confluence.cluster"

public static final String CLUSTER_ADDRESS

Constant Value: "confluence.cluster.address"

public static final String CLUSTER_INTERFACE

Constant Value: "confluence.cluster.interface"

public static final String CLUSTER_NAME

Constant Value: "confluence.cluster.name"

public static final String CLUSTER_TTL

Constant Value: "confluence.cluster.ttl"

Public Constructors

public DefaultClusterConfigurationHelper ()

Public Methods

public void bootstrapCluster ()

Checks whether clustering is enabled, and bootstraps the cluster manager with an appropriate configuration

public void createCluster (String clusterName, String networkInterfaceName)

Creates a new cluster with the given name, on the specified network interface, as long as the given cluster does not exist.

public void createCluster (String clusterName)

Creates a new cluster with the given name as long as the given cluster does not exist.

public List getClusterableInterfaces ()

Return a list of interfaces suitable for clustered communication. The list is ordered for suitable rendering in a UI.

Returns
  • List of NetworkInterface objects

public int getPermittedClusterNodes ()

public boolean isClusteredInstance ()

public boolean isLicensedClusterNodesExceeded ()

public void joinCluster (String clusterName)

Join the named cluster, as long as it exists and the licensed member count is not exceeded.

public void joinCluster (String clusterName, String networkInterfaceName)

Join the named cluster, on the specified network interface, as long as it exists and the licensed member count is not exceeded.

public void publishConfiguration ()

Publish the configuration of this instance to the shared cluster cache, where it can be loaded by subsequent nodes during setup.

public void setApplicationConfig (ApplicationConfig applicationConfig)

public void setCacheConfigLoader (CacheConfigurationLoader cacheConfigLoader)

public void setClusterManager (ClusterManager clusterManager)