|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.cluster.nonclustered.NonClusterConfigurationHelper
public class NonClusterConfigurationHelper
An implementation of ClusterConfigurationHelper for use when clustering is not being used. Some methods may
throw exceptions if they are used, so isClusteredInstance() should be used to check in advance if the other
methods are appropriate to use.
| Constructor Summary | |
|---|---|
NonClusterConfigurationHelper(com.atlassian.config.ApplicationConfig applicationConfig)
|
|
| Method Summary | |
|---|---|
void |
bootstrapCluster()
Checks whether clustering is enabled, and bootstraps the cluster manager with an appropriate configuration |
void |
createCluster(java.lang.String clusterName,
java.io.File clusterHome)
Creates a new cluster with the given name as long as the given cluster does not exist. |
void |
createCluster(java.lang.String clusterName,
java.io.File clusterHome,
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()
|
com.atlassian.fugue.Option<java.io.File> |
getSharedHome()
Return the shared home directory if one has been configured. |
boolean |
isClusteredInstance()
|
boolean |
isLicensedClusterNodesExceeded()
|
void |
joinCluster(java.lang.String clusterName,
java.io.File clusterHome)
Join the named cluster, as long as it exists and the licensed member count is not exceeded. |
void |
joinCluster(java.lang.String clusterName,
java.io.File clusterHome,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonClusterConfigurationHelper(com.atlassian.config.ApplicationConfig applicationConfig)
| Method Detail |
|---|
public boolean isClusteredInstance()
isClusteredInstance in interface ClusterConfigurationHelperpublic boolean isLicensedClusterNodesExceeded()
isLicensedClusterNodesExceeded in interface ClusterConfigurationHelper
public void joinCluster(java.lang.String clusterName,
java.io.File clusterHome)
ClusterConfigurationHelper
joinCluster in interface ClusterConfigurationHelper
public void joinCluster(java.lang.String clusterName,
java.io.File clusterHome,
java.lang.String networkInterfaceName)
ClusterConfigurationHelper
joinCluster in interface ClusterConfigurationHelper
public void createCluster(java.lang.String clusterName,
java.io.File clusterHome)
ClusterConfigurationHelper
createCluster in interface ClusterConfigurationHelper
public void createCluster(java.lang.String clusterName,
java.io.File clusterHome,
java.lang.String networkInterfaceName)
ClusterConfigurationHelper
createCluster in interface ClusterConfigurationHelperpublic int getPermittedClusterNodes()
getPermittedClusterNodes in interface ClusterConfigurationHelperpublic void bootstrapCluster()
ClusterConfigurationHelper
bootstrapCluster in interface ClusterConfigurationHelperpublic void publishConfiguration()
ClusterConfigurationHelper
publishConfiguration in interface ClusterConfigurationHelperpublic java.util.List getClusterableInterfaces()
ClusterConfigurationHelper
getClusterableInterfaces in interface ClusterConfigurationHelperNetworkInterface objectspublic com.atlassian.fugue.Option<java.io.File> getSharedHome()
ClusterConfigurationHelper
getSharedHome in interface ClusterConfigurationHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||