Package com.atlassian.confluence.cluster
Interface ClusterSetupValidator
-
- All Known Implementing Classes:
DefaultClusterSetupValidator
public interface ClusterSetupValidatorSimple flyweight that validates the user-inputted parameters required to setup a cluster.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getResult
MessageHolder getResult()
- Returns:
- the current validation results.
-
validateClusterName
ClusterSetupValidator validateClusterName(String clusterName)
Validates just the cluster Name.- Parameters:
clusterName- must be a non-empty string- Returns:
- this
-
validateClusterHome
ClusterSetupValidator validateClusterHome(String clusterHome)
Validates just the cluster Home.- Parameters:
clusterHome- must be a valid filepath to a readable directory- Returns:
- this
-
validateTCPIPClusterJoinConfig
ClusterSetupValidator validateTCPIPClusterJoinConfig(String clusterPeersString)
Validates the cluster peers, for a TCPIP cluster.- Parameters:
clusterPeersString- comma-separated string of cluster node IPs- Returns:
- this
-
validateClusterJoinMethod
ClusterSetupValidator validateClusterJoinMethod(String joinMethod)
-
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
ClusterSetupValidator validateNetworkInterface(String networkInterface)
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()
-
-