Class IgniteCacheNodeProperties
java.lang.Object
com.broadleafcommerce.common.extension.autoconfigure.IgniteCacheNodeProperties
@ConfigurationProperties("broadleaf.common.cache.ignite.node")
@Deprecated(since="2.0.7")
public class IgniteCacheNodeProperties
extends Object
Deprecated.
When Ignite is used for caching, IgniteConfiguration is used by
SpringCacheManager to establish the embedded Ignite node.
These properties are used to influence the IgniteConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Configures the default data region'sDataRegionConfiguration.getEmptyPagesPoolSize()(see the Javadocs there).org.springframework.util.unit.DataSizeDeprecated.The initial allocation size of the default data storage region (this is off-heap memory).org.springframework.util.unit.DataSizeDeprecated.The maximum allowed size of the default data storage region (this is off-heap memory).org.apache.ignite.configuration.DataPageEvictionModeDeprecated.Configures the default data region'sDataRegionConfiguration.getPageEvictionMode()(see the Javadocs there).Deprecated.Configures theIgniteConfiguration.getIncludeEventTypes()value.org.springframework.util.unit.DataSizeDeprecated.The memory page size to use for Ignite.org.springframework.util.unit.DataSizeDeprecated.The initial allocation size of the system data storage region for Ignite system cache (this is off-heap memory).org.springframework.util.unit.DataSizeDeprecated.The maximum allowed size of the system data storage region for Ignite system cache (this is off-heap memory).booleanDeprecated.Toggles the tracking of high-level throughput metrics such as cache hits, misses, gets, and puts.booleanDeprecated.Controls whether the Ignite engine itself tracks low-level storage metrics (e.g., page allocations, evictions) for the default DataRegion.booleanDeprecated.Whether to dump all threads to the log when a failure occurs.booleanDeprecated.A global "kill switch" for the Micrometer integration.voidsetCacheStatisticsEnabled(boolean cacheStatisticsEnabled) Deprecated.Toggles the tracking of high-level throughput metrics such as cache hits, misses, gets, and puts.voidsetDefaultDataRegionEmptyPagesPoolSize(int defaultDataRegionEmptyPagesPoolSize) Deprecated.Configures the default data region'sDataRegionConfiguration.getEmptyPagesPoolSize()(see the Javadocs there).voidsetDefaultDataRegionInitialSize(org.springframework.util.unit.DataSize defaultDataRegionInitialSize) Deprecated.The initial allocation size of the default data storage region (this is off-heap memory).voidsetDefaultDataRegionMaxSize(org.springframework.util.unit.DataSize defaultDataRegionMaxSize) Deprecated.The maximum allowed size of the default data storage region (this is off-heap memory).voidsetDefaultDataRegionMetricsEnabled(boolean defaultDataRegionMetricsEnabled) Deprecated.Controls whether the Ignite engine itself tracks low-level storage metrics (e.g., page allocations, evictions) for the default DataRegion.voidsetDefaultDataRegionPageEvictionMode(org.apache.ignite.configuration.DataPageEvictionMode defaultDataRegionPageEvictionMode) Deprecated.Configures the default data region'sDataRegionConfiguration.getPageEvictionMode()(see the Javadocs there).voidsetDumpThreadsOnFailure(boolean dumpThreadsOnFailure) Deprecated.Whether to dump all threads to the log when a failure occurs.voidsetIncludedEventTypes(List<Integer> includedEventTypes) Deprecated.Configures theIgniteConfiguration.getIncludeEventTypes()value.voidsetMemoryPageSize(org.springframework.util.unit.DataSize memoryPageSize) Deprecated.The memory page size to use for Ignite.voidsetMetricsCollectionEnabled(boolean metricsCollectionEnabled) Deprecated.A global "kill switch" for the Micrometer integration.voidsetSystemDataRegionInitialSize(org.springframework.util.unit.DataSize systemDataRegionInitialSize) Deprecated.The initial allocation size of the system data storage region for Ignite system cache (this is off-heap memory).voidsetSystemDataRegionMaxSize(org.springframework.util.unit.DataSize systemDataRegionMaxSize) Deprecated.The maximum allowed size of the system data storage region for Ignite system cache (this is off-heap memory).
-
Constructor Details
-
IgniteCacheNodeProperties
public IgniteCacheNodeProperties()Deprecated.
-
-
Method Details
-
getMemoryPageSize
public org.springframework.util.unit.DataSize getMemoryPageSize()Deprecated.The memory page size to use for Ignite. Ignite recommends this to be "no less than the lower of: the page size of your storage media (SSD, Flash, HDD, etc.) and the cache page size of your operating system". The default value here matchesDataStorageConfiguration.DFLT_PAGE_SIZE. -
getSystemDataRegionInitialSize
public org.springframework.util.unit.DataSize getSystemDataRegionInitialSize()Deprecated.The initial allocation size of the system data storage region for Ignite system cache (this is off-heap memory). The default matchesSystemDataRegionConfiguration.DFLT_SYS_REG_INIT_SIZE. -
getSystemDataRegionMaxSize
public org.springframework.util.unit.DataSize getSystemDataRegionMaxSize()Deprecated.The maximum allowed size of the system data storage region for Ignite system cache (this is off-heap memory). The default matchesSystemDataRegionConfiguration.DFLT_SYS_REG_MAX_SIZE. -
getDefaultDataRegionEmptyPagesPoolSize
public int getDefaultDataRegionEmptyPagesPoolSize()Deprecated.Configures the default data region'sDataRegionConfiguration.getEmptyPagesPoolSize()(see the Javadocs there). This default is the same as what is configured inDataRegionConfiguration. -
getDefaultDataRegionPageEvictionMode
public org.apache.ignite.configuration.DataPageEvictionMode getDefaultDataRegionPageEvictionMode()Deprecated.Configures the default data region'sDataRegionConfiguration.getPageEvictionMode()(see the Javadocs there). NOTE: Setting the default to `DISABLED` as there is a known issue https://issues.apache.org/jira/browse/IGNITE-24992 with `RANDOM_2_LRU` and `RANDOM_LRU` policies for certain versions of Ignite -
isDefaultDataRegionMetricsEnabled
public boolean isDefaultDataRegionMetricsEnabled()Deprecated.Controls whether the Ignite engine itself tracks low-level storage metrics (e.g., page allocations, evictions) for the default DataRegion. While required for storage monitoring, enabling this adds a small amount of overhead to the Ignite memory manager. False by default. -
isMetricsCollectionEnabled
public boolean isMetricsCollectionEnabled()Deprecated.A global "kill switch" for the Micrometer integration. When enabled, Ignite metrics (both storage health and logical cache sizes) will be exported to the Micrometer registry. This is required for any visibility into the cache's footprint in monitoring tools like Grafana. False by default.- Since:
- 2.0.7
-
isCacheStatisticsEnabled
public boolean isCacheStatisticsEnabled()Deprecated.Toggles the tracking of high-level throughput metrics such as cache hits, misses, gets, and puts. Tracking these requires Ignite to maintain additional counters for every cache operation, which can introduce non-trivial CPU overhead in high-concurrency environments. This setting only takes effect ifisMetricsCollectionEnabled()is true. False by default.- Since:
- 2.0.7
-
getIncludedEventTypes
Deprecated.Configures theIgniteConfiguration.getIncludeEventTypes()value. By default, we registerEventType.EVT_CACHE_STARTED, which is relevant for Broadleaf's default cache metrics collection. This ensures lazily initialized caches (ex: fromCacheable) can be monitored.- Since:
- 2.0.7
-
getDefaultDataRegionInitialSize
public org.springframework.util.unit.DataSize getDefaultDataRegionInitialSize()Deprecated.The initial allocation size of the default data storage region (this is off-heap memory). The default matchesDataStorageConfiguration.DFLT_DATA_REGION_INITIAL_SIZE -
getDefaultDataRegionMaxSize
public org.springframework.util.unit.DataSize getDefaultDataRegionMaxSize()Deprecated.The maximum allowed size of the default data storage region (this is off-heap memory). -
isDumpThreadsOnFailure
public boolean isDumpThreadsOnFailure()Deprecated.Whether to dump all threads to the log when a failure occurs. This property influences theIGNITE_DUMP_THREADS_ON_FAILUREsystem property during Ignite initialization.- Since:
- 2.0.7
-
setMemoryPageSize
public void setMemoryPageSize(org.springframework.util.unit.DataSize memoryPageSize) Deprecated.The memory page size to use for Ignite. Ignite recommends this to be "no less than the lower of: the page size of your storage media (SSD, Flash, HDD, etc.) and the cache page size of your operating system". The default value here matchesDataStorageConfiguration.DFLT_PAGE_SIZE. -
setSystemDataRegionInitialSize
public void setSystemDataRegionInitialSize(org.springframework.util.unit.DataSize systemDataRegionInitialSize) Deprecated.The initial allocation size of the system data storage region for Ignite system cache (this is off-heap memory). The default matchesSystemDataRegionConfiguration.DFLT_SYS_REG_INIT_SIZE. -
setSystemDataRegionMaxSize
public void setSystemDataRegionMaxSize(org.springframework.util.unit.DataSize systemDataRegionMaxSize) Deprecated.The maximum allowed size of the system data storage region for Ignite system cache (this is off-heap memory). The default matchesSystemDataRegionConfiguration.DFLT_SYS_REG_MAX_SIZE. -
setDefaultDataRegionEmptyPagesPoolSize
public void setDefaultDataRegionEmptyPagesPoolSize(int defaultDataRegionEmptyPagesPoolSize) Deprecated.Configures the default data region'sDataRegionConfiguration.getEmptyPagesPoolSize()(see the Javadocs there). This default is the same as what is configured inDataRegionConfiguration. -
setDefaultDataRegionPageEvictionMode
public void setDefaultDataRegionPageEvictionMode(org.apache.ignite.configuration.DataPageEvictionMode defaultDataRegionPageEvictionMode) Deprecated.Configures the default data region'sDataRegionConfiguration.getPageEvictionMode()(see the Javadocs there). NOTE: Setting the default to `DISABLED` as there is a known issue https://issues.apache.org/jira/browse/IGNITE-24992 with `RANDOM_2_LRU` and `RANDOM_LRU` policies for certain versions of Ignite -
setDefaultDataRegionMetricsEnabled
public void setDefaultDataRegionMetricsEnabled(boolean defaultDataRegionMetricsEnabled) Deprecated.Controls whether the Ignite engine itself tracks low-level storage metrics (e.g., page allocations, evictions) for the default DataRegion. While required for storage monitoring, enabling this adds a small amount of overhead to the Ignite memory manager. False by default. -
setMetricsCollectionEnabled
public void setMetricsCollectionEnabled(boolean metricsCollectionEnabled) Deprecated.A global "kill switch" for the Micrometer integration. When enabled, Ignite metrics (both storage health and logical cache sizes) will be exported to the Micrometer registry. This is required for any visibility into the cache's footprint in monitoring tools like Grafana. False by default.- Since:
- 2.0.7
-
setCacheStatisticsEnabled
public void setCacheStatisticsEnabled(boolean cacheStatisticsEnabled) Deprecated.Toggles the tracking of high-level throughput metrics such as cache hits, misses, gets, and puts. Tracking these requires Ignite to maintain additional counters for every cache operation, which can introduce non-trivial CPU overhead in high-concurrency environments. This setting only takes effect ifisMetricsCollectionEnabled()is true. False by default.- Since:
- 2.0.7
-
setIncludedEventTypes
Deprecated.Configures theIgniteConfiguration.getIncludeEventTypes()value. By default, we registerEventType.EVT_CACHE_STARTED, which is relevant for Broadleaf's default cache metrics collection. This ensures lazily initialized caches (ex: fromCacheable) can be monitored.- Since:
- 2.0.7
-
setDefaultDataRegionInitialSize
public void setDefaultDataRegionInitialSize(org.springframework.util.unit.DataSize defaultDataRegionInitialSize) Deprecated.The initial allocation size of the default data storage region (this is off-heap memory). The default matchesDataStorageConfiguration.DFLT_DATA_REGION_INITIAL_SIZE -
setDefaultDataRegionMaxSize
public void setDefaultDataRegionMaxSize(org.springframework.util.unit.DataSize defaultDataRegionMaxSize) Deprecated.The maximum allowed size of the default data storage region (this is off-heap memory). -
setDumpThreadsOnFailure
public void setDumpThreadsOnFailure(boolean dumpThreadsOnFailure) Deprecated.Whether to dump all threads to the log when a failure occurs. This property influences theIGNITE_DUMP_THREADS_ON_FAILUREsystem property during Ignite initialization.- Since:
- 2.0.7
-