public class DefaultClusterSetupValidator extends Object implements ClusterSetupValidator
Constructor and Description |
---|
DefaultClusterSetupValidator() |
Modifier and Type | Method and Description |
---|---|
MessageHolder |
validateAll(String clusterName,
String clusterHome,
Boolean generateAddress,
String clusterAddress,
String networkInterface,
MessageHolder result)
Deprecated.
|
MessageHolder |
validateAll(String clusterName,
String clusterHome,
String joinMethod,
Boolean generateAddress,
String clusterAddress,
String clusterPeersString,
String networkInterface,
MessageHolder result)
Validates all cluster parameters.
|
MessageHolder |
validateClusterAddress(Boolean generateAddress,
String clusterAddress,
MessageHolder result)
Validates just the cluster Address
|
MessageHolder |
validateClusterHome(String clusterHome,
MessageHolder result)
Validates just the cluster Home
|
MessageHolder |
validateClusterName(String clusterName,
MessageHolder result)
Validates just the cluster Name
|
MessageHolder |
validateClusterPeers(String clusterPeersString,
MessageHolder result)
Validates the cluster peers
|
MessageHolder |
validateNetworkInterface(String networkInterface,
MessageHolder result)
Validates just the cluster network address
|
@Deprecated public MessageHolder validateAll(String clusterName, String clusterHome, Boolean generateAddress, String clusterAddress, String networkInterface, MessageHolder result)
ClusterSetupValidator
validateAll
in interface ClusterSetupValidator
clusterName
- must be a non-empty stringclusterHome
- must be a valid filepath to a readable directorygenerateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast addressnetworkInterface
- no restrictions yet, assuming it will be correct.result
- The messageHolder that errors are put intopublic MessageHolder validateAll(String clusterName, String clusterHome, String joinMethod, Boolean generateAddress, String clusterAddress, String clusterPeersString, String networkInterface, MessageHolder result)
ClusterSetupValidator
validateAll
in interface ClusterSetupValidator
clusterName
- must be a non-empty stringclusterHome
- must be a valid filepath to a readable directoryjoinMethod
- which cluster join method to usegenerateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast addressclusterPeersString
- comma separated string of cluster node IPsnetworkInterface
- no restrictions yet, assuming it will be correct.result
- The messageHolder that errors are put intopublic MessageHolder validateClusterAddress(Boolean generateAddress, String clusterAddress, MessageHolder result)
ClusterSetupValidator
validateClusterAddress
in interface ClusterSetupValidator
generateAddress
- whether or not the cluster multicast address should be auto generatedclusterAddress
- must be a valid IP multicast addressresult
- The messageHolder that errors are put intopublic MessageHolder validateNetworkInterface(String networkInterface, MessageHolder result)
ClusterSetupValidator
validateNetworkInterface
in interface ClusterSetupValidator
networkInterface
- The network interface to be usedresult
- The messageHolder that errors are put intopublic MessageHolder validateClusterName(String clusterName, MessageHolder result)
ClusterSetupValidator
validateClusterName
in interface ClusterSetupValidator
clusterName
- must be a non-empty stringresult
- The messageHolder that errors are put intopublic MessageHolder validateClusterHome(String clusterHome, MessageHolder result)
ClusterSetupValidator
validateClusterHome
in interface ClusterSetupValidator
clusterHome
- must be a valid filepath to a readable directoryresult
- The messageHolder that errors are put intopublic MessageHolder validateClusterPeers(String clusterPeersString, MessageHolder result)
ClusterSetupValidator
validateClusterPeers
in interface ClusterSetupValidator
clusterPeersString
- comma-separated string of cluster node IPsresult
- The messageHolder that errors are put intoCopyright © 2003–2016 Atlassian. All rights reserved.