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.voidvalidateMulticastClusterJoinConfig(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:
getResultin interfaceClusterSetupValidator- Returns:
- the current validation results.
-
validateClusterJoinMethod
- Specified by:
validateClusterJoinMethodin interfaceClusterSetupValidator
-
validateMulticastClusterJoinConfig
public ClusterSetupValidator validateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress) Description copied from interface:ClusterSetupValidatorValidates just the cluster address, for a multicast cluster.- Specified by:
validateMulticastClusterJoinConfigin 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:ClusterSetupValidatorValidates just the cluster network address- Specified by:
validateNetworkInterfacein interfaceClusterSetupValidator- Parameters:
networkInterface- The network interface to be used- Returns:
- this
-
validateClusterName
Description copied from interface:ClusterSetupValidatorValidates just the cluster Name.- Specified by:
validateClusterNamein interfaceClusterSetupValidator- Parameters:
clusterName- must be a non-empty string- Returns:
- this
-
validateClusterHome
Description copied from interface:ClusterSetupValidatorValidates just the cluster Home.- Specified by:
validateClusterHomein interfaceClusterSetupValidator- Parameters:
clusterHome- must be a valid filepath to a readable directory- Returns:
- this
-
validateTCPIPClusterJoinConfig
Description copied from interface:ClusterSetupValidatorValidates the cluster peers, for a TCPIP cluster.- Specified by:
validateTCPIPClusterJoinConfigin 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:ClusterSetupValidatorValidates all the parameters for an AWS cluster.- Specified by:
validateAWSJoinConfigin interfaceClusterSetupValidator- Returns:
- this
-
validateKubernetesJoinConfig
public void validateKubernetesJoinConfig()- Specified by:
validateKubernetesJoinConfigin interfaceClusterSetupValidator
-