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.
|
long |
getClientFailureDetectionTimeout() |
int |
getConnectionsPerNode()
|
long |
getConnectTimeout()
|
long |
getDefaultRegionInitialSize()
Get default data region start size.
|
long |
getDefaultRegionMaxSize()
Get default data region maximum size.
|
long |
getDelayAfterStart() |
IgniteDiscoveryOptions |
getDiscoverySpi()
Should return fully configured discovery options.
|
long |
getIdleConnectionTimeout()
|
String |
getLocalHost()
Gets system-wide local address or host for all Ignite components to bind to.
|
int |
getLocalPort()
See
setLocalPort(int) . |
long |
getMaxConnectTimeout()
|
IgniteMetricExporterOptions |
getMetricExporterSpi() |
long |
getMetricsExpireTime() |
int |
getMetricsHistorySize() |
long |
getMetricsLogFrequency()
Gets frequency of metrics log print out.
|
long |
getMetricsUpdateFrequency() |
int |
getPageSize() |
int |
getReconnectCount()
Gets maximum number of reconnect attempts used when establishing connection
with remote nodes.
|
IgniteSslOptions |
getSslContextFactory() |
boolean |
isDefaultRegionMetricsEnabled() |
boolean |
isShutdownOnNodeStop() |
boolean |
isShutdownOnSegmentation() |
IgniteOptions |
setCacheConfiguration(List<IgniteCacheOptions> cacheConfiguration)
Sets cache configurations.
|
IgniteOptions |
setClientFailureDetectionTimeout(long clientFailureDetectionTimeout)
Sets client failure detection timeout.
|
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 |
setDefaultRegionInitialSize(long defaultRegionInitialSize)
Sets default data region start size.
|
IgniteOptions |
setDefaultRegionMaxSize(long defaultRegionMaxSize)
Sets default data region maximum size.
|
IgniteOptions |
setDefaultRegionMetricsEnabled(boolean defaultRegionMetricsEnabled)
Sets default data region metrics enabled/disabled.
|
IgniteOptions |
setDelayAfterStart(long delayAfterStart)
Sets delay in millisenconds after Ignite start.
|
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 |
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 |
setMetricExporterSpi(IgniteMetricExporterOptions metricExporterOptions)
Sets fully configured instance of
IgniteMetricExporterOptions . |
IgniteOptions |
setMetricsExpireTime(long metricsExpireTime)
Sets metrics expire time.
|
IgniteOptions |
setMetricsHistorySize(int metricsHistorySize)
Sets metrics history size.
|
IgniteOptions |
setMetricsLogFrequency(long metricsLogFrequency)
Sets frequency of metrics log print out.
|
IgniteOptions |
setMetricsUpdateFrequency(long metricsUpdateFrequency)
Sets update frequency of metrics.
|
IgniteOptions |
setPageSize(int pageSize)
Sets page size for all data regions.
|
IgniteOptions |
setReconnectCount(int reconnectCount)
Sets maximum number of reconnect attempts used when establishing connection
with remote nodes.
|
IgniteOptions |
setShutdownOnNodeStop(boolean shutdownOnNodeStop)
Sets that vertx will be shutdown when the node stops.
|
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.
|
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 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 int getPageSize()
public IgniteOptions setPageSize(int pageSize)
pageSize
- size in bytes.public long getDefaultRegionInitialSize()
public IgniteOptions setDefaultRegionInitialSize(long defaultRegionInitialSize)
defaultRegionInitialSize
- size in bytes.public long getDefaultRegionMaxSize()
public IgniteOptions setDefaultRegionMaxSize(long defaultRegionMaxSize)
defaultRegionMaxSize
- size in bytes.public boolean isDefaultRegionMetricsEnabled()
public IgniteOptions setDefaultRegionMetricsEnabled(boolean defaultRegionMetricsEnabled)
defaultRegionMetricsEnabled
- to set.public boolean isShutdownOnNodeStop()
public IgniteOptions setShutdownOnNodeStop(boolean shutdownOnNodeStop)
shutdownOnNodeStop
- to set.public long getMetricsUpdateFrequency()
public IgniteOptions setMetricsUpdateFrequency(long metricsUpdateFrequency)
metricsUpdateFrequency
- in milliseconds.public long getClientFailureDetectionTimeout()
public IgniteOptions setClientFailureDetectionTimeout(long clientFailureDetectionTimeout)
clientFailureDetectionTimeout
- in milliseconds.public int getMetricsHistorySize()
public IgniteOptions setMetricsHistorySize(int metricsHistorySize)
metricsHistorySize
- to set.public long getMetricsExpireTime()
public IgniteOptions setMetricsExpireTime(long metricsExpireTime)
metricsExpireTime
- in milliseconds.public IgniteMetricExporterOptions getMetricExporterSpi()
public IgniteOptions setMetricExporterSpi(IgniteMetricExporterOptions metricExporterOptions)
IgniteMetricExporterOptions
.metricExporterOptions
- IgniteMetricExporterOptions
.public long getDelayAfterStart()
public IgniteOptions setDelayAfterStart(long delayAfterStart)
delayAfterStart
- in milliseconds.public JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.