public class DefaultClusterSetupValidator extends Object implements ClusterSetupValidator
Constructor and Description |
---|
DefaultClusterSetupValidator(MessageHolder holder) |
Modifier and Type | Method and Description |
---|---|
MessageHolder |
getResult() |
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.
|
ClusterSetupValidator |
validateClusterHome(String clusterHome)
Validates just the cluster Home.
|
ClusterSetupValidator |
validateClusterJoinMethod(String joinMethod) |
ClusterSetupValidator |
validateClusterName(String clusterName)
Validates just the cluster Name.
|
ClusterSetupValidator |
validateMulticastClusterJoinConfig(Boolean generateAddress,
String clusterAddress)
Validates just the cluster address, for a multicast cluster.
|
ClusterSetupValidator |
validateNetworkInterface(String networkInterface)
Validates just the cluster network address
|
ClusterSetupValidator |
validateTCPIPClusterJoinConfig(String clusterPeersString)
Validates the cluster peers, for a TCPIP cluster.
|
public DefaultClusterSetupValidator(MessageHolder holder)
public MessageHolder getResult()
getResult
in interface ClusterSetupValidator
public ClusterSetupValidator validateClusterJoinMethod(String joinMethod)
validateClusterJoinMethod
in interface ClusterSetupValidator
public ClusterSetupValidator validateMulticastClusterJoinConfig(Boolean generateAddress, String clusterAddress)
ClusterSetupValidator
validateMulticastClusterJoinConfig
in interface ClusterSetupValidator
generateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast addresspublic ClusterSetupValidator validateNetworkInterface(String networkInterface)
ClusterSetupValidator
validateNetworkInterface
in interface ClusterSetupValidator
networkInterface
- The network interface to be usedpublic ClusterSetupValidator validateClusterName(String clusterName)
ClusterSetupValidator
validateClusterName
in interface ClusterSetupValidator
clusterName
- must be a non-empty stringpublic ClusterSetupValidator validateClusterHome(String clusterHome)
ClusterSetupValidator
validateClusterHome
in interface ClusterSetupValidator
clusterHome
- must be a valid filepath to a readable directorypublic ClusterSetupValidator validateTCPIPClusterJoinConfig(String clusterPeersString)
ClusterSetupValidator
validateTCPIPClusterJoinConfig
in interface ClusterSetupValidator
clusterPeersString
- comma-separated string of cluster node IPspublic ClusterSetupValidator validateAWSJoinConfig(String accessKey, String secretKey, String iamRole, String region, String hostHeader, String securityGroupName, String tagKey, String tagValue)
ClusterSetupValidator
validateAWSJoinConfig
in interface ClusterSetupValidator
Copyright © 2003–2021 Atlassian. All rights reserved.