Package com.atlassian.confluence.cluster
Interface ClusterSetupValidator
- All Known Implementing Classes:
DefaultClusterSetupValidator
public interface ClusterSetupValidator
Simple flyweight that validates the user-inputted parameters required to setup a cluster.
-
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.
-
Method Details
-
getResult
MessageHolder getResult()- Returns:
- the current validation results.
-
validateClusterName
Validates just the cluster Name.- Parameters:
clusterName
- must be a non-empty string- Returns:
- this
-
validateClusterHome
Validates just the cluster Home.- Parameters:
clusterHome
- must be a valid filepath to a readable directory- Returns:
- this
-
validateTCPIPClusterJoinConfig
Validates the cluster peers, for a TCPIP cluster.- Parameters:
clusterPeersString
- comma-separated string of cluster node IPs- Returns:
- this
-
validateClusterJoinMethod
-
validateMulticastClusterJoinConfig
ClusterSetupValidator validateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress) Validates just the cluster address, for a multicast cluster.- Parameters:
generateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast address- Returns:
- this
-
validateNetworkInterface
Validates just the cluster network address- Parameters:
networkInterface
- The network interface to be used- Returns:
- this
-
validateAWSJoinConfig
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.- Returns:
- this
-
validateKubernetesJoinConfig
void validateKubernetesJoinConfig()
-