Class IgniteDiscoveryOptions


  • public class IgniteDiscoveryOptions
    extends Object
    Author:
    Lukas Prettenthaler
    • Constructor Detail

      • IgniteDiscoveryOptions

        public IgniteDiscoveryOptions()
        Default constructor
      • IgniteDiscoveryOptions

        public IgniteDiscoveryOptions​(IgniteDiscoveryOptions options)
        Copy constructor
        Parameters:
        options - the one to copy
      • IgniteDiscoveryOptions

        public IgniteDiscoveryOptions​(JsonObject options)
        Constructor from JSON
        Parameters:
        options - the JSON
    • Method Detail

      • getType

        public String getType()
        Get the discovery implementation type.
        Returns:
        Type of the implementation.
      • setType

        public IgniteDiscoveryOptions setType​(String type)
        Sets the discovery implementation type. Defaults to TcpDiscoveryMulticastIpFinder
        Parameters:
        type - Implemenation type.
        Returns:
        reference to this, for fluency
      • getProperties

        public JsonObject getProperties()
        Get the discovery implementation properties.
        Returns:
        Properties of the discovery implementation.
      • setProperties

        public IgniteDiscoveryOptions setProperties​(JsonObject properties)
        Sets the properties used to configure the discovery implementation.
        Parameters:
        properties - Properties for the discovery implementation.
        Returns:
        reference to this, for fluency
      • getCustomSpi

        public org.apache.ignite.spi.discovery.DiscoverySpi getCustomSpi()
        Get the custom DiscoverySpi instance.
        Returns:
        DiscoverySpi.
      • setCustomSpi

        public IgniteDiscoveryOptions setCustomSpi​(org.apache.ignite.spi.discovery.DiscoverySpi discoverySpi)
        Sets a custom initialized DiscoverySpi. When a custom Spi is set all other properties are ignored.
        Parameters:
        discoverySpi - DiscoverySpi implementation.
        Returns:
        reference to this, for fluency
      • toJson

        public JsonObject toJson()
        Convert to JSON
        Returns:
        the JSON