public class IgniteOptions extends Object
Constructor and Description |
---|
IgniteOptions()
Default constructor
|
IgniteOptions(IgniteOptions options)
Copy constructor
|
IgniteOptions(JsonObject options)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
List<IgniteCacheOptions> |
getCacheConfiguration()
Gets configuration (descriptors) for all caches.
|
int |
getConnectionsPerNode()
|
long |
getConnectTimeout()
|
IgniteDiscoveryOptions |
getDiscoverySpi()
Should return fully configured discovery options.
|
long |
getIdleConnectionTimeout()
|
List<String> |
getIncludeEventTypes()
Gets array of event types, which will be recorded.
|
String |
getLocalHost()
Gets system-wide local address or host for all Ignite components to bind to.
|
int |
getLocalPort()
See
setLocalPort(int) . |
long |
getMaxConnectTimeout()
|
long |
getMetricsLogFrequency()
Gets frequency of metrics log print out.
|
int |
getReconnectCount()
Gets maximum number of reconnect attempts used when establishing connection
with remote nodes.
|
IgniteSslOptions |
getSslContextFactory() |
boolean |
isShutdownOnSegmentation() |
IgniteOptions |
setCacheConfiguration(List<IgniteCacheOptions> cacheConfiguration)
Sets cache configurations.
|
IgniteOptions |
setConnectionsPerNode(int connectionsPerNode)
Sets number of connections to each remote node.
|
IgniteOptions |
setConnectTimeout(long connectTimeout)
Sets connect timeout used when establishing connection
with remote nodes.
|
IgniteOptions |
setDiscoverySpi(IgniteDiscoveryOptions discoveryOptions)
Sets fully configured instance of
IgniteDiscoveryOptions . |
IgniteOptions |
setIdleConnectionTimeout(long idleConnectionTimeout)
Sets maximum idle connection timeout upon which a connection
to client will be closed.
|
IgniteOptions |
setIncludeEventTypes(List<String> includeEventTypes)
Sets array of event types, which will be recorded by
IgniteClusterManager.join(Promise) . |
IgniteOptions |
setLocalHost(String localHost)
Sets system-wide local address or host for all Ignite components to bind to.
|
IgniteOptions |
setLocalPort(int localPort)
Sets local port for socket binding.
|
IgniteOptions |
setMaxConnectTimeout(long maxConnectTimeout)
Sets maximum connect timeout.
|
IgniteOptions |
setMetricsLogFrequency(long metricsLogFrequency)
Sets frequency of metrics log print out.
|
IgniteOptions |
setReconnectCount(int reconnectCount)
Sets maximum number of reconnect attempts used when establishing connection
with remote nodes.
|
IgniteOptions |
setShutdownOnSegmentation(boolean shutdownOnSegmentation)
Sets that vertx will be shutdown when the cache goes into segmented state.
|
IgniteOptions |
setSslContextFactory(IgniteSslOptions sslOptions)
Sets SSL options that will be used for creating a secure socket layer.
|
org.apache.ignite.configuration.IgniteConfiguration |
toConfig()
Convert to IgniteConfiguration
|
JsonObject |
toJson()
Convert to JSON
|
public IgniteOptions()
public IgniteOptions(IgniteOptions options)
options
- the one to copypublic IgniteOptions(JsonObject options)
options
- the JSONpublic String getLocalHost()
public IgniteOptions setLocalHost(String localHost)
localHost
- Local IP address or host to bind to.public int getLocalPort()
setLocalPort(int)
.public IgniteOptions setLocalPort(int localPort)
localPort
- Port number.public int getConnectionsPerNode()
public IgniteOptions setConnectionsPerNode(int connectionsPerNode)
connectionsPerNode
- Number of connections per node.public long getConnectTimeout()
public IgniteOptions setConnectTimeout(long connectTimeout)
connectTimeout
- Connect timeout.public long getIdleConnectionTimeout()
public IgniteOptions setIdleConnectionTimeout(long idleConnectionTimeout)
idleConnectionTimeout
- Maximum idle connection time.public long getMaxConnectTimeout()
public IgniteOptions setMaxConnectTimeout(long maxConnectTimeout)
maxConnectTimeout
- Maximum connect timeout.public int getReconnectCount()
public IgniteOptions setReconnectCount(int reconnectCount)
reconnectCount
- Maximum number of reconnection attempts.public List<String> getIncludeEventTypes()
public IgniteOptions setIncludeEventTypes(List<String> includeEventTypes)
IgniteClusterManager.join(Promise)
.
Note, that either the include event types or the exclude event types can be established.includeEventTypes
- Include event types.public long getMetricsLogFrequency()
public IgniteOptions setMetricsLogFrequency(long metricsLogFrequency)
metricsLogFrequency
- Frequency of metrics log print out.public IgniteDiscoveryOptions getDiscoverySpi()
IgniteDiscoveryOptions
.public IgniteOptions setDiscoverySpi(IgniteDiscoveryOptions discoveryOptions)
IgniteDiscoveryOptions
.discoveryOptions
- IgniteDiscoveryOptions
.public List<IgniteCacheOptions> getCacheConfiguration()
public IgniteOptions setCacheConfiguration(List<IgniteCacheOptions> cacheConfiguration)
cacheConfiguration
- Cache configurations.public IgniteSslOptions getSslContextFactory()
public IgniteOptions setSslContextFactory(IgniteSslOptions sslOptions)
sslOptions
- Ssl options.public boolean isShutdownOnSegmentation()
public IgniteOptions setShutdownOnSegmentation(boolean shutdownOnSegmentation)
shutdownOnSegmentation
- boolean flag.public JsonObject toJson()
public org.apache.ignite.configuration.IgniteConfiguration toConfig()
Copyright © 2020 Eclipse. All rights reserved.