public class NonClusterConfigurationHelper extends Object implements ClusterConfigurationHelper
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)
Deprecated.
|
void |
createCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress)
Creates a new cluster with the given name as long as the given cluster
does not exist.
|
void |
createCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress,
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,
File clusterHome,
String networkInterfaceName)
Deprecated.
|
List<NetworkInterface> |
getClusterableInterfaces()
Return a list of interfaces suitable for clustered communication.
|
int |
getPermittedClusterNodes() |
com.atlassian.fugue.Option<File> |
getSharedHome()
Return the shared home directory if one has been configured.
|
boolean |
isClusteredInstance() |
boolean |
isLicensedClusterNodesExceeded() |
void |
joinCluster(String clusterName,
File clusterHome)
Deprecated.
|
void |
joinCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress)
Join the named cluster, as long as it exists and the licensed member
count is not exceeded.
|
void |
joinCluster(String clusterName,
File clusterHome,
InetAddress clusterAddress,
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 |
joinCluster(String clusterName,
File clusterHome,
String networkInterfaceName)
Deprecated.
|
void |
publishConfiguration()
Publish the configuration of this instance to the shared cluster cache, where
it can be loaded by subsequent nodes during setup.
|
public NonClusterConfigurationHelper(com.atlassian.config.ApplicationConfig applicationConfig)
public boolean isClusteredInstance()
isClusteredInstance
in interface ClusterConfigurationHelper
public boolean isLicensedClusterNodesExceeded()
isLicensedClusterNodesExceeded
in interface ClusterConfigurationHelper
@Deprecated public void joinCluster(String clusterName, File clusterHome) throws ClusterException
ClusterConfigurationHelper
joinCluster
in interface ClusterConfigurationHelper
ClusterException
- if an error joining the cluster.public void joinCluster(String clusterName, File clusterHome, InetAddress clusterAddress)
ClusterConfigurationHelper
joinCluster
in interface ClusterConfigurationHelper
@Deprecated public void joinCluster(String clusterName, File clusterHome, String networkInterfaceName) throws ClusterException
ClusterConfigurationHelper
joinCluster
in interface ClusterConfigurationHelper
ClusterException
- if an error joining the cluster.public void joinCluster(String clusterName, File clusterHome, InetAddress clusterAddress, String networkInterfaceName)
ClusterConfigurationHelper
joinCluster
in interface ClusterConfigurationHelper
@Deprecated public void createCluster(String clusterName, File clusterHome)
ClusterConfigurationHelper
createCluster
in interface ClusterConfigurationHelper
public void createCluster(String clusterName, File clusterHome, InetAddress clusterAddress) throws ClusterException
ClusterConfigurationHelper
createCluster
in interface ClusterConfigurationHelper
ClusterException
- if an error setting up the cluster.@Deprecated public void createCluster(String clusterName, File clusterHome, String networkInterfaceName) throws ClusterException
ClusterConfigurationHelper
createCluster
in interface ClusterConfigurationHelper
ClusterException
- if an error setting up the cluster.public void createCluster(String clusterName, File clusterHome, InetAddress clusterAddress, String networkInterfaceName)
ClusterConfigurationHelper
createCluster
in interface ClusterConfigurationHelper
public int getPermittedClusterNodes()
getPermittedClusterNodes
in interface ClusterConfigurationHelper
Integer.MAX_VALUE
, otherwise
returns 0.public void bootstrapCluster()
ClusterConfigurationHelper
bootstrapCluster
in interface ClusterConfigurationHelper
public void publishConfiguration()
ClusterConfigurationHelper
publishConfiguration
in interface ClusterConfigurationHelper
public List<NetworkInterface> getClusterableInterfaces()
ClusterConfigurationHelper
getClusterableInterfaces
in interface ClusterConfigurationHelper
NetworkInterface
objectspublic com.atlassian.fugue.Option<File> getSharedHome()
ClusterConfigurationHelper
getSharedHome
in interface ClusterConfigurationHelper
Copyright © 2003–2015 Atlassian. All rights reserved.