Package com.atlassian.confluence.cluster
Class ClusterConfigurationUtils
- java.lang.Object
-
- com.atlassian.confluence.cluster.ClusterConfigurationUtils
-
@Internal public final class ClusterConfigurationUtils extends Object
Helper class for retrieving cluster configuration information. It is designed for internal use only.- Since:
- 6.11
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAwsEc2PrivateIp(@NonNull String defaultIp)
static ClusterConfig
getClusterConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
static @NonNull File
getSharedHome(com.atlassian.config.ApplicationConfiguration applicationConfig)
Returns the cluster shared home directory, if one is configured, else returns a subdirectory of the local home.static boolean
isClusterHomeConfigured(com.atlassian.config.ApplicationConfiguration applicationConfig)
-
-
-
Method Detail
-
getClusterConfig
public static ClusterConfig getClusterConfig(com.atlassian.config.ApplicationConfiguration applicationConfig) throws ClusterException
- Returns:
- the current cluster configuration
- Throws:
ClusterException
- if the current configuration is invalid
-
isClusterHomeConfigured
public static boolean isClusterHomeConfigured(com.atlassian.config.ApplicationConfiguration applicationConfig)
- Returns:
- true if the given
ApplicationConfiguration
has the cluster shared home directory configured - Since:
- 7.19
-
getSharedHome
public static @NonNull File getSharedHome(com.atlassian.config.ApplicationConfiguration applicationConfig)
Returns the cluster shared home directory, if one is configured, else returns a subdirectory of the local home.
-
-