Package com.atlassian.confluence.cluster
Class DefaultClusterSetupValidator
- java.lang.Object
-
- com.atlassian.confluence.cluster.DefaultClusterSetupValidator
-
- All Implemented Interfaces:
ClusterSetupValidator
public class DefaultClusterSetupValidator extends Object implements ClusterSetupValidator
-
-
Constructor Summary
Constructors Constructor Description DefaultClusterSetupValidator(MessageHolder holder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageHolder
getResult()
ClusterSetupValidator
validateAWSJoinConfig(String accessKey, String secretKey, String iamRole, String region, String hostHeader, String securityGroupName, String tagKey, String tagValue)
Validates all the parameters for an AWS cluster.ClusterSetupValidator
validateClusterHome(String clusterHome)
Validates just the cluster Home.ClusterSetupValidator
validateClusterJoinMethod(String joinMethod)
ClusterSetupValidator
validateClusterName(String clusterName)
Validates just the cluster Name.void
validateKubernetesJoinConfig()
ClusterSetupValidator
validateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress)
Validates just the cluster address, for a multicast cluster.ClusterSetupValidator
validateNetworkInterface(String networkInterface)
Validates just the cluster network addressClusterSetupValidator
validateTCPIPClusterJoinConfig(String clusterPeersString)
Validates the cluster peers, for a TCPIP cluster.
-
-
-
Constructor Detail
-
DefaultClusterSetupValidator
public DefaultClusterSetupValidator(MessageHolder holder)
-
-
Method Detail
-
getResult
public MessageHolder getResult()
- Specified by:
getResult
in interfaceClusterSetupValidator
- Returns:
- the current validation results.
-
validateClusterJoinMethod
public ClusterSetupValidator validateClusterJoinMethod(String joinMethod)
- Specified by:
validateClusterJoinMethod
in interfaceClusterSetupValidator
-
validateMulticastClusterJoinConfig
public ClusterSetupValidator validateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress)
Description copied from interface:ClusterSetupValidator
Validates just the cluster address, for a multicast cluster.- Specified by:
validateMulticastClusterJoinConfig
in interfaceClusterSetupValidator
- Parameters:
generateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast address- Returns:
- this
-
validateNetworkInterface
public ClusterSetupValidator validateNetworkInterface(String networkInterface)
Description copied from interface:ClusterSetupValidator
Validates just the cluster network address- Specified by:
validateNetworkInterface
in interfaceClusterSetupValidator
- Parameters:
networkInterface
- The network interface to be used- Returns:
- this
-
validateClusterName
public ClusterSetupValidator validateClusterName(String clusterName)
Description copied from interface:ClusterSetupValidator
Validates just the cluster Name.- Specified by:
validateClusterName
in interfaceClusterSetupValidator
- Parameters:
clusterName
- must be a non-empty string- Returns:
- this
-
validateClusterHome
public ClusterSetupValidator validateClusterHome(String clusterHome)
Description copied from interface:ClusterSetupValidator
Validates just the cluster Home.- Specified by:
validateClusterHome
in interfaceClusterSetupValidator
- Parameters:
clusterHome
- must be a valid filepath to a readable directory- Returns:
- this
-
validateTCPIPClusterJoinConfig
public ClusterSetupValidator validateTCPIPClusterJoinConfig(String clusterPeersString)
Description copied from interface:ClusterSetupValidator
Validates the cluster peers, for a TCPIP cluster.- Specified by:
validateTCPIPClusterJoinConfig
in interfaceClusterSetupValidator
- Parameters:
clusterPeersString
- comma-separated string of cluster node IPs- Returns:
- this
-
validateAWSJoinConfig
public ClusterSetupValidator validateAWSJoinConfig(String accessKey, String secretKey, String iamRole, String region, String hostHeader, String securityGroupName, String tagKey, String tagValue)
Description copied from interface:ClusterSetupValidator
Validates all the parameters for an AWS cluster.- Specified by:
validateAWSJoinConfig
in interfaceClusterSetupValidator
- Returns:
- this
-
validateKubernetesJoinConfig
public void validateKubernetesJoinConfig()
- Specified by:
validateKubernetesJoinConfig
in interfaceClusterSetupValidator
-
-