public class NonClusterConfigurationHelper extends Object implements ClusterConfigurationHelperInternal
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 and Description |
|---|
NonClusterConfigurationHelper(com.atlassian.config.ApplicationConfig applicationConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
bootstrapCluster()
Checks whether clustering is enabled, and bootstraps the cluster manager with
an appropriate configuration
|
void |
createCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress)
Deprecated.
|
void |
createCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress,
String networkInterfaceName)
Deprecated.
|
void |
createCluster(String clusterName,
File clusterHome,
String networkInterfaceName,
ClusterJoinConfig joinConfig)
Creates a new cluster with the given name, on the specified network interface,
as long as the given cluster does not exist.
|
void |
createSharedHome()
Creates shared home directory if it does not exist already.
|
List<NetworkInterface> |
getClusterableInterfaces()
Return a list of interfaces suitable for clustered communication.
|
com.atlassian.fugue.Option<ClusterJoinConfig> |
getJoinConfig()
Returns the configured join config if setup has progressed that far.
|
com.atlassian.fugue.Option<File> |
getSharedHome()
Return the shared home directory if one has been configured.
|
boolean |
isClusteredInstance() |
void |
joinCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress)
Deprecated.
|
void |
joinCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress,
String networkInterfaceName)
Deprecated.
|
void |
joinCluster(String clusterName,
File clusterHome,
String networkInterfaceName,
ClusterJoinConfig joinConfig)
Deprecated.
|
void |
populateExistingClusterSetupConfig()
If we run Confluence with cluster mode.
|
void |
publishConfiguration()
Publish the configuration of this instance to the shared cluster cache, where
it can be loaded by subsequent nodes during setup.
|
void |
saveSetupConfigIntoSharedHome()
This method need to be trigger when we finish setup.
|
public NonClusterConfigurationHelper(com.atlassian.config.ApplicationConfig applicationConfig)
public boolean isClusteredInstance()
isClusteredInstance in interface ClusterConfigurationHelper@Deprecated public void joinCluster(String clusterName, File clusterHome, InetAddress clusterAddress)
joinCluster in interface ClusterConfigurationHelper@Deprecated public void joinCluster(String clusterName, File clusterHome, InetAddress clusterAddress, String networkInterfaceName)
joinCluster in interface ClusterConfigurationHelper@Deprecated public void joinCluster(String clusterName, File clusterHome, String networkInterfaceName, ClusterJoinConfig joinConfig) throws ClusterException
joinCluster in interface ClusterConfigurationHelperClusterException - if an error joining the cluster.@Deprecated public void createCluster(String clusterName, File clusterHome, InetAddress clusterAddress) throws ClusterException
ClusterConfigurationHelpercreateCluster in interface ClusterConfigurationHelperClusterException - if an error setting up the cluster.@Deprecated public void createCluster(String clusterName, File clusterHome, InetAddress clusterAddress, String networkInterfaceName)
ClusterConfigurationHelpercreateCluster in interface ClusterConfigurationHelperpublic void createCluster(String clusterName, File clusterHome, String networkInterfaceName, ClusterJoinConfig joinConfig) throws ClusterException
ClusterConfigurationHelpercreateCluster in interface ClusterConfigurationHelperClusterException - if an error setting up the cluster.public void bootstrapCluster()
ClusterConfigurationHelperbootstrapCluster in interface ClusterConfigurationHelperpublic void publishConfiguration()
ClusterConfigurationHelperpublishConfiguration in interface ClusterConfigurationHelperpublic List<NetworkInterface> getClusterableInterfaces()
ClusterConfigurationHelpergetClusterableInterfaces in interface ClusterConfigurationHelperNetworkInterface objectspublic com.atlassian.fugue.Option<File> getSharedHome()
ClusterConfigurationHelpergetSharedHome in interface ClusterConfigurationHelperpublic com.atlassian.fugue.Option<ClusterJoinConfig> getJoinConfig()
ClusterConfigurationHelpergetJoinConfig in interface ClusterConfigurationHelperpublic void createSharedHome()
ClusterConfigurationHelperInternalShared home is created only if not clustering.
createSharedHome in interface ClusterConfigurationHelperInternalpublic void saveSetupConfigIntoSharedHome()
ClusterConfigurationHelperInternalsaveSetupConfigIntoSharedHome in interface ClusterConfigurationHelperInternalpublic void populateExistingClusterSetupConfig()
ClusterConfigurationHelperInternalpopulateExistingClusterSetupConfig in interface ClusterConfigurationHelperInternalCopyright © 2003–2018 Atlassian. All rights reserved.