public final class ConfigValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
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 nearCacheConfig)
Checks IMaps' supported near cache local update policy configuration.
|
static void |
checkMapConfig(MapConfig mapConfig)
Checks preconditions to create a map proxy.
|
static void |
checkNearCacheConfig(String mapName,
NearCacheConfig nearCacheConfig,
boolean isClient)
Checks preconditions to create a map proxy with Near Cache.
|
public static void checkMapConfig(MapConfig mapConfig)
mapConfig - the MapConfigpublic static void checkNearCacheConfig(String mapName, NearCacheConfig nearCacheConfig, boolean isClient)
mapName - name of the map that near cache will be created fornearCacheConfig - the NearCacheConfigisClient - true if the config is for a Hazelcast client, false otherwisepublic static void checkLocalUpdatePolicy(String mapName, NearCacheConfig nearCacheConfig)
mapName - name of the map that near cache will be created fornearCacheConfig - the nearCacheConfig to be checkedpublic 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 otherwiseCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.