public interface

ClusterConfigurationHelper

com.atlassian.confluence.cluster.ClusterConfigurationHelper
Known Indirect Subclasses

Class Overview

A facade for interacting with the clustering subsystem

Summary

Public Methods
abstract void bootstrapCluster()
Checks whether clustering is enabled, and bootstraps the cluster manager with an appropriate configuration
abstract 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.
abstract void createCluster(String clusterName)
Creates a new cluster with the given name as long as the given cluster does not exist.
abstract List getClusterableInterfaces()
Return a list of interfaces suitable for clustered communication.
abstract int getPermittedClusterNodes()
abstract boolean isClusteredInstance()
abstract boolean isLicensedClusterNodesExceeded()
abstract void joinCluster(String clusterName)
Join the named cluster, as long as it exists and the licensed member count is not exceeded.
abstract 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.
abstract void publishConfiguration()
Publish the configuration of this instance to the shared cluster cache, where it can be loaded by subsequent nodes during setup.

Public Methods

public abstract void bootstrapCluster ()

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

Throws
ClusterException if there was an error configuring the cluster manager, or if the licensed nodes were exceeded by joining the cluster.

public abstract 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.

Throws
ClusterException if an error setting up the cluster.

public abstract void createCluster (String clusterName)

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

Throws
ClusterException if an error setting up the cluster.

public abstract 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 abstract int getPermittedClusterNodes ()

Returns
  • the number of clustered nodes permitted by the license on this instance of Confluence.

public abstract boolean isClusteredInstance ()

Returns
  • true if the application is currently configured to be part of a cluster, otherwise false.

public abstract boolean isLicensedClusterNodesExceeded ()

Returns
  • true if the cluster which this node belongs to has more members than is allowed by the license, otherwise false.

public abstract void joinCluster (String clusterName)

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

Throws
ClusterException if an error joining the cluster.

public abstract 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.

Throws
ClusterException if an error joining the cluster.

public abstract void publishConfiguration ()

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