Package com.atlassian.confluence.cluster
Class DefaultClusterSetupValidator
java.lang.Object
com.atlassian.confluence.cluster.DefaultClusterSetupValidator
- All Implemented Interfaces:
ClusterSetupValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateAWSJoinConfig
(String accessKey, String secretKey, String iamRole, String region, String hostHeader, String securityGroupName, String tagKey, String tagValue) Validates all the parameters for an AWS cluster.validateClusterHome
(String clusterHome) Validates just the cluster Home.validateClusterJoinMethod
(String joinMethod) validateClusterName
(String clusterName) Validates just the cluster Name.void
validateMulticastClusterJoinConfig
(Boolean generateAddress, String clusterAddress) Validates just the cluster address, for a multicast cluster.validateNetworkInterface
(String networkInterface) Validates just the cluster network addressvalidateTCPIPClusterJoinConfig
(String clusterPeersString) Validates the cluster peers, for a TCPIP cluster.
-
Constructor Details
-
DefaultClusterSetupValidator
-
-
Method Details
-
getResult
- Specified by:
getResult
in interfaceClusterSetupValidator
- Returns:
- the current validation results.
-
validateClusterJoinMethod
- 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
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
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
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
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
-