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 MessageHoldergetResult()ClusterSetupValidatorvalidateAWSJoinConfig(String accessKey, String secretKey, String iamRole, String region, String hostHeader, String securityGroupName, String tagKey, String tagValue)Validates all the parameters for an AWS cluster.ClusterSetupValidatorvalidateClusterHome(String clusterHome)Validates just the cluster Home.ClusterSetupValidatorvalidateClusterJoinMethod(String joinMethod)ClusterSetupValidatorvalidateClusterName(String clusterName)Validates just the cluster Name.voidvalidateKubernetesJoinConfig()ClusterSetupValidatorvalidateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress)Validates just the cluster address, for a multicast cluster.ClusterSetupValidatorvalidateNetworkInterface(String networkInterface)Validates just the cluster network addressClusterSetupValidatorvalidateTCPIPClusterJoinConfig(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:
getResultin interfaceClusterSetupValidator- Returns:
- the current validation results.
-
validateClusterJoinMethod
public ClusterSetupValidator validateClusterJoinMethod(String joinMethod)
- 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
public ClusterSetupValidator validateNetworkInterface(String networkInterface)
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
public ClusterSetupValidator validateClusterName(String clusterName)
Description copied from interface:ClusterSetupValidatorValidates just the cluster Name.- Specified by:
validateClusterNamein interfaceClusterSetupValidator- Parameters:
clusterName- must be a non-empty string- Returns:
- this
-
validateClusterHome
public ClusterSetupValidator validateClusterHome(String clusterHome)
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
public ClusterSetupValidator validateTCPIPClusterJoinConfig(String clusterPeersString)
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
-
-