Class IgniteOptions
java.lang.Object
io.vertx.spi.cluster.ignite.IgniteOptions
- Author:
- Lukas Prettenthaler
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorIgniteOptions(JsonObject options) Constructor from JSONIgniteOptions(IgniteOptions options) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionGets configuration (descriptors) for all caches.longintlongGets off-heap's Cache Data Page Eviction Policy.longGet default data region start size.longGet default data region maximum size.longShould return fully configured discovery options.longGets system-wide local address or host for all Ignite components to bind to.intSeesetLocalPort(int).longlongintlongGets frequency of metrics log print out.longintintGets maximum number of reconnect attempts used when establishing connection with remote nodes.booleanbooleanbooleansetCacheConfiguration(List<IgniteCacheOptions> cacheConfiguration) Sets cache configurations.setClientFailureDetectionTimeout(long clientFailureDetectionTimeout) Sets client failure detection timeout.setConnectionsPerNode(int connectionsPerNode) Sets number of connections to each remote node.setConnectTimeout(long connectTimeout) Sets connect timeout used when establishing connection with remote nodes.setDataPageEvictionMode(String dataPageEvictionMode) Sets off-heap's Cache Data Page Eviction Policy.setDefaultRegionInitialSize(long defaultRegionInitialSize) Sets default data region start size.setDefaultRegionMaxSize(long defaultRegionMaxSize) Sets default data region maximum size.setDefaultRegionMetricsEnabled(boolean defaultRegionMetricsEnabled) Sets default data region metrics enabled/disabled.setDelayAfterStart(long delayAfterStart) Sets delay in millisenconds after Ignite start.setDiscoverySpi(IgniteDiscoveryOptions discoveryOptions) Sets fully configured instance ofIgniteDiscoveryOptions.setIdleConnectionTimeout(long idleConnectionTimeout) Sets maximum idle connection timeout upon which a connection to client will be closed.setLocalHost(String localHost) Sets system-wide local address or host for all Ignite components to bind to.setLocalPort(int localPort) Sets local port for socket binding.setMaxConnectTimeout(long maxConnectTimeout) Sets maximum connect timeout.setMetricExporterSpi(IgniteMetricExporterOptions metricExporterOptions) Sets fully configured instance ofIgniteMetricExporterOptions.setMetricsExpireTime(long metricsExpireTime) Sets metrics expire time.setMetricsHistorySize(int metricsHistorySize) Sets metrics history size.setMetricsLogFrequency(long metricsLogFrequency) Sets frequency of metrics log print out.setMetricsUpdateFrequency(long metricsUpdateFrequency) Sets update frequency of metrics.setPageSize(int pageSize) Sets page size for all data regions.setReconnectCount(int reconnectCount) Sets maximum number of reconnect attempts used when establishing connection with remote nodes.setShutdownOnNodeStop(boolean shutdownOnNodeStop) Sets that vertx will be shutdown when the node stops.setShutdownOnSegmentation(boolean shutdownOnSegmentation) Sets that vertx will be shutdown when the cache goes into segmented state.setSslContextFactory(IgniteSslOptions sslOptions) Sets SSL options that will be used for creating a secure socket layer.toJson()Convert to JSON
-
Constructor Details
-
IgniteOptions
public IgniteOptions()Default constructor -
IgniteOptions
-
IgniteOptions
-
-
Method Details
-
getLocalHost
Gets system-wide local address or host for all Ignite components to bind to. If provided it will override all default local bind settings within Ignite or any of its SPIs.- Returns:
- Local address or host to bind to.
-
setLocalHost
Sets system-wide local address or host for all Ignite components to bind to. If provided it will override all default local bind settings within Ignite or any of its SPIs.- Parameters:
localHost- Local IP address or host to bind to.- Returns:
- reference to this, for fluency
-
getLocalPort
-
setLocalPort
Sets local port for socket binding.- Parameters:
localPort- Port number.- Returns:
- reference to this, for fluency
-
getConnectionsPerNode
public int getConnectionsPerNode()- Returns:
- Number of connections per node.
-
setConnectionsPerNode
Sets number of connections to each remote node.- Parameters:
connectionsPerNode- Number of connections per node.- Returns:
- reference to this, for fluency
-
getConnectTimeout
-
setConnectTimeout
Sets connect timeout used when establishing connection with remote nodes.- Parameters:
connectTimeout- Connect timeout.- Returns:
- reference to this, for fluency
-
getIdleConnectionTimeout
public long getIdleConnectionTimeout()- Returns:
- Maximum idle connection time.
-
setIdleConnectionTimeout
Sets maximum idle connection timeout upon which a connection to client will be closed.- Parameters:
idleConnectionTimeout- Maximum idle connection time.- Returns:
- reference to this, for fluency
-
getMaxConnectTimeout
-
setMaxConnectTimeout
Sets maximum connect timeout. If handshake is not established within connect timeout, then SPI tries to repeat handshake procedure with increased connect timeout. Connect timeout can grow till maximum timeout value, if maximum timeout value is reached then the handshake is considered as failed.- Parameters:
maxConnectTimeout- Maximum connect timeout.- Returns:
- reference to this, for fluency
-
getReconnectCount
public int getReconnectCount()Gets maximum number of reconnect attempts used when establishing connection with remote nodes.- Returns:
- Reconnects count.
-
setReconnectCount
Sets maximum number of reconnect attempts used when establishing connection with remote nodes.- Parameters:
reconnectCount- Maximum number of reconnection attempts.- Returns:
- reference to this, for fluency
-
getMetricsLogFrequency
public long getMetricsLogFrequency()Gets frequency of metrics log print out.- Returns:
- Frequency of metrics log print out.
-
setMetricsLogFrequency
Sets frequency of metrics log print out.- Parameters:
metricsLogFrequency- Frequency of metrics log print out.- Returns:
- reference to this, for fluency
-
getDiscoverySpi
Should return fully configured discovery options. If not provided, TcpDiscovery will be used by default.- Returns:
- Grid discovery options
IgniteDiscoveryOptions.
-
setDiscoverySpi
Sets fully configured instance ofIgniteDiscoveryOptions.- Parameters:
discoveryOptions-IgniteDiscoveryOptions.- Returns:
- reference to this, for fluency
-
getCacheConfiguration
Gets configuration (descriptors) for all caches.- Returns:
- List of cache configurations.
-
setCacheConfiguration
Sets cache configurations.- Parameters:
cacheConfiguration- Cache configurations.- Returns:
- reference to this, for fluency
-
getSslContextFactory
-
setSslContextFactory
Sets SSL options that will be used for creating a secure socket layer.- Parameters:
sslOptions- Ssl options.- Returns:
- reference to this, for fluency
-
isShutdownOnSegmentation
public boolean isShutdownOnSegmentation() -
setShutdownOnSegmentation
Sets that vertx will be shutdown when the cache goes into segmented state. Defaults to true- Parameters:
shutdownOnSegmentation- boolean flag.- Returns:
- reference to this, for fluency
-
getPageSize
public int getPageSize() -
setPageSize
Sets page size for all data regions. Defaults to 4096 bytes- Parameters:
pageSize- size in bytes.- Returns:
- reference to this, for fluency
-
getDefaultRegionInitialSize
public long getDefaultRegionInitialSize()Get default data region start size. Default to 256 MB- Returns:
- size in bytes.
-
setDefaultRegionInitialSize
Sets default data region start size.- Parameters:
defaultRegionInitialSize- size in bytes.- Returns:
- reference to this, for fluency
-
getDefaultRegionMaxSize
public long getDefaultRegionMaxSize()Get default data region maximum size. Default to 20% of physical memory available- Returns:
- size in bytes.
-
setDefaultRegionMaxSize
Sets default data region maximum size.- Parameters:
defaultRegionMaxSize- size in bytes.- Returns:
- reference to this, for fluency
-
isDefaultRegionMetricsEnabled
public boolean isDefaultRegionMetricsEnabled() -
setDefaultRegionMetricsEnabled
Sets default data region metrics enabled/disabled. Defaults to false- Parameters:
defaultRegionMetricsEnabled- to set.- Returns:
- reference to this, for fluency
-
isShutdownOnNodeStop
public boolean isShutdownOnNodeStop() -
setShutdownOnNodeStop
Sets that vertx will be shutdown when the node stops. Defaults to false- Parameters:
shutdownOnNodeStop- to set.- Returns:
- reference to this, for fluency
-
getMetricsUpdateFrequency
public long getMetricsUpdateFrequency() -
setMetricsUpdateFrequency
Sets update frequency of metrics. Defaults to 2 seconds- Parameters:
metricsUpdateFrequency- in milliseconds.- Returns:
- reference to this, for fluency
-
getClientFailureDetectionTimeout
public long getClientFailureDetectionTimeout() -
setClientFailureDetectionTimeout
Sets client failure detection timeout. Defaults to 30 seconds- Parameters:
clientFailureDetectionTimeout- in milliseconds.- Returns:
- reference to this, for fluency
-
getMetricsHistorySize
public int getMetricsHistorySize() -
setMetricsHistorySize
Sets metrics history size. Defaults to 10000- Parameters:
metricsHistorySize- to set.- Returns:
- reference to this, for fluency
-
getMetricsExpireTime
public long getMetricsExpireTime() -
setMetricsExpireTime
Sets metrics expire time. Defaults to never expire- Parameters:
metricsExpireTime- in milliseconds.- Returns:
- reference to this, for fluency
-
getMetricExporterSpi
-
setMetricExporterSpi
Sets fully configured instance ofIgniteMetricExporterOptions.- Parameters:
metricExporterOptions-IgniteMetricExporterOptions.- Returns:
- reference to this, for fluency
-
getDelayAfterStart
public long getDelayAfterStart() -
setDelayAfterStart
Sets delay in millisenconds after Ignite start. Defaults to 100ms- Parameters:
delayAfterStart- in milliseconds.- Returns:
- reference to this, for fluency
-
getDataPageEvictionMode
Gets off-heap's Cache Data Page Eviction Policy.- Returns:
- Data Page Cache eviction policy used in 'off-heap' Cache mode.
-
setDataPageEvictionMode
Sets off-heap's Cache Data Page Eviction Policy.- Parameters:
dataPageEvictionMode- DataPageEvictionMode to be set.- Returns:
- reference to this, for fluency
-
toJson
-