Interface ClusterSetupValidator

All Known Implementing Classes:
DefaultClusterSetupValidator

public interface ClusterSetupValidator
Simple flyweight that validates the user-inputted parameters required to setup a cluster.
  • Method Details

    • 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 generated
      clusterAddress - 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()