| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cluster.DefaultClusterConfigurationHelper
public class DefaultClusterConfigurationHelper
| Field Summary | |
|---|---|
static java.lang.String | 
CLUSTER
 | 
static java.lang.String | 
CLUSTER_ADDRESS
 | 
static java.lang.String | 
CLUSTER_INTERFACE
 | 
static java.lang.String | 
CLUSTER_NAME
 | 
static java.lang.String | 
CLUSTER_TTL
 | 
| Constructor Summary | |
|---|---|
DefaultClusterConfigurationHelper()
 | 
|
| Method Summary | |
|---|---|
 void | 
bootstrapCluster()
Checks whether clustering is enabled, and bootstraps the cluster manager with an appropriate configuration  | 
 void | 
createCluster(java.lang.String clusterName)
Creates a new cluster with the given name as long as the given cluster does not exist.  | 
 void | 
createCluster(java.lang.String clusterName,
              java.lang.String networkInterfaceName)
Creates a new cluster with the given name, on the specified network interface, as long as the given cluster does not exist.  | 
 java.util.List | 
getClusterableInterfaces()
Return a list of interfaces suitable for clustered communication.  | 
 int | 
getPermittedClusterNodes()
 | 
 boolean | 
isClusteredInstance()
 | 
 boolean | 
isLicensedClusterNodesExceeded()
 | 
 void | 
joinCluster(java.lang.String clusterName)
Join the named cluster, as long as it exists and the licensed member count is not exceeded.  | 
 void | 
joinCluster(java.lang.String clusterName,
            java.lang.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(com.atlassian.config.ApplicationConfig applicationConfig)
 | 
 void | 
setCacheConfigLoader(CacheConfigurationLoader cacheConfigLoader)
 | 
 void | 
setClusterManager(ClusterManager clusterManager)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String CLUSTER
public static final java.lang.String CLUSTER_NAME
public static final java.lang.String CLUSTER_ADDRESS
public static final java.lang.String CLUSTER_INTERFACE
public static final java.lang.String CLUSTER_TTL
| Constructor Detail | 
|---|
public DefaultClusterConfigurationHelper()
| Method Detail | 
|---|
public boolean isClusteredInstance()
isClusteredInstance in interface ClusterConfigurationHelperpublic boolean isLicensedClusterNodesExceeded()
isLicensedClusterNodesExceeded in interface ClusterConfigurationHelper
public void joinCluster(java.lang.String clusterName)
                 throws ClusterException
ClusterConfigurationHelper
joinCluster in interface ClusterConfigurationHelperClusterException - if an error joining the cluster.
public void joinCluster(java.lang.String clusterName,
                        java.lang.String networkInterfaceName)
                 throws ClusterException
ClusterConfigurationHelper
joinCluster in interface ClusterConfigurationHelperClusterException - if an error joining the cluster.
public void createCluster(java.lang.String clusterName)
                   throws ClusterException
ClusterConfigurationHelper
createCluster in interface ClusterConfigurationHelperClusterException - if an error setting up the cluster.
public void createCluster(java.lang.String clusterName,
                          java.lang.String networkInterfaceName)
                   throws ClusterException
ClusterConfigurationHelper
createCluster in interface ClusterConfigurationHelperClusterException - if an error setting up the cluster.
public void bootstrapCluster()
                      throws ClusterException
ClusterConfigurationHelper
bootstrapCluster in interface ClusterConfigurationHelperClusterException - if there was an error configuring the cluster manager,
 or if the licensed nodes were exceeded by joining the cluster.public int getPermittedClusterNodes()
getPermittedClusterNodes in interface ClusterConfigurationHelperpublic void publishConfiguration()
ClusterConfigurationHelper
publishConfiguration in interface ClusterConfigurationHelperpublic java.util.List getClusterableInterfaces()
ClusterConfigurationHelper
getClusterableInterfaces in interface ClusterConfigurationHelperNetworkInterface objectspublic void setClusterManager(ClusterManager clusterManager)
public void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)
public void setCacheConfigLoader(CacheConfigurationLoader cacheConfigLoader)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||