Package io.vertx.spi.cluster.ignite
Class IgniteDiscoveryOptions
- java.lang.Object
-
- io.vertx.spi.cluster.ignite.IgniteDiscoveryOptions
-
public class IgniteDiscoveryOptions extends Object
- Author:
- Lukas Prettenthaler
-
-
Constructor Summary
Constructors Constructor Description IgniteDiscoveryOptions()
Default constructorIgniteDiscoveryOptions(JsonObject options)
Constructor from JSONIgniteDiscoveryOptions(IgniteDiscoveryOptions options)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.ignite.spi.discovery.DiscoverySpi
getCustomSpi()
Get the custom DiscoverySpi instance.JsonObject
getProperties()
Get the discovery implementation properties.String
getType()
Get the discovery implementation type.IgniteDiscoveryOptions
setCustomSpi(org.apache.ignite.spi.discovery.DiscoverySpi discoverySpi)
Sets a custom initialized DiscoverySpi.IgniteDiscoveryOptions
setProperties(JsonObject properties)
Sets the properties used to configure the discovery implementation.IgniteDiscoveryOptions
setType(String type)
Sets the discovery implementation type.JsonObject
toJson()
Convert to JSON
-
-
-
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
-
-