Package com.hazelcast.config
Class JoinConfig
java.lang.Object
com.hazelcast.config.JoinConfig
Contains the multiple different join configuration. Only one of them should be enabled!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the currently definedDiscoveryConfiginthashCode()booleanAny other join configuration takes precedence over auto-discovery, so auto-discovery is enabled only when no other join strategy is enabled.setAutoDetectionConfig(AutoDetectionConfig autoDetectionConfig) setAwsConfig(AwsConfig awsConfig) setAzureConfig(AzureConfig azureConfig) setDiscoveryConfig(DiscoveryConfig discoveryConfig) Sets a custom definedDiscoveryConfigsetEurekaConfig(EurekaConfig eurekaConfig) setGcpConfig(GcpConfig gcpConfig) setKubernetesConfig(KubernetesConfig kubernetesConfig) setMulticastConfig(MulticastConfig multicastConfig) setTcpIpConfig(TcpIpConfig tcpIpConfig) toString()voidverify()Verifies this JoinConfig is valid.
-
Constructor Details
-
JoinConfig
public JoinConfig()
-
-
Method Details
-
getMulticastConfig
- Returns:
- the multicastConfig join configuration
-
setMulticastConfig
- Parameters:
multicastConfig- the multicastConfig join configuration to set- Throws:
IllegalArgumentException- if multicastConfig is null
-
getTcpIpConfig
- Returns:
- the tcpIpConfig
-
setTcpIpConfig
- Parameters:
tcpIpConfig- the tcpIpConfig join configuration to set- Throws:
IllegalArgumentException- if tcpIpConfig is null
-
getAwsConfig
- Returns:
- the awsConfig join configuration
-
setAwsConfig
- Parameters:
awsConfig- the AwsConfig join configuration to set- Throws:
IllegalArgumentException- if awsConfig is null
-
getGcpConfig
- Returns:
- the gcpConfig join configuration
-
setGcpConfig
- Parameters:
gcpConfig- the GcpConfig join configuration to set- Throws:
IllegalArgumentException- if gcpConfig is null
-
getAzureConfig
- Returns:
- the azureConfig join configuration
-
setAzureConfig
- Parameters:
azureConfig- the AzureConfig join configuration to set- Throws:
IllegalArgumentException- if azureConfig is null
-
getKubernetesConfig
- Returns:
- the kubernetesConfig join configuration
-
setKubernetesConfig
- Parameters:
kubernetesConfig- the KubernetesConfig join configuration to set- Throws:
IllegalArgumentException- if kubernetesConfig is null
-
getEurekaConfig
- Returns:
- the eurekaConfig join configuration
-
setEurekaConfig
- Parameters:
eurekaConfig- the EurekaConfig join configuration to set- Throws:
IllegalArgumentException- if eurekaConfig is null
-
getDiscoveryConfig
Returns the currently definedDiscoveryConfig- Returns:
- current DiscoveryProvidersConfig instance
-
setDiscoveryConfig
Sets a custom definedDiscoveryConfig- Parameters:
discoveryConfig- configuration to set- Throws:
IllegalArgumentException- if discoveryProvidersConfig is null
-
getAutoDetectionConfig
- Returns:
- the autoDetectionConfig join configuration
-
setAutoDetectionConfig
- Parameters:
autoDetectionConfig- the autoDetectionConfig join configuration to set- Throws:
IllegalArgumentException- if autoDetectionConfig is null
-
isAutoDetectionEnabled
public boolean isAutoDetectionEnabled()Any other join configuration takes precedence over auto-discovery, so auto-discovery is enabled only when no other join strategy is enabled.- Returns:
- true if auto-detection is enabled
-
verify
public void verify()Verifies this JoinConfig is valid. At most a single joiner should be active.- Throws:
InvalidConfigurationException- when the join config is not valid
-
toString
-
equals
-
hashCode
public int hashCode()
-