Class SimpleDiscoveryNode

java.lang.Object
com.hazelcast.spi.discovery.DiscoveryNode
com.hazelcast.spi.discovery.SimpleDiscoveryNode

public final class SimpleDiscoveryNode extends DiscoveryNode
Simple immutable implementation of the DiscoveryNode interface for convenience when implementing a DiscoveryStrategy.
Since:
3.6
  • Constructor Details

    • SimpleDiscoveryNode

      public SimpleDiscoveryNode(Address privateAddress)
      This constructor will set private and public addresses to the same value and no properties are available.
      Parameters:
      privateAddress - the discovered node's private address
    • SimpleDiscoveryNode

      public SimpleDiscoveryNode(Address privateAddress, Map<String,String> properties)
      This constructor will set private and public addresses to the same value.
      Parameters:
      privateAddress - the discovered node's private address
      properties - the discovered node's additional properties
    • SimpleDiscoveryNode

      public SimpleDiscoveryNode(Address privateAddress, Address publicAddress)

      This constructor will set private and public addresses separately and no properties are available. Based on the internal implementation Hazelcast will either choose private or public address to connect to the cluster.

      On members private addresses are preferred.

      Parameters:
      privateAddress - the discovered node's private address
      publicAddress - the discovered node's public address
    • SimpleDiscoveryNode

      public SimpleDiscoveryNode(Address privateAddress, Address publicAddress, Map<String,String> properties)

      This constructor will set private and public addresses separately. Based on the internal implementation Hazelcast will either choose private or public address to connect to the cluster.

      On members private addresses are preferred.

      Parameters:
      privateAddress - the discovered node's private address
      publicAddress - the discovered node's public address
      properties - the discovered node's additional properties
  • Method Details