public final class ConfigValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkBasicConfig(AbstractBasicConfig basicConfig)
Validates the given
AbstractBasicConfig. |
static void |
checkCacheConfig(CacheSimpleConfig cacheSimpleConfig)
Validates the given
CacheSimpleConfig. |
static void |
checkCacheConfig(InMemoryFormat inMemoryFormat,
EvictionConfig evictionConfig,
boolean isStatisticsEnabled,
String mergePolicy)
Validates the given parameters in the context of a
ICache config. |
static void |
checkCollectionConfig(CollectionConfig collectionConfig)
Validates the given
CollectionConfig. |
static void |
checkEvictionConfig(EvictionConfig evictionConfig,
boolean isNearCache)
Checks if a
EvictionConfig is valid in its context. |
static void |
checkEvictionConfig(EvictionPolicy evictionPolicy,
String comparatorClassName,
Object comparator,
boolean isNearCache)
Checks if parameters for an
EvictionConfig are valid in their context. |
static void |
checkLocalUpdatePolicy(String mapName,
NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
Checks IMaps' supported Near Cache local update policy configuration.
|
static void |
checkMapConfig(MapConfig mapConfig)
Checks preconditions to create a map proxy.
|
static void |
checkMultiMapConfig(MultiMapConfig multiMapConfig)
Validates the given
MultiMapConfig. |
static void |
checkNearCacheConfig(String mapName,
NearCacheConfig nearCacheConfig,
NativeMemoryConfig nativeMemoryConfig,
boolean isClient)
Checks preconditions to create a map proxy with Near Cache.
|
static void |
checkQueueConfig(QueueConfig queueConfig)
Validates the given
QueueConfig. |
static void |
checkReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
Validates the given
ReplicatedMapConfig. |
static void |
checkRingbufferConfig(RingbufferConfig ringbufferConfig)
Validates the given
RingbufferConfig. |
static void |
checkScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
Validates the given
ScheduledExecutorConfig. |
public static void checkMapConfig(MapConfig mapConfig)
mapConfig - the MapConfigpublic static void checkNearCacheConfig(String mapName, NearCacheConfig nearCacheConfig, NativeMemoryConfig nativeMemoryConfig, boolean isClient)
mapName - name of the map that Near Cache will be created fornearCacheConfig - the NearCacheConfig to be checkedisClient - true if the config is for a Hazelcast client, false otherwisepublic static void checkLocalUpdatePolicy(String mapName, NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
mapName - name of the map that Near Cache will be created forlocalUpdatePolicy - local update policypublic static void checkEvictionConfig(EvictionConfig evictionConfig, boolean isNearCache)
EvictionConfig is valid in its context.evictionConfig - the EvictionConfigisNearCache - true if the config is for a Near Cache, false otherwisepublic static void checkEvictionConfig(EvictionPolicy evictionPolicy, String comparatorClassName, Object comparator, boolean isNearCache)
EvictionConfig are valid in their context.evictionPolicy - the EvictionPolicy for the EvictionConfigcomparatorClassName - the comparator class name for the EvictionConfigcomparator - the comparator implementation for the EvictionConfigisNearCache - true if the config is for a Near Cache, false otherwisepublic static void checkCacheConfig(CacheSimpleConfig cacheSimpleConfig)
CacheSimpleConfig.cacheSimpleConfig - the CacheSimpleConfig to checkpublic static void checkCacheConfig(InMemoryFormat inMemoryFormat, EvictionConfig evictionConfig, boolean isStatisticsEnabled, String mergePolicy)
ICache config.inMemoryFormat - the in-memory format the Cache is configured withevictionConfig - eviction configuration of CacheisStatisticsEnabled - true if statistics are enabled, false otherwisemergePolicy - the configured merge policypublic static void checkReplicatedMapConfig(ReplicatedMapConfig replicatedMapConfig)
ReplicatedMapConfig.replicatedMapConfig - the ReplicatedMapConfig to checkpublic static void checkMultiMapConfig(MultiMapConfig multiMapConfig)
MultiMapConfig.multiMapConfig - the MultiMapConfig to checkpublic static void checkQueueConfig(QueueConfig queueConfig)
QueueConfig.queueConfig - the QueueConfig to checkpublic static void checkCollectionConfig(CollectionConfig collectionConfig)
CollectionConfig.collectionConfig - the CollectionConfig to checkpublic static void checkRingbufferConfig(RingbufferConfig ringbufferConfig)
RingbufferConfig.ringbufferConfig - the RingbufferConfig to checkpublic static void checkBasicConfig(AbstractBasicConfig basicConfig)
AbstractBasicConfig.basicConfig - the AbstractBasicConfig to checkpublic static void checkScheduledExecutorConfig(ScheduledExecutorConfig scheduledExecutorConfig)
ScheduledExecutorConfig.scheduledExecutorConfig - the ScheduledExecutorConfig to checkCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.