Class JoinConfig

java.lang.Object
com.hazelcast.config.JoinConfig

public class JoinConfig extends Object
Contains the multiple different join configuration. Only one of them should be enabled!
  • Constructor Details

    • JoinConfig

      public JoinConfig()
  • Method Details

    • getMulticastConfig

      public MulticastConfig getMulticastConfig()
      Returns:
      the multicastConfig join configuration
    • setMulticastConfig

      public JoinConfig setMulticastConfig(MulticastConfig multicastConfig)
      Parameters:
      multicastConfig - the multicastConfig join configuration to set
      Throws:
      IllegalArgumentException - if multicastConfig is null
    • getTcpIpConfig

      public TcpIpConfig getTcpIpConfig()
      Returns:
      the tcpIpConfig
    • setTcpIpConfig

      public JoinConfig setTcpIpConfig(TcpIpConfig tcpIpConfig)
      Parameters:
      tcpIpConfig - the tcpIpConfig join configuration to set
      Throws:
      IllegalArgumentException - if tcpIpConfig is null
    • getAwsConfig

      public AwsConfig getAwsConfig()
      Returns:
      the awsConfig join configuration
    • setAwsConfig

      public JoinConfig setAwsConfig(AwsConfig awsConfig)
      Parameters:
      awsConfig - the AwsConfig join configuration to set
      Throws:
      IllegalArgumentException - if awsConfig is null
    • getGcpConfig

      public GcpConfig getGcpConfig()
      Returns:
      the gcpConfig join configuration
    • setGcpConfig

      public JoinConfig setGcpConfig(GcpConfig gcpConfig)
      Parameters:
      gcpConfig - the GcpConfig join configuration to set
      Throws:
      IllegalArgumentException - if gcpConfig is null
    • getAzureConfig

      public AzureConfig getAzureConfig()
      Returns:
      the azureConfig join configuration
    • setAzureConfig

      public JoinConfig setAzureConfig(AzureConfig azureConfig)
      Parameters:
      azureConfig - the AzureConfig join configuration to set
      Throws:
      IllegalArgumentException - if azureConfig is null
    • getKubernetesConfig

      public KubernetesConfig getKubernetesConfig()
      Returns:
      the kubernetesConfig join configuration
    • setKubernetesConfig

      public JoinConfig setKubernetesConfig(KubernetesConfig kubernetesConfig)
      Parameters:
      kubernetesConfig - the KubernetesConfig join configuration to set
      Throws:
      IllegalArgumentException - if kubernetesConfig is null
    • getEurekaConfig

      public EurekaConfig getEurekaConfig()
      Returns:
      the eurekaConfig join configuration
    • setEurekaConfig

      public JoinConfig setEurekaConfig(EurekaConfig eurekaConfig)
      Parameters:
      eurekaConfig - the EurekaConfig join configuration to set
      Throws:
      IllegalArgumentException - if eurekaConfig is null
    • getDiscoveryConfig

      public DiscoveryConfig getDiscoveryConfig()
      Returns the currently defined DiscoveryConfig
      Returns:
      current DiscoveryProvidersConfig instance
    • setDiscoveryConfig

      public JoinConfig setDiscoveryConfig(DiscoveryConfig discoveryConfig)
      Sets a custom defined DiscoveryConfig
      Parameters:
      discoveryConfig - configuration to set
      Throws:
      IllegalArgumentException - if discoveryProvidersConfig is null
    • getAutoDetectionConfig

      public AutoDetectionConfig getAutoDetectionConfig()
      Returns:
      the autoDetectionConfig join configuration
    • setAutoDetectionConfig

      public JoinConfig setAutoDetectionConfig(AutoDetectionConfig autoDetectionConfig)
      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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object